Class FSLinearGradient
java.lang.Object
org.openpdf.css.style.derived.FSLinearGradient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FSLinearGradient.StopValue> private intprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionFSLinearGradient(FSFunction func, CalculatedStyle style, int width, int height, CssContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate floatdeg2rad(float deg) private voidendPointsFromAngle(float angleDeg, int w, int h) intgetEndX()intgetEndY()intintstatic booleanstatic booleanlooksLikeALength(String val) private floatrad2deg(float rad) toString()
-
Field Details
-
x1
private int x1 -
y1
private int y1 -
x2
private int x2 -
y2
private int y2 -
stopPoints
-
-
Constructor Details
-
FSLinearGradient
public FSLinearGradient(FSFunction func, CalculatedStyle style, int width, int height, CssContext ctx)
-
-
Method Details
-
getStopPoints
-
deg2rad
private float deg2rad(float deg) -
rad2deg
private float rad2deg(float rad) -
endPointsFromAngle
private void endPointsFromAngle(float angleDeg, int w, int h) -
constructZero
private void constructZero() -
looksLikeALength
-
looksLikeABGPosition
-
getStartX
public int getStartX() -
getEndX
public int getEndX() -
getStartY
public int getStartY() -
getEndY
public int getEndY() -
toString
-