Class RMHarvardRuleStroke

    • Constructor Detail

      • 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 Detail

      • 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