Class LinearGradient

  • All Implemented Interfaces:
    java.io.Serializable

    public class LinearGradient
    extends Gradient
    See Also:
    Serialized Form
    • Field Detail

      • x1

        float x1
      • y1

        float y1
      • x2

        float x2
      • y2

        float y2
    • Constructor Detail

      • LinearGradient

        public LinearGradient()
        Creates a new instance of LinearGradient
    • Method Detail

      • getTagName

        public java.lang.String getTagName()
        Overrides:
        getTagName in class Gradient
      • build

        protected void build()
                      throws SVGException
        Description copied from class: SVGElement
        Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.
        Overrides:
        build in class Gradient
        Throws:
        SVGException
      • getPaint

        public java.awt.Paint getPaint​(java.awt.geom.Rectangle2D bounds,
                                       java.awt.geom.AffineTransform xform)
        Description copied from class: FillElement
        Requests the paint defined by this element. Passes in information to allow paint to be customized
        Specified by:
        getPaint in class FillElement
        Parameters:
        bounds - - bounding box of shape being rendered
        xform - - The current transformation that the shape is being rendered under.
        Returns:
        paint object
      • updateTime

        public boolean updateTime​(double curTime)
                           throws SVGException
        Updates all attributes in this diagram associated with a time event. Ie, all attributes with track information.
        Overrides:
        updateTime in class Gradient
        Returns:
        - true if this node has changed state as a result of the time update
        Throws:
        SVGException