com.jidesoft.gauge
Class DialLinearPaint
java.lang.Object
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.
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_CYCLE
public static final MultipleGradientPaint.CycleMethod NO_CYCLE
REFLECT
public static final MultipleGradientPaint.CycleMethod REFLECT
REPEAT
public static final MultipleGradientPaint.CycleMethod REPEAT
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)
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