Class RMRadialGradientFill
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMFill
com.inductiveautomation.rm.graphics.RMGradientFill
com.inductiveautomation.rm.graphics.RMRadialGradientFill
- All Implemented Interfaces:
Archivable
,RMPropertyChanger
,Cloneable
Radial Gradient Fill.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMGradientFill
RMGradientFill.ColorStop
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an uninitialized radial fill.RMRadialGradientFill
(RMColor aColor1, RMColor aColor2, Point2D begin, Point2D end) Creates a gradient fill from the given start color to the given end color with the given endpoints. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Standard clone implementation.deriveGradient
(boolean isRadial) Returns a new gradient which is a copy of this gradient but of a different type.deriveGradient
(Point2D begin, Point2D end) Returns a new gradient which is a copy of this gradient with a different gradient axis.boolean
Standard equals implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the begin point.Returns the end point.double
Returns the angle.void
getGradientAxis
(RMShape aShape, RMPath aPath, Point2D p1, Point2D p2) Returns the 2 points, in the shape's coordinate system, which define the gradient.getName()
Returns the name of the fill (Returns superclass name so the pop-up doesn't get confused).getPaint
(float startx, float starty, float endx, float endy) Returns a java.awt.Paint instance to draw this gradient.double
Returns the radius.toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMGradientFill
deriveGradient, getColor, getColorStop, getColorStopCount, getColorStops, getGradientAxis, getGradientBounds, getRoll, getStopColor, getStopPosition, hasAlpha, insertColorStop, isRadial, paint, removeColorStop, reverseColors, setColor, setColorStop, setRoll, setStops, toString
Methods inherited from class com.inductiveautomation.rm.graphics.RMFill
deriveFill, getBounds, readAttributes
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
_beginPoint
-
_endPoint
-
-
Constructor Details
-
RMRadialGradientFill
public RMRadialGradientFill()Creates an uninitialized radial fill. -
RMRadialGradientFill
Creates a gradient fill from the given start color to the given end color with the given endpoints.
-
-
Method Details
-
getBeginPoint
Returns the begin point. -
getEndPoint
Returns the end point. -
getFocusAngle
public double getFocusAngle()Returns the angle. -
getRadius
public double getRadius()Returns the radius. -
deriveGradient
Returns a new gradient which is a copy of this gradient with a different gradient axis. -
deriveGradient
Returns a new gradient which is a copy of this gradient but of a different type.- Overrides:
deriveGradient
in classRMGradientFill
-
getGradientAxis
Returns the 2 points, in the shape's coordinate system, which define the gradient.- Overrides:
getGradientAxis
in classRMGradientFill
-
getPaint
Returns a java.awt.Paint instance to draw this gradient.- Overrides:
getPaint
in classRMGradientFill
-
equals
Standard equals implementation.- Overrides:
equals
in classRMGradientFill
-
clone
Standard clone implementation.- Overrides:
clone
in classRMGradientFill
-
toXML
XML archival.- Specified by:
toXML
in interfaceArchivable
- Overrides:
toXML
in classRMGradientFill
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
- Overrides:
fromXML
in classRMGradientFill
-
getName
Returns the name of the fill (Returns superclass name so the pop-up doesn't get confused).
-