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 SummaryNested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMGradientFillRMGradientFill.ColorStop
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier 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.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the begin point.Returns the end point.doubleReturns the angle.voidgetGradientAxis(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.doubleReturns the radius.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMGradientFillderiveGradient, getColor, getColorStop, getColorStopCount, getColorStops, getGradientAxis, getGradientBounds, getRoll, getStopColor, getStopPosition, hasAlpha, insertColorStop, isRadial, paint, removeColorStop, reverseColors, setColor, setColorStop, setRoll, setStops, toStringMethods inherited from class com.inductiveautomation.rm.graphics.RMFillderiveFill, getBounds, readAttributesMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
_beginPoint
- 
_endPoint
 
- 
- 
Constructor Details- 
RMRadialGradientFillpublic RMRadialGradientFill()Creates an uninitialized radial fill.
- 
RMRadialGradientFillCreates a gradient fill from the given start color to the given end color with the given endpoints.
 
- 
- 
Method Details- 
getBeginPointReturns the begin point.
- 
getEndPointReturns the end point.
- 
getFocusAnglepublic double getFocusAngle()Returns the angle.
- 
getRadiuspublic double getRadius()Returns the radius.
- 
deriveGradientReturns a new gradient which is a copy of this gradient with a different gradient axis.
- 
deriveGradientReturns a new gradient which is a copy of this gradient but of a different type.- Overrides:
- deriveGradientin class- RMGradientFill
 
- 
getGradientAxisReturns the 2 points, in the shape's coordinate system, which define the gradient.- Overrides:
- getGradientAxisin class- RMGradientFill
 
- 
getPaintReturns a java.awt.Paint instance to draw this gradient.- Overrides:
- getPaintin class- RMGradientFill
 
- 
equalsStandard equals implementation.- Overrides:
- equalsin class- RMGradientFill
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMGradientFill
 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMGradientFill
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMGradientFill
 
- 
getNameReturns the name of the fill (Returns superclass name so the pop-up doesn't get confused).
 
-