public class RMGraphTool<T extends RMGraph> extends RMTool<T> implements RMSortPanel.Owner
Modifier and Type | Class and Description |
---|---|
protected class |
RMGraphTool.Scene3DTool
The Scene3DTool.
|
RMTool.RMShapeHandle
HandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESET
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
Constructor and Description |
---|
RMGraphTool() |
Modifier and Type | Method and Description |
---|---|
static void |
addGraph(RMEditor anEditor,
java.lang.String aKeyPath)
Adds a new graph instance to the given editor with the given dataset key.
|
static void |
addGraph(RMEditor anEditor,
java.lang.String aKeyPath,
RMPoint anchor,
RMSize size) |
static RMGraph |
createSampleGraph()
Creates a new sample graph instance.
|
protected javax.swing.JComponent |
createUI()
Override to add inspectors to tabbed pane.
|
boolean |
getAcceptsChildren(RMShape aShape)
Overridden to make graph accept children.
|
RMGrouping |
getGrouping()
Returns the graph's grouping.
|
RMGraph |
getSelectedGraph()
Returns the selected graph.
|
java.lang.Class |
getShapeClass()
Returns the class this tool edits.
|
java.lang.String |
getWindowTitle()
Returns the name of the graph inspector.
|
protected void |
initUI()
Initializes UI panel.
|
boolean |
isSuperSelectable(RMShape aShape)
Overridden to make graph super-selectable.
|
boolean |
isUngroupable(RMShape aShape)
Overridden to make graph not ungroupable.
|
void |
mouseDragged(T aGraphArea,
java.awt.event.MouseEvent anEvent)
Event handler for editing.
|
void |
mousePressed(T aGraph,
java.awt.event.MouseEvent anEvent)
Handle MousePressed.
|
void |
mouseReleased(T aGraph,
java.awt.event.MouseEvent anEvent)
Handle MouseReleased.
|
protected void |
resetUI()
Reset Swing UI panel from currently selected graph.
|
void |
respondUI(SwingEvent anEvent)
Update currently selected graph from Swing UI panel.
|
acceptsDrag, activateTool, attachEventBus, deactivateTool, didBecomeSuperSelectedShapeInEditor, dragEnter, dragExit, dragOver, drop, dropClass, dropColor, dropDragKey, dropFiles, dropString, flavorForClass, flushChanges, getBoundsSuperSelected, getDatasetEntity, getDragDisplayBounds, getEditor, getEditorPane, getFont, getFontDeep, getGalleryClone, getHandleAtPoint, getHandleCount, getHandleCursor, getHandleOpposing, getHandlePoint, getHandleRect, getIcon, getIcon, getPointsFromUnits, getSelectedShape, getSelectedShapes, getSelectTool, getShapeFillInspector, getShapeHandleAtPoint, getTool, getTool, getToolTipText, getUnitsFromPoints, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, newInstance, paintShapeHandles, paintTool, processKeyEvent, reactivateTool, setFont, setFontBold, setFontBoldDeep, setFontFamily, setFontFamilyDeep, setFontItalic, setFontItalicDeep, setFontName, setFontNameDeep, setFontSize, setFontSizeDeep, willLoseSuperSelectionInEditor
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectedShape
protected javax.swing.JComponent createUI()
protected void initUI()
initUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected void resetUI()
resetUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void respondUI(SwingEvent anEvent)
respondUI
in interface RMSortPanel.Owner
respondUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public RMGraph getSelectedGraph()
public RMGrouping getGrouping()
getGrouping
in interface RMSortPanel.Owner
public java.lang.Class getShapeClass()
getShapeClass
in class RMTool<T extends RMGraph>
public java.lang.String getWindowTitle()
getWindowTitle
in class RMTool<T extends RMGraph>
public boolean isSuperSelectable(RMShape aShape)
isSuperSelectable
in class RMTool<T extends RMGraph>
public boolean getAcceptsChildren(RMShape aShape)
getAcceptsChildren
in class RMTool<T extends RMGraph>
public boolean isUngroupable(RMShape aShape)
isUngroupable
in class RMTool<T extends RMGraph>
public static void addGraph(RMEditor anEditor, java.lang.String aKeyPath)
public static void addGraph(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchor, RMSize size)
public static RMGraph createSampleGraph()
public void mousePressed(T aGraph, java.awt.event.MouseEvent anEvent)
mousePressed
in class RMTool<T extends RMGraph>
public void mouseDragged(T aGraphArea, java.awt.event.MouseEvent anEvent)
mouseDragged
in class RMTool<T extends RMGraph>
public void mouseReleased(T aGraph, java.awt.event.MouseEvent anEvent)
mouseReleased
in class RMTool<T extends RMGraph>