Package com.inductiveautomation.rm.tool
Class RMFillTool
- java.lang.Object
-
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
-
- com.inductiveautomation.snap.swing.SwingOwner
-
- com.inductiveautomation.rm.tool.RMFillTool
-
- Direct Known Subclasses:
RMGradientFillTool,RMImageFillTool,RMStrokeTool
public class RMFillTool extends SwingOwner
Provides a tool for editing RMFills.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.snap.ui.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
-
Constructor Summary
Constructors Constructor Description RMFillTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RMEditorgetEditor()Returns the currently active editor.RMFillgetFill(int anIndex)Returns an individual fill at given index.intgetFillCount()Returns the number of known fills.RMFillgetSelectedFill()Returns the currently selected shape's fill.RMStrokegetSelectedStroke()Returns the currently selected shape's stroke.RMStrokegetStroke(int anIndex)Returns an individual stroke at given index.intgetStrokeCount()Returns the number of known strokes.static RMFillToolgetTool()Returns the shared base tool instance.static RMFillToolgetTool(java.lang.Object anObj)Returns the specific tool for a given fill.voidresetUI()Called by Ribs to reset UI controls.voidrespondUI(SwingEvent anEvent)Called by Ribs to respond to UI controlsvoidsetSelectedFill(RMFill aFill)Iterate over editor selected shapes and set fill.voidsetSelectedStroke(RMStroke aStroke)Iterate over editor selected shapes and set stroke.-
Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
-
Methods inherited from class com.inductiveautomation.snap.ui.UIOwner
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
-
-
-
-
Method Detail
-
resetUI
public void resetUI()
Called by Ribs to reset UI controls.- Overrides:
resetUIin classUIOwner<SwingEvent,javax.swing.JComponent>
-
respondUI
public void respondUI(SwingEvent anEvent)
Called by Ribs to respond to UI controls- Overrides:
respondUIin classUIOwner<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.
-
-