public abstract class GConnectorSkin extends GSkin
GConnector. Responsible for visualizing connectors in the graph editor.
A custom connector skin must extend this class. It must also provide a constructor taking exactly one
GConnector parameter.
The root JavaFX node must be created by the skin implementation and returned in the GSkin.getRoot() method.
selectedProperty| Constructor and Description |
|---|
GConnectorSkin(de.tesis.dynaware.grapheditor.model.GConnector connector)
Creates a new
GConnectorSkin. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyStyle(GConnectorStyle style)
Applys the specified style to the connector.
|
de.tesis.dynaware.grapheditor.model.GConnector |
getConnector()
Gets the connector model element represented by the skin.
|
abstract double |
getHeight()
Gets the height of the connector skin.
|
abstract double |
getWidth()
Gets the width of the connector skin.
|
dispose, getGraphEditor, getRoot, isSelected, selectedProperty, setGraphEditor, setSelectedpublic GConnectorSkin(de.tesis.dynaware.grapheditor.model.GConnector connector)
GConnectorSkin.connector - the GConnector represented by the skinpublic de.tesis.dynaware.grapheditor.model.GConnector getConnector()
GConnector represented by the skinpublic abstract double getWidth()
public abstract double getHeight()
public abstract void applyStyle(GConnectorStyle style)
This is called by the library during various mouse events. For example when a connector is dragged over another connector in an attempt to create a new connection.
style - the GConnectorStyle to applyCopyright © 2015 TESIS DYNAware. All Rights Reserved.