Package com.inductiveautomation.rm.tool
Class RMFillTool
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.tool.RMFillTool
- Direct Known Subclasses:
RMGradientFillTool
,RMImageFillTool
,RMStrokeTool
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the currently active editor.getFill
(int anIndex) Returns an individual fill at given index.int
Returns the number of known fills.Returns the currently selected shape's fill.Returns the currently selected shape's stroke.getStroke
(int anIndex) Returns an individual stroke at given index.int
Returns the number of known strokes.static RMFillTool
getTool()
Returns the shared base tool instance.static RMFillTool
Returns the specific tool for a given fill.void
resetUI()
Called by Ribs to reset UI controls.void
respondUI
(SwingEvent anEvent) Called by Ribs to respond to UI controlsvoid
setSelectedFill
(RMFill aFill) Iterate over editor selected shapes and set fill.void
setSelectedStroke
(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
-
Constructor Details
-
RMFillTool
public RMFillTool()
-
-
Method Details
-
resetUI
public void resetUI()Called by Ribs to reset UI controls.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Called by Ribs to respond to UI controls- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
getEditor
Returns the currently active editor. -
getStrokeCount
public int getStrokeCount()Returns the number of known strokes. -
getStroke
Returns an individual stroke at given index. -
getFillCount
public int getFillCount()Returns the number of known fills. -
getFill
Returns an individual fill at given index. -
getSelectedStroke
Returns the currently selected shape's stroke. -
setSelectedStroke
Iterate over editor selected shapes and set stroke. -
getSelectedFill
Returns the currently selected shape's fill. -
setSelectedFill
Iterate over editor selected shapes and set fill. -
getTool
Returns the shared base tool instance. -
getTool
Returns the specific tool for a given fill.
-