Documentation of 'kcl.waterloo.marker.GJRadialGradientFactory' Java class
GJRadialGradientFactory
kcl.waterloo.marker

Class GJRadialGradientFactory

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency


    public class GJRadialGradientFactory
    extends java.lang.Object
    implements java.awt.Paint
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.awt.Color[] colors 
      float cx 
      float cy 
      float[] fractions 
      float radius 
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor and Description
      GJRadialGradientFactory(float CX, float CY, float radius, float[] fractions, java.awt.Color[] colors) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle rctngl, java.awt.geom.Rectangle2D rd, java.awt.geom.AffineTransform at, java.awt.RenderingHints rh) 
      java.awt.Color[] getColors() 
      float getCx() 
      float getCy() 
      float[] getFractions() 
      java.awt.RadialGradientPaint getPaint(float x, float y) 
      float getRadius() 
      int getTransparency()
      Returns the transparency as an integer
      void setColor(int index, java.awt.Color color) 
      void setColors(java.awt.Color[] colors) 
      void setCx(float cx) 
      void setCy(float cy) 
      void setFractions(float[] fractions) 
      void setRadius(float radius) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cx

        public float cx
      • cy

        public float cy
      • radius

        public float radius
      • fractions

        public float[] fractions
      • colors

        public java.awt.Color[] colors
    • Constructor Detail

      • GJRadialGradientFactory

        public GJRadialGradientFactory(float CX,
                                       float CY,
                                       float radius,
                                       float[] fractions,
                                       java.awt.Color[] colors)
    • Method Detail

      • getPaint

        public java.awt.RadialGradientPaint getPaint(float x,
                                                     float y)
      • getCx

        public float getCx()
        Returns:
        the cx
      • setCx

        public void setCx(float cx)
        Parameters:
        cx - the cx to set
      • getCy

        public float getCy()
        Returns:
        the cy
      • setCy

        public void setCy(float cy)
        Parameters:
        cy - the cy to set
      • getRadius

        public float getRadius()
        Returns:
        the radius
      • setRadius

        public void setRadius(float radius)
        Parameters:
        radius - the radius to set
      • getFractions

        public float[] getFractions()
        Returns:
        the fractions
      • setFractions

        public void setFractions(float[] fractions)
        Parameters:
        fractions - the fractions to set
      • getColors

        public java.awt.Color[] getColors()
        Returns:
        the colors
      • setColors

        public void setColors(java.awt.Color[] colors)
        Parameters:
        colors - the colors to set
      • setColor

        public void setColor(int index,
                             java.awt.Color color)
      • createContext

        public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
                                                   java.awt.Rectangle rctngl,
                                                   java.awt.geom.Rectangle2D rd,
                                                   java.awt.geom.AffineTransform at,
                                                   java.awt.RenderingHints rh)
        Specified by:
        createContext in interface java.awt.Paint
        Parameters:
        cm -
        rctngl -
        rd -
        at -
        rh -
        Returns:
        a PaintContext
      • getTransparency

        public int getTransparency()
        Returns the transparency as an integer
        Specified by:
        getTransparency in interface java.awt.Transparency
        Returns:
        an int

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.