Class FSLinearGradient


  • public class FSLinearGradient
    extends java.lang.Object
    • Field Detail

      • _angle

        private final float _angle
      • x1

        private int x1
      • x2

        private int x2
      • y1

        private int y1
      • y2

        private int y2
    • Method Detail

      • deg2rad

        private float deg2rad​(float deg)
      • endPointsFromAngle

        private void endPointsFromAngle​(float angleDeg,
                                        int w,
                                        int h)
      • isLengthOrPercentage

        private boolean isLengthOrPercentage​(PropertyValue value)
      • get100PercentDefaultStopLength

        private float get100PercentDefaultStopLength​(CalculatedStyle style,
                                                     CssContext ctx,
                                                     float boxWidth)
      • getStopsStartIndex

        private int getStopsStartIndex​(java.util.List<PropertyValue> params)
      • calculateAngle

        private float calculateAngle​(java.util.List<PropertyValue> params,
                                     int stopsStartIndex)
        Calculates the angle of the linear gradient in degrees.
      • getAngle

        public float getAngle()
        The angle of this linear gradient in compass degrees.
      • getX1

        public int getX1()
      • getX2

        public int getX2()
      • getY1

        public int getY1()
      • getY2

        public int getY2()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object