JIDE 3.5.15

com.jidesoft.gauge
Class DialLinearPaint

java.lang.Object
  extended by com.jidesoft.gauge.DialLinearPaint
All Implemented Interfaces:
Paint, Transparency

public class DialLinearPaint
extends Object
implements Paint

A linear gradient paint for a Dial in which the start and end coordinates are expressed in terms of the radius of the dial. Angles used in the constructors are expressed in degrees.


Field Summary
static MultipleGradientPaint.CycleMethod NO_CYCLE
           
static MultipleGradientPaint.CycleMethod REFLECT
           
static MultipleGradientPaint.CycleMethod REPEAT
           
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
DialLinearPaint(Dial dial, float startRadius, float startAngle, float endRadius, float endAngle, float[] fractions, Color[] colors)
           
DialLinearPaint(Dial dial, float startRadius, float startAngle, float endRadius, float endAngle, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)
           
 
Method Summary
 PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
           
 float getOffsetAngle()
           
 float getOffsetRadius()
           
 int getTransparency()
           
 void setOffsetAngle(float offsetAngle)
           
 void setOffsetRadius(float offsetRadius)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CYCLE

public static final MultipleGradientPaint.CycleMethod NO_CYCLE

REFLECT

public static final MultipleGradientPaint.CycleMethod REFLECT

REPEAT

public static final MultipleGradientPaint.CycleMethod REPEAT
Constructor Detail

DialLinearPaint

public DialLinearPaint(Dial dial,
                       float startRadius,
                       float startAngle,
                       float endRadius,
                       float endAngle,
                       float[] fractions,
                       Color[] colors)

DialLinearPaint

public DialLinearPaint(Dial dial,
                       float startRadius,
                       float startAngle,
                       float endRadius,
                       float endAngle,
                       float[] fractions,
                       Color[] colors,
                       MultipleGradientPaint.CycleMethod cycleMethod)
Method Detail

getOffsetAngle

public float getOffsetAngle()

setOffsetAngle

public void setOffsetAngle(float offsetAngle)

getOffsetRadius

public float getOffsetRadius()

setOffsetRadius

public void setOffsetRadius(float offsetRadius)

createContext

public PaintContext createContext(ColorModel cm,
                                  Rectangle deviceBounds,
                                  Rectangle2D userBounds,
                                  AffineTransform transform,
                                  RenderingHints hints)
Specified by:
createContext in interface Paint

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface Transparency

JIDE 3.5.15