Class RadialGradient

  • All Implemented Interfaces:
    java.io.Serializable

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

      • cx

        float cx
      • cy

        float cy
      • hasFocus

        boolean hasFocus
      • fx

        float fx
      • fy

        float fy
      • r

        float r
    • Constructor Detail

      • RadialGradient

        public RadialGradient()
        Creates a new instance of RadialGradient
    • 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