Class RMHarvardRuleStroke

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMHarvardRuleStroke extends RMStroke
  • Field Details

  • Constructor Details

    • RMHarvardRuleStroke

      public RMHarvardRuleStroke()
      Creates a new plain harvard rule stroke.
    • RMHarvardRuleStroke

      public RMHarvardRuleStroke(RMColor col, float w)
      Creates a new harvard rule stroke.
    • RMHarvardRuleStroke

      public RMHarvardRuleStroke(RMColor col, float outerW, float innerW, float separation, int positions)
      Creates a new harvard rule stroke.
  • Method Details

    • getRulePositions

      public int getRulePositions()
      Returns the harvard rule stroke rule positions.
    • getInnerRuleWidth

      public float getInnerRuleWidth()
      Returns the inner rule width.
    • getOuterRuleWidth

      public float getOuterRuleWidth()
      Returns the outer rule width.
    • deriveStroke

      public RMStroke deriveStroke(RMColor aColor)
      Returns a stroke just like the receiver, except with the new given color.
      Overrides:
      deriveStroke in class RMStroke
    • deriveStroke

      public RMStroke deriveStroke(float aWidth)
      Returns a stroke just like the receiver, except with the new given line width.
      Overrides:
      deriveStroke in class RMStroke
    • getChildCount

      public int getChildCount()
      Returns the number of child strokes.
      Overrides:
      getChildCount in class RMFill
    • getChild

      public RMFill getChild(int anIndex)
      Returns the individual stroke at the given index.
      Overrides:
      getChild in class RMFill
    • toXML

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

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