|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.AbstractGraphController
ptolemy.vergil.basic.BasicGraphController
ptolemy.vergil.icon.EditIconGraphController
public class EditIconGraphController
A graph controller for the Ptolemy II icon editor. This controller contains a set of default node controllers for attributes, which are the only objects that an icon editor can contain. The default controller can be overridden by attributes of type NodeControllerFactory. The getNodeController() method always returns an attribute controller.
Red (johnr) |
Yellow (eal) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.vergil.basic.BasicGraphController |
---|
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction |
Field Summary | |
---|---|
protected NamedObjController |
_attributeController
The attribute controller. |
private SelectionDragger |
_selectionDragger
|
private static double |
_SNAP_RESOLUTION
|
Fields inherited from class ptolemy.vergil.basic.BasicGraphController |
---|
_animated, _animationRenderer, _configureAction, _configureMenuFactory, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction |
Constructor Summary | |
---|---|
EditIconGraphController()
Create a new basic controller with default terminal and edge interactors and default context menus. |
Method Summary | |
---|---|
protected void |
_createControllers()
Create the controllers for nodes in this graph. |
void |
addToMenuAndToolbar(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar)
Add hot key for look inside. |
EdgeController |
getEdgeController(java.lang.Object edge)
Throw an exception. |
NodeController |
getNodeController(java.lang.Object object)
Return the node controller appropriate for the specified object. |
protected void |
initializeInteraction()
Initialize all interaction on the graph pane. |
void |
setConfiguration(Configuration configuration)
Set the configuration. |
Methods inherited from class ptolemy.vergil.basic.BasicGraphController |
---|
_addHotKeys, _initializeInteraction, clearAnimation, event, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, message, setAnimationDelay, setFigure, setFrame, valueChanged |
Methods inherited from class diva.graph.AbstractGraphController |
---|
addEdge, addEdge, addGraphViewListener, addNode, addNode, addNode, addNode, clear, clearEdge, clearNode, dispatch, drawEdge, drawNode, drawNode, getFigure, getGraphModel, getGraphPane, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setGraphModel, setGraphPane, setSelectionModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NamedObjController _attributeController
private SelectionDragger _selectionDragger
private static double _SNAP_RESOLUTION
Constructor Detail |
---|
public EditIconGraphController()
Method Detail |
---|
public void addToMenuAndToolbar(javax.swing.JMenu menu, javax.swing.JToolBar toolbar)
addToMenuAndToolbar
in class BasicGraphController
menu
- The menu to add to, which is ignored.toolbar
- The toolbar to add to, which is also ignored.public EdgeController getEdgeController(java.lang.Object edge)
getEdgeController
in interface GraphController
getEdgeController
in class AbstractGraphController
edge
- The edge object.
InternalErrorException
- If this is called.public NodeController getNodeController(java.lang.Object object)
getNodeController
in interface GraphController
getNodeController
in class BasicGraphController
object
- A Vertex, Locatable, or Port.
java.lang.RuntimeException
- If the specified object is not
a Locatable contained by an Attribute.public void setConfiguration(Configuration configuration)
setConfiguration
in class BasicGraphController
configuration
- The configuration.BasicGraphController.getConfiguration()
protected void _createControllers()
_createControllers
in class BasicGraphController
protected void initializeInteraction()
initializeInteraction
in class BasicGraphController
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |