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 SummaryFields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the currently active editor.getFill(int anIndex) Returns an individual fill at given index.intReturns 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.intReturns the number of known strokes.static RMFillToolgetTool()Returns the shared base tool instance.static RMFillToolReturns 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.SwingOwneraddKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, 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- 
RMFillToolpublic RMFillTool()
 
- 
- 
Method Details- 
resetUIpublic void resetUI()Called by Ribs to reset UI controls.- Overrides:
- resetUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
respondUICalled by Ribs to respond to UI controls- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
getEditorReturns the currently active editor.
- 
getStrokeCountpublic int getStrokeCount()Returns the number of known strokes.
- 
getStrokeReturns an individual stroke at given index.
- 
getFillCountpublic int getFillCount()Returns the number of known fills.
- 
getFillReturns an individual fill at given index.
- 
getSelectedStrokeReturns the currently selected shape's stroke.
- 
setSelectedStrokeIterate over editor selected shapes and set stroke.
- 
getSelectedFillReturns the currently selected shape's fill.
- 
setSelectedFillIterate over editor selected shapes and set fill.
- 
getToolReturns the shared base tool instance.
- 
getToolReturns the specific tool for a given fill.
 
-