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
gradientTransformFields 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 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.MultipleGradientPaint
copyOf, copyOf, copyOf, getColors, getColorSpace, getCycleMethod, getFractions, getTransform, getTransparencyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.Transparency
getTransparency
-
Constructor Details
-
RelativeRadialGradientPaint
-
-
Method Details
-
beforePaint
- Specified by:
beforePaintin interfaceRelativePaint
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) - Specified by:
createContextin interfacePaint
-
rotatePaint
Description copied from interface:RotatablePaintCall to rotate this paint.- Specified by:
rotatePaintin interfaceRotatablePaintr1- 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
-