Class RMFillTool

Direct Known Subclasses:
RMGradientFillTool, RMImageFillTool, RMStrokeTool

public class RMFillTool extends SwingOwner
Provides a tool for editing RMFills.
  • Constructor Details

    • RMFillTool

      public RMFillTool()
  • Method Details

    • resetUI

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

      public void respondUI(SwingEvent anEvent)
      Called by Ribs to respond to UI controls
      Overrides:
      respondUI in class UIOwner<SwingEvent,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(Object anObj)
      Returns the specific tool for a given fill.