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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classMultiple stop angle gradient with angles.static classA multiple stop diamond gradient.static classMultiple stop radial gradient.
- 
Field SummaryFields inherited from interface java.awt.TransparencyBITMASK, OPAQUE, TRANSLUCENT
- 
Constructor SummaryConstructorsConstructorDescriptionRMMultipleStopGradient(float x0, float y0, float x1, float y1, RMGradientFill fill) 
- 
Method SummaryModifier 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- 
createContextpublic PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
- createContextin interface- Paint
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- PaintContext
 
- 
getRaster- Specified by:
- getRasterin interface- PaintContext
 
- 
getTransparencypublic int getTransparency()Alpha & color definitions- Specified by:
- getTransparencyin interface- Transparency
 
- 
getColorModelARGB.- Specified by:
- getColorModelin interface- PaintContext
 
- 
doShadingpublic void doShading(int[] argbSamples, int x, int y, int w, int h) Shading loop. Put in some meaningful comment here some day.
- 
getShadePixelpublic int getShadePixel(float t) Returns the argb pixel value for the distance along the shading axis.
- 
setDeviceTransformSets the transform from user space to device space.
 
-