Class RelativeRadialGradientPaint
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
com.inductiveautomation.ignition.client.util.gui.paints.RelativeRadialGradientPaint
- All Implemented Interfaces:
- RelativePaint,- RotatablePaint,- Paint,- Transparency
public final class RelativeRadialGradientPaint
extends MultipleGradientPaint
implements RelativePaint, RotatablePaint
Similar to RadialGradientPaint, but this one specifies its points as percentages of the user-space bounds of the
 object it will fill.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaintMultipleGradientPaint.ColorSpaceType, MultipleGradientPaint.CycleMethod
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaintgradientTransformFields inherited from interface java.awt.TransparencyBITMASK, OPAQUE, TRANSLUCENT
- 
Constructor SummaryConstructorsConstructorDescriptionRelativeRadialGradientPaint(Point2D center, Point2D focus, Point2D radiusWidth, Point2D radiusHeight, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforePaint(Rectangle2D shapeSize) createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) doublegetAngle(Rectangle2D rect) getFocus()floatgetRadiusHeight(Rectangle2D rect) A point that specifies the height radius point in relative termsfloatgetRadiusWidth(Rectangle2D rect) A point that specifies the width radius point in relative termsvoidrotatePaint(double angle, Point2D anchor, Rectangle2D r1, Rectangle2D r2) Call to rotate this paint.voidsetAngle(Rectangle2D rect, double angle) voidsetCenter(double cx, double cy) voidvoidsetRadiusHeight(Rectangle2D rect, float radiusHeight) voidsetRadiusWidth(Rectangle2D rect, float radiusWidth) Methods inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaintcopyOf, copyOf, copyOf, getColors, getColorSpace, getCycleMethod, getFractions, getTransform, getTransparencyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.TransparencygetTransparency
- 
Constructor Details- 
RelativeRadialGradientPaint
 
- 
- 
Method Details- 
beforePaint- Specified by:
- beforePaintin interface- RelativePaint
 
- 
createContextpublic PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) - Specified by:
- createContextin interface- Paint
 
- 
rotatePaintDescription copied from interface:RotatablePaintCall to rotate this paint.- Specified by:
- rotatePaintin interface- RotatablePaint
- r1- The bounds of the shape before rotation.
- r2- The bounds of the shape after rotation.
 
- 
getCenter
- 
setCenter
- 
setCenterpublic void setCenter(double cx, double cy) 
- 
getRadiusHeightPointA point that specifies the height radius point in relative terms
- 
getRadiusWidthPointA point that specifies the width radius point in relative terms
- 
getRadiusHeight
- 
setRadiusHeight
- 
getRadiusWidth
- 
setRadiusWidth
- 
getAngle
- 
setAngle
- 
getFocus
 
-