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 Summary
Constructors -
Method Summary
Modifier 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.RMFill
deriveFill, getColor, hasAlpha, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
RMStroke
public RMStroke()Creates a plain, black stroke. -
RMStroke
Creates a stroke with the given color and line width.
-
-
Method Details
-
getWidth
public float getWidth()Returns the line width of this stroke. -
setWidth
public void setWidth(float aValue) Sets the line width of this stroke. -
getDashArray
public float[] getDashArray()Returns the dash array for this stroke. -
setDashArray
public void setDashArray(float[] anArray) Sets the dash array for this stroke. -
getDashArrayString
Returns the dash array for this stroke as a string. -
setDashArrayString
Sets the dash array for this stroke from a string. -
getDashArray
Returns a dash array for given dash array string and delimeter. -
getDashArrayString
Returns the dash array for this stroke as a string. -
getDashPhase
public float getDashPhase()Returns the dash phase. -
setDashPhase
public void setDashPhase(float aValue) Sets the dash phase. -
setColor
Overrides fill version to clear java 2d stroke. -
getStroke
Returns the java2d stroke to be used. -
getStrokePath
Returns the path to be stroked, transformed from the input path. -
getBounds
Returns the bounds required to render this fill for this shape. -
paint
Render this fill in a shape painter. -
getName
Returns the name of the fill. -
equals
Standard equals implementation. -
clone
Standard clone implementation. -
toXML
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMFill
-
fromXML
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMFill
-
readAttributes
- Overrides:
readAttributesin classRMFill
-