Class RMBorderStroke
- java.lang.Object
-
- com.inductiveautomation.rm.base.RMListenerList
-
- com.inductiveautomation.rm.base.RMObject
-
- com.inductiveautomation.rm.graphics.RMFill
-
- com.inductiveautomation.rm.graphics.RMStroke
-
- com.inductiveautomation.rm.graphics.RMBorderStroke
-
- All Implemented Interfaces:
Archivable
,RMPropertyChanger
,java.lang.Cloneable
public class RMBorderStroke extends RMStroke
This stroke subclass strokes the rectangular border of a given shape, with option include/exclude individual sides.
-
-
Constructor Summary
Constructors Constructor Description RMBorderStroke()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object anObj)
Standard equals implementation.java.lang.Object
fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.boolean
getShowBottom()
Returns whether to show bottom border.boolean
getShowLeft()
Returns whether to show left border.boolean
getShowRight()
Returns whether to show right border.boolean
getShowTop()
Returns whether to show top border.java.awt.Shape
getStrokePath(RMShape aShape)
Returns the path to be stroked, transformed from the input path.void
setShowBottom(boolean aValue)
Sets whether to show bottom border.void
setShowLeft(boolean aValue)
Sets whether to show left border.void
setShowRight(boolean aValue)
Sets whether to show right border.void
setShowTop(boolean aValue)
Sets whether to show top border.RXElement
toXML(RXArchiver anArchiver)
XML archival.-
Methods inherited from class com.inductiveautomation.rm.graphics.RMStroke
clone, getBounds, getDashArray, getDashArray, getDashArrayString, getDashArrayString, getDashPhase, getName, getStroke, getWidth, paint, readAttributes, setColor, setDashArray, setDashArrayString, setDashPhase, setWidth
-
Methods inherited from class com.inductiveautomation.rm.graphics.RMFill
deriveFill, getColor, hasAlpha, toString
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getShowLeft
public boolean getShowLeft()
Returns whether to show left border.
-
setShowLeft
public void setShowLeft(boolean aValue)
Sets whether to show left border.
-
getShowRight
public boolean getShowRight()
Returns whether to show right border.
-
setShowRight
public void setShowRight(boolean aValue)
Sets whether to show right border.
-
getShowTop
public boolean getShowTop()
Returns whether to show top border.
-
setShowTop
public void setShowTop(boolean aValue)
Sets whether to show top border.
-
getShowBottom
public boolean getShowBottom()
Returns whether to show bottom border.
-
setShowBottom
public void setShowBottom(boolean aValue)
Sets whether to show bottom border.
-
getStrokePath
public java.awt.Shape getStrokePath(RMShape aShape)
Returns the path to be stroked, transformed from the input path.- Overrides:
getStrokePath
in classRMStroke
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXML
in interfaceArchivable
- Overrides:
toXML
in classRMStroke
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
- Overrides:
fromXML
in classRMStroke
-
-