public class RMCrossTabTool<T extends RMCrossTab> extends RMTool<T>
RMTool.RMShapeHandleHandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESETDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased| Constructor and Description |
|---|
RMCrossTabTool() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCrossTab(RMEditor anEditor)
Adds a crosstab to the given editor with the given list key.
|
static void |
addCrossTab(RMEditor anEditor,
java.lang.String aKeyPath)
Adds a crosstab to the given editor with the given list key.
|
static void |
addCrossTab(RMEditor anEditor,
java.lang.String aKeyPath,
RMPoint anchorPoint,
RMSize tableSize) |
static RMShape |
addSimpleCrossTab(RMEditor anEditor,
java.lang.String aKeyPath,
RMPoint anchor,
RMSize size) |
RMCrossTabCell |
getCell()
Returns the selected cell.
|
java.awt.Rectangle |
getCellRect(RMCrossTab aCTab,
java.awt.geom.Rectangle2D aRect)
Returns the cell rect for the given rectangle2d.
|
int |
getHandleCount(T aShape)
Returns the number of handles for this shape.
|
java.awt.Cursor |
getHandleCursor(T aShape,
int aHandle)
Returns the cursor for given handle.
|
RMPoint |
getHandlePoint(T aShape,
int aHandle,
boolean isSuperSelected)
Editor method.
|
java.lang.Class |
getShapeClass()
Returns the shape class this tool edits (RMTable).
|
RMCrossTab |
getTable()
Returns the selected table.
|
java.lang.String |
getWindowTitle()
Returns the display name for this tool ("Table Inspector").
|
boolean |
isSuperSelectable(RMShape aShape)
Overridden to make crosstab super-selectable.
|
boolean |
isUngroupable(RMShape aShape)
Overridden to make crosstab ungroupable.
|
void |
mouseDragged(T aCTab,
java.awt.event.MouseEvent anEvent)
Handle CrossTab mouse dragged.
|
void |
mouseMoved(T aCTab,
java.awt.event.MouseEvent anEvent)
Event handling - overridden to set a custom cursor.
|
void |
mousePressed(T aCTab,
java.awt.event.MouseEvent anEvent)
Handles Shape MousePressed.
|
void |
mouseReleased(T aCTab,
java.awt.event.MouseEvent anEvent)
Handle crosstab mouse released.
|
void |
moveShapeHandle(T aShape,
int aHandle,
RMPoint aPoint)
Editor method.
|
void |
paintShapeHandles(T aShape,
java.awt.Graphics2D g,
boolean isSuperSelected)
Highlights the selected cells or dividers.
|
void |
processKeyEvent(T aCTab,
java.awt.event.KeyEvent anEvent)
Key event handler for crosstab editing.
|
void |
resetUI()
Resets the Swing UI from current selected crosstab.
|
void |
respondUI(SwingEvent anEvent)
Updates currently selected crosstab from Swing UI.
|
void |
runContextMenu(java.awt.event.MouseEvent anEvent)
Runs a context menu for the given event.
|
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, willLoseSuperSelectionInEditoraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleaddNodeBinding, 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, setSendEventDisabledpublic void resetUI()
resetUI in class UIOwner<SwingEvent,javax.swing.JComponent>public void respondUI(SwingEvent anEvent)
respondUI in class UIOwner<SwingEvent,javax.swing.JComponent>public void mouseMoved(T aCTab, java.awt.event.MouseEvent anEvent)
mouseMoved in class RMTool<T extends RMCrossTab>public void mousePressed(T aCTab, java.awt.event.MouseEvent anEvent)
mousePressed in class RMTool<T extends RMCrossTab>public void mouseDragged(T aCTab, java.awt.event.MouseEvent anEvent)
mouseDragged in class RMTool<T extends RMCrossTab>public void mouseReleased(T aCTab, java.awt.event.MouseEvent anEvent)
mouseReleased in class RMTool<T extends RMCrossTab>public void processKeyEvent(T aCTab, java.awt.event.KeyEvent anEvent)
processKeyEvent in class RMTool<T extends RMCrossTab>public void runContextMenu(java.awt.event.MouseEvent anEvent)
public void paintShapeHandles(T aShape, java.awt.Graphics2D g, boolean isSuperSelected)
paintShapeHandles in class RMTool<T extends RMCrossTab>public RMCrossTab getTable()
public RMCrossTabCell getCell()
public java.awt.Rectangle getCellRect(RMCrossTab aCTab, java.awt.geom.Rectangle2D aRect)
public java.lang.Class getShapeClass()
getShapeClass in class RMTool<T extends RMCrossTab>public java.lang.String getWindowTitle()
getWindowTitle in class RMTool<T extends RMCrossTab>public boolean isSuperSelectable(RMShape aShape)
isSuperSelectable in class RMTool<T extends RMCrossTab>public boolean isUngroupable(RMShape aShape)
isUngroupable in class RMTool<T extends RMCrossTab>public int getHandleCount(T aShape)
getHandleCount in class RMTool<T extends RMCrossTab>public RMPoint getHandlePoint(T aShape, int aHandle, boolean isSuperSelected)
getHandlePoint in class RMTool<T extends RMCrossTab>public java.awt.Cursor getHandleCursor(T aShape, int aHandle)
getHandleCursor in class RMTool<T extends RMCrossTab>public void moveShapeHandle(T aShape, int aHandle, RMPoint aPoint)
moveShapeHandle in class RMTool<T extends RMCrossTab>public static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath)
public static void addCrossTab(RMEditor anEditor)
public static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchorPoint, RMSize tableSize)