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,- Cloneable
- Direct Known Subclasses:
- RMBorderStroke,- RMDoubleStroke
An RMFill subclass specifically designed to describe strokes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement e) XML unarchival.Returns the bounds required to render this fill for this shape.float[]Returns the dash array for this stroke.static float[]getDashArray(String aString, String aDelimeter) Returns a dash array for given dash array string and delimeter.Returns the dash array for this stroke as a string.static StringgetDashArrayString(float[] dashArray, String aDelimiter) Returns the dash array for this stroke as a string.floatReturns the dash phase.getName()Returns the name of the fill.protected StrokeReturns the java2d stroke to be used.getStrokePath(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 voidvoidOverrides fill version to clear java 2d stroke.voidsetDashArray(float[] anArray) Sets the dash array for this stroke.voidsetDashArrayString(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.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMFillderiveFill, getColor, hasAlpha, toStringMethods 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
- 
Constructor Details- 
RMStrokepublic RMStroke()Creates a plain, black stroke.
- 
RMStrokeCreates a stroke with the given color and line width.
 
- 
- 
Method Details- 
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.
- 
getDashArrayStringReturns the dash array for this stroke as a string.
- 
setDashArrayStringSets the dash array for this stroke from a string.
- 
getDashArrayReturns a dash array for given dash array string and delimeter.
- 
getDashArrayStringReturns 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.
- 
setColorOverrides fill version to clear java 2d stroke.
- 
getStrokeReturns the java2d stroke to be used.
- 
getStrokePathReturns the path to be stroked, transformed from the input path.
- 
getBoundsReturns the bounds required to render this fill for this shape.
- 
paintRender this fill in a shape painter.
- 
getNameReturns the name of the fill.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMFill
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMFill
 
- 
readAttributes- Overrides:
- readAttributesin class- RMFill
 
 
-