Class JSeparatorShape

    • Constructor Detail

      • JSeparatorShape

        public JSeparatorShape()
        Creates a new separator shape (used by archiver).
      • JSeparatorShape

        public JSeparatorShape​(javax.swing.JComponent aComponent)
        Creates a new separator shape for given component (separator).
    • Method Detail

      • getSeparator

        public javax.swing.JSeparator getSeparator()
        Returns the shape's component as a JSeparator.
      • setWidth

        public void setWidth​(double aValue)
        Overriden to ensure that only horizontal separators change the width.
        Overrides:
        setWidth in class RJShape
      • setHeight

        public void setHeight​(double aValue)
        Overriden to ensure that only vertical separators may change the height.
        Overrides:
        setHeight in class RJShape
      • setOrientation

        public void setOrientation​(int orientation)
        Resets the orientation of the separator component and resizes the shape.
      • getOrientation

        public int getOrientation()
        Returns the orientation of the JSeparator.
      • contains

        public boolean contains​(RMPoint aPoint)
        Overriden from RMShape to increase hit test rectangle.
        Overrides:
        contains in class RMShape