Class RMFillTool

    • Constructor Detail

      • RMFillTool

        public RMFillTool()
    • Method Detail

      • resetUI

        public void resetUI()
        Called by Ribs to reset UI controls.
        Overrides:
        resetUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • getEditor

        public RMEditor getEditor()
        Returns the currently active editor.
      • getStrokeCount

        public int getStrokeCount()
        Returns the number of known strokes.
      • getStroke

        public RMStroke getStroke​(int anIndex)
        Returns an individual stroke at given index.
      • getFillCount

        public int getFillCount()
        Returns the number of known fills.
      • getFill

        public RMFill getFill​(int anIndex)
        Returns an individual fill at given index.
      • getSelectedStroke

        public RMStroke getSelectedStroke()
        Returns the currently selected shape's stroke.
      • setSelectedStroke

        public void setSelectedStroke​(RMStroke aStroke)
        Iterate over editor selected shapes and set stroke.
      • getSelectedFill

        public RMFill getSelectedFill()
        Returns the currently selected shape's fill.
      • setSelectedFill

        public void setSelectedFill​(RMFill aFill)
        Iterate over editor selected shapes and set fill.
      • getTool

        public static RMFillTool getTool()
        Returns the shared base tool instance.
      • getTool

        public static RMFillTool getTool​(java.lang.Object anObj)
        Returns the specific tool for a given fill.