public class OntologyGraphController extends WithIconGraphController
WithIconGraphController.NewPortAction
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction
Modifier and Type | Field and Description |
---|---|
protected AttributeInOntologyController |
_attributeController
The controller for attribute objects in the model.
|
protected ConceptController |
_conceptController
The controller for concepts in the ontology model.
|
protected ConceptRelationController |
_relationController
The controller for relations in the ontology model.
|
_editIconAction, _portController, _removeIconAction
_animated, _animationRenderer, _configureAction, _configureMenuFactory, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction
Constructor and Description |
---|
OntologyGraphController()
Create a new ontology graph controller object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.
|
protected void |
_createControllers()
Initialize all the controller objects for elements in the ontology
editor.
|
protected void |
_initializeInteraction(NamedObjController controller)
Initialize interactions for the specified controller.
|
void |
addToMenuAndToolbar(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar)
Add commands to the specified menu and toolbar, as appropriate
for this controller.
|
EdgeController |
getEdgeController(java.lang.Object object)
Return the edge controller appropriate for the given edge.
|
NodeController |
getNodeController(java.lang.Object object)
Return the node controller appropriate for the given node object.
|
protected void |
initializeInteraction()
Initialize interaction on the graph pane.
|
void |
setConfiguration(Configuration configuration)
Set the configuration.
|
getNewPortLocation
_areThereActiveErrorHighlights, _getClearAllErrorHighlightsChangeRequest, clearAllErrorHighlights, clearAnimation, event, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, highlightError, message, setAnimationDelay, setFigure, setFrame, valueChanged
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
protected AttributeInOntologyController _attributeController
protected ConceptController _conceptController
protected ConceptRelationController _relationController
public OntologyGraphController()
public void addToMenuAndToolbar(javax.swing.JMenu menu, javax.swing.JToolBar toolbar)
addToMenuAndToolbar
in class BasicGraphController
menu
- The menu to add to, or null if none.toolbar
- The toolbar to add to, or null if none.public EdgeController getEdgeController(java.lang.Object object)
getEdgeController
in interface GraphController
getEdgeController
in class AbstractGraphController
object
- The given edge in the ontology model editor.public NodeController getNodeController(java.lang.Object object)
getNodeController
in interface GraphController
getNodeController
in class BasicGraphController
object
- The given node in the ontology model editor.public void setConfiguration(Configuration configuration)
setConfiguration
in class WithIconGraphController
configuration
- The configuration.BasicGraphController.getConfiguration()
protected void _addHotKeys(JGraph jgraph)
_addHotKeys
in class BasicGraphController
jgraph
- The JGraph to which hot keys are to be added.protected void _createControllers()
_createControllers
in class WithIconGraphController
protected void initializeInteraction()
initializeInteraction
in class WithIconGraphController
protected void _initializeInteraction(NamedObjController controller)
_initializeInteraction
in class BasicGraphController
controller
- The controller for which to initialize interaction.