public class DefaultSkinController extends java.lang.Object implements SkinController
| Modifier and Type | Field and Description |
|---|---|
protected de.tesis.dynaware.grapheditor.GraphEditor |
graphEditor |
protected de.tesis.dynaware.grapheditor.GraphEditorContainer |
graphEditorContainer |
protected static int |
NODE_INITIAL_X |
protected static int |
NODE_INITIAL_Y |
| Constructor and Description |
|---|
DefaultSkinController(de.tesis.dynaware.grapheditor.GraphEditor graphEditor,
de.tesis.dynaware.grapheditor.GraphEditorContainer graphEditorContainer)
Creates a new
DefaultSkinController instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(javafx.geometry.Side position,
boolean input)
Adds a connector of the given type to all nodes that are currently selected.
|
void |
addNode(double currentZoomFactor)
Adds a node to the graph.
|
void |
clearConnectors()
Clears all connectors from all selected nodes.
|
void |
handlePaste()
Handles the paste operation.
|
void |
handleSelectAll()
Handles the select-all operation.
|
protected static final int NODE_INITIAL_X
protected static final int NODE_INITIAL_Y
protected final de.tesis.dynaware.grapheditor.GraphEditor graphEditor
protected final de.tesis.dynaware.grapheditor.GraphEditorContainer graphEditorContainer
public DefaultSkinController(de.tesis.dynaware.grapheditor.GraphEditor graphEditor,
de.tesis.dynaware.grapheditor.GraphEditorContainer graphEditorContainer)
DefaultSkinController instance.graphEditor - the graph editor on display in this demographEditorContainer - the graph editor container on display in this demopublic void addNode(double currentZoomFactor)
SkinControlleraddNode in interface SkinControllercurrentZoomFactor - the current zoom factor (1 for 100%)public void addConnector(javafx.geometry.Side position,
boolean input)
addConnector in interface SkinControllerposition - the position of the new connectorinput - true for input, false for outputpublic void clearConnectors()
SkinControllerclearConnectors in interface SkinControllerpublic void handlePaste()
SkinControllerhandlePaste in interface SkinControllerpublic void handleSelectAll()
SkinControllerhandleSelectAll in interface SkinControllerCopyright © 2015 TESIS DYNAware. All Rights Reserved.