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 Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
MultipleGradientPaint.ColorSpaceType, MultipleGradientPaint.CycleMethod
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
gradientTransform
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
Constructor Summary
ConstructorsConstructorDescriptionRelativeRadialGradientPaint
(Point2D center, Point2D focus, Point2D radiusWidth, Point2D radiusHeight, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforePaint
(Rectangle2D shapeSize) createContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) double
getAngle
(Rectangle2D rect) getFocus()
float
getRadiusHeight
(Rectangle2D rect) A point that specifies the height radius point in relative termsfloat
getRadiusWidth
(Rectangle2D rect) A point that specifies the width radius point in relative termsvoid
rotatePaint
(double angle, Point2D anchor, Rectangle2D r1, Rectangle2D r2) Call to rotate this paint.void
setAngle
(Rectangle2D rect, double angle) void
setCenter
(double cx, double cy) void
void
setRadiusHeight
(Rectangle2D rect, float radiusHeight) void
setRadiusWidth
(Rectangle2D rect, float radiusWidth) Methods inherited from class com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
copyOf, copyOf, copyOf, getColors, getColorSpace, getCycleMethod, getFractions, getTransform, getTransparency
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.Transparency
getTransparency
-
Constructor Details
-
RelativeRadialGradientPaint
-
-
Method Details
-
beforePaint
- Specified by:
beforePaint
in interfaceRelativePaint
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) - Specified by:
createContext
in interfacePaint
-
rotatePaint
Description copied from interface:RotatablePaint
Call to rotate this paint.- Specified by:
rotatePaint
in interfaceRotatablePaint
r1
- The bounds of the shape before rotation.r2
- The bounds of the shape after rotation.
-
getCenter
-
setCenter
-
setCenter
public void setCenter(double cx, double cy) -
getRadiusHeightPoint
A point that specifies the height radius point in relative terms -
getRadiusWidthPoint
A point that specifies the width radius point in relative terms -
getRadiusHeight
-
setRadiusHeight
-
getRadiusWidth
-
setRadiusWidth
-
getAngle
-
setAngle
-
getFocus
-