Package com.inductiveautomation.rm.tool
Class RMCrossTabTool<T extends RMCrossTab>
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.tool.RMTool<T>
com.inductiveautomation.rm.tool.RMCrossTabTool<T>
This class provides support for UI editing of RMCrossTab.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.rm.tool.RMToolRMTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.tool.RMToolHandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESETFields 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 TypeMethodDescriptionstatic voidaddCrossTab(RMEditor anEditor) Adds a crosstab to the given editor with the given list key.static voidaddCrossTab(RMEditor anEditor, String aKeyPath) Adds a crosstab to the given editor with the given list key.static voidaddCrossTab(RMEditor anEditor, String aKeyPath, RMPoint anchorPoint, RMSize tableSize) static RMShapeaddSimpleCrossTab(RMEditor anEditor, String aKeyPath, RMPoint anchor, RMSize size) getCell()Returns the selected cell.getCellRect(RMCrossTab aCTab, Rectangle2D aRect) Returns the cell rect for the given rectangle2d.intgetHandleCount(T aShape) Returns the number of handles for this shape.getHandleCursor(T aShape, int aHandle) Returns the cursor for given handle.getHandlePoint(T aShape, int aHandle, boolean isSuperSelected) Editor method.Returns the shape class this tool edits (RMTable).getTable()Returns the selected table.Returns the display name for this tool ("Table Inspector").booleanisSuperSelectable(RMShape aShape) Overridden to make crosstab super-selectable.booleanisUngroupable(RMShape aShape) Overridden to make crosstab ungroupable.voidmouseDragged(T aCTab, MouseEvent anEvent) Handle CrossTab mouse dragged.voidmouseMoved(T aCTab, MouseEvent anEvent) Event handling - overridden to set a custom cursor.voidmousePressed(T aCTab, MouseEvent anEvent) Handles Shape MousePressed.voidmouseReleased(T aCTab, MouseEvent anEvent) Handle crosstab mouse released.voidmoveShapeHandle(T aShape, int aHandle, RMPoint aPoint) Editor method.voidpaintShapeHandles(T aShape, Graphics2D g, boolean isSuperSelected) Highlights the selected cells or dividers.voidprocessKeyEvent(T aCTab, KeyEvent anEvent) Key event handler for crosstab editing.voidresetUI()Resets the Swing UI from current selected crosstab.voidrespondUI(SwingEvent anEvent) Updates currently selected crosstab from Swing UI.voidrunContextMenu(MouseEvent anEvent) Runs a context menu for the given event.Methods inherited from class com.inductiveautomation.rm.tool.RMToolacceptsDrag, activateTool, attachEventBus, createUI, deactivateTool, didBecomeSuperSelectedShapeInEditor, dragEnter, dragExit, dragOver, drop, dropClass, dropColor, dropDragKey, dropFiles, dropString, flavorForClass, flushChanges, getAcceptsChildren, getBoundsSuperSelected, getDatasetEntity, getDragDisplayBounds, getEditor, getEditorPane, getFont, getFontDeep, getGalleryClone, getHandleAtPoint, getHandleOpposing, getHandleRect, getIcon, getIcon, getPointsFromUnits, getSelectedShape, getSelectedShapes, getSelectTool, getShapeFillInspector, getShapeHandleAtPoint, getTool, getTool, getToolTipText, getUnitsFromPoints, isSelected, isSuperSelected, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, newInstance, paintTool, reactivateTool, setFont, setFontBold, setFontBoldDeep, setFontFamily, setFontFamilyDeep, setFontItalic, setFontItalicDeep, setFontName, setFontNameDeep, setFontSize, setFontSizeDeep, willLoseSuperSelectionInEditorMethods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, 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- 
RMCrossTabToolpublic RMCrossTabTool()
 
- 
- 
Method Details- 
resetUIpublic void resetUI()Resets the Swing UI from current selected crosstab.- Overrides:
- resetUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
respondUIUpdates currently selected crosstab from Swing UI.- Overrides:
- respondUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
mouseMovedEvent handling - overridden to set a custom cursor.- Overrides:
- mouseMovedin class- RMTool<T extends RMCrossTab>
 
- 
mousePressedHandles Shape MousePressed.- Overrides:
- mousePressedin class- RMTool<T extends RMCrossTab>
 
- 
mouseDraggedHandle CrossTab mouse dragged.- Overrides:
- mouseDraggedin class- RMTool<T extends RMCrossTab>
 
- 
mouseReleasedHandle crosstab mouse released.- Overrides:
- mouseReleasedin class- RMTool<T extends RMCrossTab>
 
- 
processKeyEventKey event handler for crosstab editing.- Overrides:
- processKeyEventin class- RMTool<T extends RMCrossTab>
 
- 
runContextMenuRuns a context menu for the given event.
- 
paintShapeHandlesHighlights the selected cells or dividers.- Overrides:
- paintShapeHandlesin class- RMTool<T extends RMCrossTab>
 
- 
getTableReturns the selected table.
- 
getCellReturns the selected cell.
- 
getCellRectReturns the cell rect for the given rectangle2d.
- 
getShapeClassReturns the shape class this tool edits (RMTable).- Overrides:
- getShapeClassin class- RMTool<T extends RMCrossTab>
 
- 
getWindowTitleReturns the display name for this tool ("Table Inspector").- Overrides:
- getWindowTitlein class- RMTool<T extends RMCrossTab>
 
- 
isSuperSelectableOverridden to make crosstab super-selectable.- Overrides:
- isSuperSelectablein class- RMTool<T extends RMCrossTab>
 
- 
isUngroupableOverridden to make crosstab ungroupable.- Overrides:
- isUngroupablein class- RMTool<T extends RMCrossTab>
 
- 
getHandleCountReturns the number of handles for this shape.- Overrides:
- getHandleCountin class- RMTool<T extends RMCrossTab>
 
- 
getHandlePointEditor method.- Overrides:
- getHandlePointin class- RMTool<T extends RMCrossTab>
 
- 
getHandleCursorReturns the cursor for given handle.- Overrides:
- getHandleCursorin class- RMTool<T extends RMCrossTab>
 
- 
moveShapeHandleEditor method.- Overrides:
- moveShapeHandlein class- RMTool<T extends RMCrossTab>
 
- 
addCrossTabAdds a crosstab to the given editor with the given list key.
- 
addCrossTabAdds a crosstab to the given editor with the given list key.
- 
addCrossTab
- 
addSimpleCrossTab
 
-