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 Summary
Nested classes/interfaces inherited from class com.inductiveautomation.rm.tool.RMTool
RMTool.RMShapeHandle -
Field Summary
Fields inherited from class com.inductiveautomation.rm.tool.RMTool
HandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESETFields 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 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.RMTool
acceptsDrag, 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.SwingOwner
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods 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
-
RMCrossTabTool
public RMCrossTabTool()
-
-
Method Details
-
resetUI
public void resetUI()Resets the Swing UI from current selected crosstab.- Overrides:
resetUIin classUIOwner<SwingEvent,JComponent>
-
respondUI
Updates currently selected crosstab from Swing UI.- Overrides:
respondUIin classUIOwner<SwingEvent,JComponent>
-
mouseMoved
Event handling - overridden to set a custom cursor.- Overrides:
mouseMovedin classRMTool<T extends RMCrossTab>
-
mousePressed
Handles Shape MousePressed.- Overrides:
mousePressedin classRMTool<T extends RMCrossTab>
-
mouseDragged
Handle CrossTab mouse dragged.- Overrides:
mouseDraggedin classRMTool<T extends RMCrossTab>
-
mouseReleased
Handle crosstab mouse released.- Overrides:
mouseReleasedin classRMTool<T extends RMCrossTab>
-
processKeyEvent
Key event handler for crosstab editing.- Overrides:
processKeyEventin classRMTool<T extends RMCrossTab>
-
runContextMenu
Runs a context menu for the given event. -
paintShapeHandles
Highlights the selected cells or dividers.- Overrides:
paintShapeHandlesin classRMTool<T extends RMCrossTab>
-
getTable
Returns the selected table. -
getCell
Returns the selected cell. -
getCellRect
Returns the cell rect for the given rectangle2d. -
getShapeClass
Returns the shape class this tool edits (RMTable).- Overrides:
getShapeClassin classRMTool<T extends RMCrossTab>
-
getWindowTitle
Returns the display name for this tool ("Table Inspector").- Overrides:
getWindowTitlein classRMTool<T extends RMCrossTab>
-
isSuperSelectable
Overridden to make crosstab super-selectable.- Overrides:
isSuperSelectablein classRMTool<T extends RMCrossTab>
-
isUngroupable
Overridden to make crosstab ungroupable.- Overrides:
isUngroupablein classRMTool<T extends RMCrossTab>
-
getHandleCount
Returns the number of handles for this shape.- Overrides:
getHandleCountin classRMTool<T extends RMCrossTab>
-
getHandlePoint
Editor method.- Overrides:
getHandlePointin classRMTool<T extends RMCrossTab>
-
getHandleCursor
Returns the cursor for given handle.- Overrides:
getHandleCursorin classRMTool<T extends RMCrossTab>
-
moveShapeHandle
Editor method.- Overrides:
moveShapeHandlein classRMTool<T extends RMCrossTab>
-
addCrossTab
Adds a crosstab to the given editor with the given list key. -
addCrossTab
Adds a crosstab to the given editor with the given list key. -
addCrossTab
-
addSimpleCrossTab
-