Class JSeparatorShape

All Implemented Interfaces:
RMArchiver.Archiving, RMShapePainter.Paint, RJMinMaxSizeSettable, Cloneable

public class JSeparatorShape extends RJShape
This class provides a RM shape/inspector for editing JSeparator.
  • Constructor Details

    • JSeparatorShape

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

      public JSeparatorShape(JComponent aComponent)
      Creates a new separator shape for given component (separator).
  • Method Details

    • getSeparator

      public 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