Package com.inductiveautomation.rm.tool
Class RMCrossTabTool<T extends RMCrossTab>
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
- 
- com.inductiveautomation.snap.swing.SwingOwner
- 
- com.inductiveautomation.rm.tool.RMTool<T>
- 
- com.inductiveautomation.rm.tool.RMCrossTabTool<T>
 
 
 
 
- 
 public class RMCrossTabTool<T extends RMCrossTab> extends RMTool<T> This class provides support for UI editing of RMCrossTab.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.tool.RMToolRMTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.tool.RMToolHandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESET
 - 
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 RMCrossTabTool()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddCrossTab(RMEditor anEditor)Adds a crosstab to the given editor with the given list key.static voidaddCrossTab(RMEditor anEditor, java.lang.String aKeyPath)Adds a crosstab to the given editor with the given list key.static voidaddCrossTab(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchorPoint, RMSize tableSize)static RMShapeaddSimpleCrossTab(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchor, RMSize size)RMCrossTabCellgetCell()Returns the selected cell.java.awt.RectanglegetCellRect(RMCrossTab aCTab, java.awt.geom.Rectangle2D aRect)Returns the cell rect for the given rectangle2d.intgetHandleCount(T aShape)Returns the number of handles for this shape.java.awt.CursorgetHandleCursor(T aShape, int aHandle)Returns the cursor for given handle.RMPointgetHandlePoint(T aShape, int aHandle, boolean isSuperSelected)Editor method.java.lang.ClassgetShapeClass()Returns the shape class this tool edits (RMTable).RMCrossTabgetTable()Returns the selected table.java.lang.StringgetWindowTitle()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, java.awt.event.MouseEvent anEvent)Handle CrossTab mouse dragged.voidmouseMoved(T aCTab, java.awt.event.MouseEvent anEvent)Event handling - overridden to set a custom cursor.voidmousePressed(T aCTab, java.awt.event.MouseEvent anEvent)Handles Shape MousePressed.voidmouseReleased(T aCTab, java.awt.event.MouseEvent anEvent)Handle crosstab mouse released.voidmoveShapeHandle(T aShape, int aHandle, RMPoint aPoint)Editor method.voidpaintShapeHandles(T aShape, java.awt.Graphics2D g, boolean isSuperSelected)Highlights the selected cells or dividers.voidprocessKeyEvent(T aCTab, java.awt.event.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(java.awt.event.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, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, 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() Resets the Swing UI from current selected crosstab.- Overrides:
- resetUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
respondUIpublic void respondUI(SwingEvent anEvent) Updates currently selected crosstab from Swing UI.- Overrides:
- respondUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
mouseMovedpublic void mouseMoved(T aCTab, java.awt.event.MouseEvent anEvent) Event handling - overridden to set a custom cursor.- Overrides:
- mouseMovedin class- RMTool<T extends RMCrossTab>
 
 - 
mousePressedpublic void mousePressed(T aCTab, java.awt.event.MouseEvent anEvent) Handles Shape MousePressed.- Overrides:
- mousePressedin class- RMTool<T extends RMCrossTab>
 
 - 
mouseDraggedpublic void mouseDragged(T aCTab, java.awt.event.MouseEvent anEvent) Handle CrossTab mouse dragged.- Overrides:
- mouseDraggedin class- RMTool<T extends RMCrossTab>
 
 - 
mouseReleasedpublic void mouseReleased(T aCTab, java.awt.event.MouseEvent anEvent) Handle crosstab mouse released.- Overrides:
- mouseReleasedin class- RMTool<T extends RMCrossTab>
 
 - 
processKeyEventpublic void processKeyEvent(T aCTab, java.awt.event.KeyEvent anEvent) Key event handler for crosstab editing.- Overrides:
- processKeyEventin class- RMTool<T extends RMCrossTab>
 
 - 
runContextMenupublic void runContextMenu(java.awt.event.MouseEvent anEvent) Runs a context menu for the given event.
 - 
paintShapeHandlespublic void paintShapeHandles(T aShape, java.awt.Graphics2D g, boolean isSuperSelected) Highlights the selected cells or dividers.- Overrides:
- paintShapeHandlesin class- RMTool<T extends RMCrossTab>
 
 - 
getTablepublic RMCrossTab getTable() Returns the selected table.
 - 
getCellpublic RMCrossTabCell getCell() Returns the selected cell.
 - 
getCellRectpublic java.awt.Rectangle getCellRect(RMCrossTab aCTab, java.awt.geom.Rectangle2D aRect) Returns the cell rect for the given rectangle2d.
 - 
getShapeClasspublic java.lang.Class getShapeClass() Returns the shape class this tool edits (RMTable).- Overrides:
- getShapeClassin class- RMTool<T extends RMCrossTab>
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the display name for this tool ("Table Inspector").- Overrides:
- getWindowTitlein class- RMTool<T extends RMCrossTab>
 
 - 
isSuperSelectablepublic boolean isSuperSelectable(RMShape aShape) Overridden to make crosstab super-selectable.- Overrides:
- isSuperSelectablein class- RMTool<T extends RMCrossTab>
 
 - 
isUngroupablepublic boolean isUngroupable(RMShape aShape) Overridden to make crosstab ungroupable.- Overrides:
- isUngroupablein class- RMTool<T extends RMCrossTab>
 
 - 
getHandleCountpublic int getHandleCount(T aShape) Returns the number of handles for this shape.- Overrides:
- getHandleCountin class- RMTool<T extends RMCrossTab>
 
 - 
getHandlePointpublic RMPoint getHandlePoint(T aShape, int aHandle, boolean isSuperSelected) Editor method.- Overrides:
- getHandlePointin class- RMTool<T extends RMCrossTab>
 
 - 
getHandleCursorpublic java.awt.Cursor getHandleCursor(T aShape, int aHandle) Returns the cursor for given handle.- Overrides:
- getHandleCursorin class- RMTool<T extends RMCrossTab>
 
 - 
moveShapeHandlepublic void moveShapeHandle(T aShape, int aHandle, RMPoint aPoint) Editor method.- Overrides:
- moveShapeHandlein class- RMTool<T extends RMCrossTab>
 
 - 
addCrossTabpublic static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath) Adds a crosstab to the given editor with the given list key.
 - 
addCrossTabpublic static void addCrossTab(RMEditor anEditor) Adds a crosstab to the given editor with the given list key.
 - 
addCrossTabpublic static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchorPoint, RMSize tableSize) 
 
- 
 
-