Class RMBorderStroke

All Implemented Interfaces:
Archivable, RMPropertyChanger, Cloneable

public class RMBorderStroke extends RMStroke
This stroke subclass strokes the rectangular border of a given shape, with option include/exclude individual sides.
  • Constructor Details

    • RMBorderStroke

      public RMBorderStroke()
  • Method Details

    • 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 Shape getStrokePath(RMShape aShape)
      Returns the path to be stroked, transformed from the input path.
      Overrides:
      getStrokePath in class RMStroke
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class RMStroke
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class RMStroke
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class RMStroke