Class RMEditorShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class RMEditorShape extends RMViewerShape
The root shape for RMEditor.
  • Constructor Details

    • RMEditorShape

      public RMEditorShape(RMEditor anEditor)
      Creates a new editor shape.
  • Method Details

    • getEditor

      public RMEditor getEditor()
      Returns the editor.
    • setContent

      public void setContent(RMParentShape aShape)
      Override to do stuff for editor shape.
      Overrides:
      setContent in class RMViewerShape
    • getSnapGrid

      public boolean getSnapGrid()
      Returns whether content snaps to grid.
    • getGridSpacing

      public double getGridSpacing()
      Returns the content grid spacing.
    • getSnapMargin

      public boolean getSnapMargin()
      Returns whether content snaps to margin.
    • getUndoer

      public RMUndoer getUndoer()
      Returns the undoer.
      Overrides:
      getUndoer in class RMShape
    • isUseFill

      public boolean isUseFill()
      useFill etc exist only to make the background of the page act like selecting the page itself. That way, when users edit properties they see when selecting the background, the behavior is something they expect.
      Overrides:
      isUseFill in class RMShape
    • setUseFill

      public void setUseFill(boolean useFill)
      Overrides:
      setUseFill in class RMShape
    • getColor

      public RMColor getColor()
      Description copied from class: RMShape
      Returns the color of the shape.
      Overrides:
      getColor in class RMShape
    • setColor

      public void setColor(RMColor aColor)
      Description copied from class: RMShape
      Sets the color of the shape.
      Overrides:
      setColor in class RMShape
    • getOpacity

      public float getOpacity()
      Description copied from class: RMShape
      Returns the opacity of the shape (1 for opaque, 0 for transparent).
      Overrides:
      getOpacity in class RMShape
    • setOpacity

      public void setOpacity(float aValue)
      Description copied from class: RMShape
      Sets the opacity of the shape (1 for opaque, 0 for transparent).
      Overrides:
      setOpacity in class RMShape
    • getStrokeStyle

      public int getStrokeStyle()
      Overrides:
      getStrokeStyle in class RMShape
    • setStrokeStyle

      public void setStrokeStyle(int style)
      Overrides:
      setStrokeStyle in class RMShape
    • getStroke

      public RMStroke getStroke()
      Description copied from class: RMShape
      Returns the stroke for this shape.
      Overrides:
      getStroke in class RMShape
    • setStroke

      public void setStroke(RMStroke aStroke)
      Sets the stroke for this shape, with an option to turn on drawsStroke.
      Overrides:
      setStroke in class RMShape