public abstract class WithIconGraphController extends BasicGraphController
Modifier and Type | Class and Description |
---|---|
class |
WithIconGraphController.NewPortAction
An action to create a new port.
|
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction
Modifier and Type | Field and Description |
---|---|
protected static EditIconAction |
_editIconAction
The edit custom icon action.
|
protected NamedObjController |
_portController
The port controller.
|
protected static RemoveIconAction |
_removeIconAction
The remove custom icon action.
|
_animated, _animationRenderer, _configureAction, _configureMenuFactory, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction
Constructor and Description |
---|
WithIconGraphController()
Create a new controller.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_createControllers()
Create the controllers for nodes in this graph.
|
static double[] |
getNewPortLocation(GraphPane pane,
BasicGraphFrame frame,
IOPort _prototype)
Get a location for a port that hasn't got a location yet.
|
protected void |
initializeInteraction()
Initialize all interaction on the graph pane.
|
void |
setConfiguration(Configuration configuration)
Set the configuration.
|
_addHotKeys, _areThereActiveErrorHighlights, _getClearAllErrorHighlightsChangeRequest, _initializeInteraction, addToMenuAndToolbar, clearAllErrorHighlights, clearAnimation, event, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, getNodeController, highlightError, message, setAnimationDelay, setFigure, setFrame, valueChanged
addEdge, addEdge, addGraphViewListener, addNode, addNode, addNode, addNode, clear, clearEdge, clearNode, dispatch, drawEdge, drawNode, drawNode, getEdgeController, getFigure, getGraphModel, getGraphPane, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setGraphModel, setGraphPane, setSelectionModel
protected static final EditIconAction _editIconAction
protected NamedObjController _portController
protected static final RemoveIconAction _removeIconAction
public WithIconGraphController()
public static double[] getNewPortLocation(GraphPane pane, BasicGraphFrame frame, IOPort _prototype)
pane
- The GraphPane.frame
- The BasicGraphFrame._prototype
- The port.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