Class RMStroke
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.graphics.RMFill
- 
- com.inductiveautomation.rm.graphics.RMStroke
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- RMPropertyChanger,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMBorderStroke,- RMDoubleStroke
 
 public class RMStroke extends RMFill An RMFill subclass specifically designed to describe strokes.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RMStrokeclone()Standard clone implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement e)XML unarchival.RMRectgetBounds(RMShape aShape)Returns the bounds required to render this fill for this shape.float[]getDashArray()Returns the dash array for this stroke.static float[]getDashArray(java.lang.String aString, java.lang.String aDelimeter)Returns a dash array for given dash array string and delimeter.java.lang.StringgetDashArrayString()Returns the dash array for this stroke as a string.static java.lang.StringgetDashArrayString(float[] dashArray, java.lang.String aDelimiter)Returns the dash array for this stroke as a string.floatgetDashPhase()Returns the dash phase.java.lang.StringgetName()Returns the name of the fill.protected java.awt.StrokegetStroke()Returns the java2d stroke to be used.java.awt.ShapegetStrokePath(RMShape aShape)Returns the path to be stroked, transformed from the input path.floatgetWidth()Returns the line width of this stroke.voidpaint(RMShapePainter aPntr, RMShape aShape)Render this fill in a shape painter.protected voidreadAttributes(RXElement e)voidsetColor(RMColor aColor)Overrides fill version to clear java 2d stroke.voidsetDashArray(float[] anArray)Sets the dash array for this stroke.voidsetDashArrayString(java.lang.String aString)Sets the dash array for this stroke from a string.voidsetDashPhase(float aValue)Sets the dash phase.voidsetWidth(float aValue)Sets the line width of this stroke.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.graphics.RMFillderiveFill, getColor, hasAlpha, toString
 - 
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
 
- 
 
- 
- 
- 
Constructor Detail- 
RMStrokepublic RMStroke() Creates a plain, black stroke.
 - 
RMStrokepublic RMStroke(RMColor aColor, float aStrokeWidth) Creates a stroke with the given color and line width.
 
- 
 - 
Method Detail- 
getWidthpublic float getWidth() Returns the line width of this stroke.
 - 
setWidthpublic void setWidth(float aValue) Sets the line width of this stroke.
 - 
getDashArraypublic float[] getDashArray() Returns the dash array for this stroke.
 - 
setDashArraypublic void setDashArray(float[] anArray) Sets the dash array for this stroke.
 - 
getDashArrayStringpublic java.lang.String getDashArrayString() Returns the dash array for this stroke as a string.
 - 
setDashArrayStringpublic void setDashArrayString(java.lang.String aString) Sets the dash array for this stroke from a string.
 - 
getDashArraypublic static float[] getDashArray(java.lang.String aString, java.lang.String aDelimeter)Returns a dash array for given dash array string and delimeter.
 - 
getDashArrayStringpublic static java.lang.String getDashArrayString(float[] dashArray, java.lang.String aDelimiter)Returns the dash array for this stroke as a string.
 - 
getDashPhasepublic float getDashPhase() Returns the dash phase.
 - 
setDashPhasepublic void setDashPhase(float aValue) Sets the dash phase.
 - 
setColorpublic void setColor(RMColor aColor) Overrides fill version to clear java 2d stroke.
 - 
getStrokeprotected java.awt.Stroke getStroke() Returns the java2d stroke to be used.
 - 
getStrokePathpublic java.awt.Shape getStrokePath(RMShape aShape) Returns the path to be stroked, transformed from the input path.
 - 
getBoundspublic RMRect getBounds(RMShape aShape) Returns the bounds required to render this fill for this shape.
 - 
paintpublic void paint(RMShapePainter aPntr, RMShape aShape) Render this fill in a shape painter.
 - 
getNamepublic java.lang.String getName() Returns the name of the fill.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMFill
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement e) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMFill
 
 - 
readAttributesprotected void readAttributes(RXElement e) - Overrides:
- readAttributesin class- RMFill
 
 
- 
 
-