Class RMMultipleStopGradient
java.lang.Object
com.inductiveautomation.rm.graphics.RMMultipleStopGradient
- All Implemented Interfaces:
Paint
,PaintContext
,Transparency
- Direct Known Subclasses:
RMMultipleStopGradient.AngleGradient
,RMMultipleStopGradient.DiamondGradient
,RMMultipleStopGradient.RadialGradient
An implementation of the java.awt.Paint interface for RMGradientFills.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Multiple stop angle gradient with angles.static class
A multiple stop diamond gradient.static class
Multiple stop radial gradient. -
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
ConstructorsConstructorDescriptionRMMultipleStopGradient
(float x0, float y0, float x1, float y1, RMGradientFill fill) -
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) void
dispose()
void
doShading
(int[] argbSamples, int x, int y, int w, int h) Shading loop.ARGB.getRaster
(int x, int y, int w, int h) int
getShadePixel
(float t) Returns the argb pixel value for the distance along the shading axis.int
Alpha & color definitionsvoid
setDeviceTransform
(AffineTransform x, Rectangle devRect) Sets the transform from user space to device space.
-
Constructor Details
-
RMMultipleStopGradient
-
-
Method Details
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContext
in interfacePaint
-
dispose
public void dispose()- Specified by:
dispose
in interfacePaintContext
-
getRaster
- Specified by:
getRaster
in interfacePaintContext
-
getTransparency
public int getTransparency()Alpha & color definitions- Specified by:
getTransparency
in interfaceTransparency
-
getColorModel
ARGB.- Specified by:
getColorModel
in interfacePaintContext
-
doShading
public void doShading(int[] argbSamples, int x, int y, int w, int h) Shading loop. Put in some meaningful comment here some day. -
getShadePixel
public int getShadePixel(float t) Returns the argb pixel value for the distance along the shading axis. -
setDeviceTransform
Sets the transform from user space to device space.
-