Class Gradient

    • Field Detail

      • spreadMethod

        int spreadMethod
      • gradientUnits

        protected int gradientUnits
      • stops

        java.util.ArrayList<Stop> stops
      • stopRef

        java.net.URI stopRef
      • gradientTransform

        protected java.awt.geom.AffineTransform gradientTransform
      • stopFractions

        float[] stopFractions
      • stopColors

        java.awt.Color[] stopColors
    • Constructor Detail

      • Gradient

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

      • 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 SVGElement
        Throws:
        SVGException
      • buildStops

        private void buildStops()
      • getStopFractions

        public float[] getStopFractions()
      • getStopColors

        public java.awt.Color[] getStopColors()
      • clamp

        private int clamp​(int val,
                          int min,
                          int max)
      • setStopRef

        public void setStopRef​(java.net.URI grad)
      • appendStop

        public void appendStop​(Stop stop)
      • 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.
        Specified by:
        updateTime in class SVGElement
        Returns:
        - true if this node has changed state as a result of the time update
        Throws:
        SVGException