Class RMEditorShape

    • Constructor Detail

      • RMEditorShape

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

      • getEditor

        public RMEditor getEditor()
        Returns the editor.
      • 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.
      • 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
      • 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