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,- java.lang.Cloneable
 
 public class RMRadialGradientFill extends RMGradientFill Radial Gradient Fill.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMGradientFillRMGradientFill.ColorStop
 
- 
 - 
Field SummaryFields Modifier and Type Field Description java.awt.geom.Point2D_beginPointjava.awt.geom.Point2D_endPoint
 - 
Constructor SummaryConstructors Constructor Description RMRadialGradientFill()Creates an uninitialized radial fill.RMRadialGradientFill(RMColor aColor1, RMColor aColor2, java.awt.geom.Point2D begin, java.awt.geom.Point2D end)Creates a gradient fill from the given start color to the given end color with the given endpoints.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMRadialGradientFillclone()Standard clone implementation.RMGradientFillderiveGradient(boolean isRadial)Returns a new gradient which is a copy of this gradient but of a different type.RMRadialGradientFillderiveGradient(java.awt.geom.Point2D begin, java.awt.geom.Point2D end)Returns a new gradient which is a copy of this gradient with a different gradient axis.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.java.awt.geom.Point2DgetBeginPoint()Returns the begin point.java.awt.geom.Point2DgetEndPoint()Returns the end point.doublegetFocusAngle()Returns the angle.voidgetGradientAxis(RMShape aShape, RMPath aPath, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)Returns the 2 points, in the shape's coordinate system, which define the gradient.java.lang.StringgetName()Returns the name of the fill (Returns superclass name so the pop-up doesn't get confused).java.awt.PaintgetPaint(float startx, float starty, float endx, float endy)Returns a java.awt.Paint instance to draw this gradient.doublegetRadius()Returns the radius.RXElementtoXML(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, toString
 - 
Methods inherited from class com.inductiveautomation.rm.graphics.RMFillderiveFill, getBounds, readAttributes
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getBeginPointpublic java.awt.geom.Point2D getBeginPoint() Returns the begin point.
 - 
getEndPointpublic java.awt.geom.Point2D getEndPoint() Returns the end point.
 - 
getFocusAnglepublic double getFocusAngle() Returns the angle.
 - 
getRadiuspublic double getRadius() Returns the radius.
 - 
deriveGradientpublic RMRadialGradientFill deriveGradient(java.awt.geom.Point2D begin, java.awt.geom.Point2D end) Returns a new gradient which is a copy of this gradient with a different gradient axis.
 - 
deriveGradientpublic RMGradientFill deriveGradient(boolean isRadial) Returns a new gradient which is a copy of this gradient but of a different type.- Overrides:
- deriveGradientin class- RMGradientFill
 
 - 
getGradientAxispublic void getGradientAxis(RMShape aShape, RMPath aPath, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2) Returns the 2 points, in the shape's coordinate system, which define the gradient.- Overrides:
- getGradientAxisin class- RMGradientFill
 
 - 
getPaintpublic java.awt.Paint getPaint(float startx, float starty, float endx, float endy)Returns a java.awt.Paint instance to draw this gradient.- Overrides:
- getPaintin class- RMGradientFill
 
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- RMGradientFill
 
 - 
clonepublic RMRadialGradientFill clone() Standard clone implementation.- Overrides:
- clonein class- RMGradientFill
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMGradientFill
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMGradientFill
 
 
- 
 
-