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 classMultiple stop angle gradient with angles.static classA multiple stop diamond gradient.static classMultiple 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) voiddispose()voiddoShading(int[] argbSamples, int x, int y, int w, int h) Shading loop.ARGB.getRaster(int x, int y, int w, int h) intgetShadePixel(float t) Returns the argb pixel value for the distance along the shading axis.intAlpha & color definitionsvoidsetDeviceTransform(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:
createContextin interfacePaint
-
dispose
public void dispose()- Specified by:
disposein interfacePaintContext
-
getRaster
- Specified by:
getRasterin interfacePaintContext
-
getTransparency
public int getTransparency()Alpha & color definitions- Specified by:
getTransparencyin interfaceTransparency
-
getColorModel
ARGB.- Specified by:
getColorModelin 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.
-