Class RMLineShape

    • Constructor Detail

      • RMLineShape

        public RMLineShape()
        Creates a basic line (a point actually at 0,0).
      • RMLineShape

        public RMLineShape​(double x1,
                           double y1,
                           double x2,
                           double y2)
        Creates a basic black line from the given x1, y1 to the given x2, y2.
    • Method Detail

      • setArrowHead

        public void setArrowHead​(RMLineShape.ArrowHead anArrowHead)
        Sets the line segment arrow head.
      • childrenSuperSelectImmediately

        public boolean childrenSuperSelectImmediately()
        Override to prevent arrow heads from selecting.
        Overrides:
        childrenSuperSelectImmediately in class RMShape
      • setStroke

        public void setStroke​(RMStroke aStroke)
        Override to handle arrow heads special.
        Overrides:
        setStroke in class RMShape
      • setStrokeColor

        public void setStrokeColor​(RMColor aColor)
        Override to handle arrow heads special.
        Overrides:
        setStrokeColor in class RMShape
      • setStrokeWidth

        public void setStrokeWidth​(float aValue)
        Override to handle arrow heads special.
        Overrides:
        setStrokeWidth in class RMShape
      • layoutChildren

        protected void layoutChildren()
        Called to layout line arrow heads.
        Overrides:
        layoutChildren in class RMParentShape
      • setWidth

        public void setWidth​(double aWidth)
        Override to prevent width from going to zero.
        Overrides:
        setWidth in class RMParentShape
      • setHeight

        public void setHeight​(double aHeight)
        Override to prevent width from going to zero.
        Overrides:
        setHeight in class RMParentShape