Package com.inductiveautomation.rm.tool
Class RMCrossTabCellTool<T extends RMCrossTabCell>
- 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.RMTextShapeTool<T>
-
- com.inductiveautomation.rm.tool.RMCrossTabCellTool<T>
-
- All Implemented Interfaces:
RMSortPanel.Owner
public class RMCrossTabCellTool<T extends RMCrossTabCell> extends RMTextShapeTool<T> implements RMSortPanel.Owner
Provides Swing UI editing for RMCell shapes.
-
-
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_RESET
-
Fields 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 Constructor Description RMCrossTabCellTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JComponent
createUI()
Creates UI panel - base panel is RMTextTool version.boolean
drawBoundsRect(RMTextShape aText)
Returns whether to draw bounds rect.void
drop(T aCell, java.awt.dnd.DropTargetDropEvent anEvent)
Override normal implementation to handle KeysPanel drop.RMCrossTabCell
getCell()
Returns the currently selected cell.RMGrouping
getGrouping()
Returns the grouping of the selected cell.int
getHandleCount(T aShape)
Overrides tool method to indicate that cells have no handles.javax.swing.Icon
getIcon()
Returns the icon for bar labels (uses SwitchShapeTool icon).protected void
initUI()
Create UI panel.void
mouseDragged(T aCell, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mousePressed(T aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.void
mouseReleased(T aCell, java.awt.event.MouseEvent anEvent)
Event handling - overrides text to in case cell tool needs to forward events to table tool.void
processKeyEvent(T aCell, java.awt.event.KeyEvent anEvent)
Key event handler for super selected cell.void
resetUI()
Updates UI from currently selected cell.void
respondUI(SwingEvent anEvent)
Updates currently selected cell from UI controls.-
Methods inherited from class com.inductiveautomation.rm.tool.RMTextShapeTool
acceptsDrag, activateTool, convertToText, didBecomeSuperSelectedShapeInEditor, getHandleRect, getShapeClass, getToolTipText, getWindowTitle, isPaintingTextLinkIndicator, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, paintShapeHandles, paintTextLinkIndicator, willLoseSuperSelectionInEditor
-
Methods inherited from class com.inductiveautomation.rm.tool.RMTool
attachEventBus, deactivateTool, dragEnter, dragExit, dragOver, dropClass, dropColor, dropDragKey, dropFiles, dropString, flavorForClass, flushChanges, getAcceptsChildren, getBoundsSuperSelected, getDatasetEntity, getDragDisplayBounds, getEditor, getEditorPane, getFont, getFontDeep, getGalleryClone, getHandleAtPoint, getHandleCursor, getHandleOpposing, getHandlePoint, getIcon, getPointsFromUnits, getSelectedShape, getSelectedShapes, getSelectTool, getShapeFillInspector, getShapeHandleAtPoint, getTool, getTool, getUnitsFromPoints, isSelected, isSuperSelectable, isSuperSelected, isUngroupable, mouseMoved, newInstance, paintTool, reactivateTool, setFont, setFontBold, setFontBoldDeep, setFontFamily, setFontFamilyDeep, setFontItalic, setFontItalicDeep, setFontName, setFontNameDeep, setFontSize, setFontSizeDeep
-
Methods 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, setWindowVisible
-
Methods 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, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.rm.tool.RMSortPanel.Owner
getSelectedShape
-
-
-
-
Method Detail
-
createUI
protected javax.swing.JComponent createUI()
Creates UI panel - base panel is RMTextTool version.- Overrides:
createUI
in classRMTool<T extends RMCrossTabCell>
-
initUI
protected void initUI()
Create UI panel.- Overrides:
initUI
in classRMTextShapeTool<T extends RMCrossTabCell>
-
resetUI
public void resetUI()
Updates UI from currently selected cell.- Overrides:
resetUI
in classRMTextShapeTool<T extends RMCrossTabCell>
-
respondUI
public void respondUI(SwingEvent anEvent)
Updates currently selected cell from UI controls.- Specified by:
respondUI
in interfaceRMSortPanel.Owner
- Overrides:
respondUI
in classRMTextShapeTool<T extends RMCrossTabCell>
-
getCell
public RMCrossTabCell getCell()
Returns the currently selected cell.
-
getGrouping
public RMGrouping getGrouping()
Returns the grouping of the selected cell.- Specified by:
getGrouping
in interfaceRMSortPanel.Owner
-
mousePressed
public void mousePressed(T aShape, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mousePressed
in classRMTextShapeTool<T extends RMCrossTabCell>
-
mouseDragged
public void mouseDragged(T aCell, java.awt.event.MouseEvent anEvent)
Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
mouseDragged
in classRMTextShapeTool<T extends RMCrossTabCell>
-
mouseReleased
public void mouseReleased(T aCell, java.awt.event.MouseEvent anEvent)
Event handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
mouseReleased
in classRMTextShapeTool<T extends RMCrossTabCell>
-
processKeyEvent
public void processKeyEvent(T aCell, java.awt.event.KeyEvent anEvent)
Key event handler for super selected cell.- Overrides:
processKeyEvent
in classRMTextShapeTool<T extends RMCrossTabCell>
-
getHandleCount
public int getHandleCount(T aShape)
Overrides tool method to indicate that cells have no handles.- Overrides:
getHandleCount
in classRMTextShapeTool<T extends RMCrossTabCell>
-
getIcon
public javax.swing.Icon getIcon()
Returns the icon for bar labels (uses SwitchShapeTool icon).- Overrides:
getIcon
in classRMTool<T extends RMCrossTabCell>
-
drawBoundsRect
public boolean drawBoundsRect(RMTextShape aText)
Returns whether to draw bounds rect.
-
drop
public void drop(T aCell, java.awt.dnd.DropTargetDropEvent anEvent)
Override normal implementation to handle KeysPanel drop.- Overrides:
drop
in classRMTextShapeTool<T extends RMCrossTabCell>
-
-