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.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMFillTool()
 - 
Method SummaryAll 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.SwingOwneraddKeyActionEvent, 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.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
 
- 
 
- 
- 
- 
Method Detail- 
resetUIpublic void resetUI() Called by Ribs to reset UI controls.- Overrides:
- resetUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
respondUIpublic void respondUI(SwingEvent anEvent) Called by Ribs to respond to UI controls- Overrides:
- respondUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
getEditorpublic RMEditor getEditor() Returns the currently active editor.
 - 
getStrokeCountpublic int getStrokeCount() Returns the number of known strokes.
 - 
getStrokepublic RMStroke getStroke(int anIndex) Returns an individual stroke at given index.
 - 
getFillCountpublic int getFillCount() Returns the number of known fills.
 - 
getFillpublic RMFill getFill(int anIndex) Returns an individual fill at given index.
 - 
getSelectedStrokepublic RMStroke getSelectedStroke() Returns the currently selected shape's stroke.
 - 
setSelectedStrokepublic void setSelectedStroke(RMStroke aStroke) Iterate over editor selected shapes and set stroke.
 - 
getSelectedFillpublic RMFill getSelectedFill() Returns the currently selected shape's fill.
 - 
setSelectedFillpublic void setSelectedFill(RMFill aFill) Iterate over editor selected shapes and set fill.
 - 
getToolpublic static RMFillTool getTool() Returns the shared base tool instance.
 - 
getToolpublic static RMFillTool getTool(java.lang.Object anObj) Returns the specific tool for a given fill.
 
- 
 
-