public abstract class GJointSkin extends GSkin
GJoint. Responsible for visualizing joints in the graph editor.
A custom joint skin must extend this class. It must also provide a constructor taking exactly one
GJoint parameter.
The root JavaFX node of this skin is a DraggableBox.
selectedProperty| Constructor and Description |
|---|
GJointSkin(de.tesis.dynaware.grapheditor.model.GJoint joint)
Creates a new
GJointSkin. |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getHeight()
Gets the height of the joint.
|
de.tesis.dynaware.grapheditor.model.GJoint |
getJoint()
Gets the joint model element represented by the skin.
|
DraggableBox |
getRoot()
Gets the root JavaFX node of the skin.
|
abstract double |
getWidth()
Gets the width of the joint.
|
void |
initialize()
Initializes the joint skin.
|
dispose, getGraphEditor, isSelected, selectedProperty, setGraphEditor, setSelectedpublic GJointSkin(de.tesis.dynaware.grapheditor.model.GJoint joint)
GJointSkin.joint - the GJoint represented by the skinpublic de.tesis.dynaware.grapheditor.model.GJoint getJoint()
GJoint represented by the skinpublic DraggableBox getRoot()
getRoot in class GSkinDraggableBox containing the skin's root JavaFX nodepublic void initialize()
The skin's layout values are loaded from the GJoint at this point.
public abstract double getWidth()
For robust behaviour this should return the correct width at all times. Note that getRoot().getWidth() does not meet this condition as it will return 0 until the joint's node is added to the scene graph and layed out.
public abstract double getHeight()
For robust behaviour this should return the correct height at all times. Note that getRoot().getHeight() does not meet this condition as it will return 0 until the joint's node is added to the scene graph and layed out.
Copyright © 2015 TESIS DYNAware. All Rights Reserved.