java.lang.Object
eu.hansolo.fx.charts.forcedirectedgraph.NodeEdgeModel
authors: Michael Läuchli, MLaeuchli (github)
Stefan Mettler, orizion (github)
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanProperty -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColorTheme(List<javafx.scene.paint.Color> theme, String key) javafx.beans.property.BooleanPropertygetDistinctValuesPerGroupKey(String groupKey) getEdges()javafx.scene.paint.ColorgetGroupValueColor(String value, String key) getNodeAt(double X, double Y, double scaleFactor, double minRadius, double nodeSizeFactor) Iterats trough nodes and returns the first Node Found in that areajavafx.scene.paint.ColorGets the value of the property nodeBorderColor.getNodes()Get or create the colorscheme for the current groupCreates or returns (if it already exists) the color scheme for the given grouping keyReturns a list of Strings representing all the attributes of a nodevoidvoidinstantiateColorScheme(String colorThemeKey) booleanGets the value of the property alwaysNormalize.booleanjavafx.beans.property.BooleanPropertybooleanGets the value of the property neverNormalize.booleanGets the value of the property normalizeIfNotBetweenZeroAndOne.javafx.beans.property.BooleanPropertyjavafx.beans.property.ObjectProperty<javafx.scene.paint.Color>javafx.beans.property.BooleanPropertyvoidvoidsetAlwaysNormalize(boolean alwaysNormalize) Sets the value of the property alwaysNormalize.voidsetCurrentColorThemeKey(String currentColorThemeKey) voidvoidvoidsetEdgeForceKey(String key) voidvoidvoidsetEdgeWithKey(String key) voidSets the group Key and colors on all nodes to the current group key, in the colors of the group's associated color.voidsetGroupColors(String group) Sets the group Key and colors on all nodes, in the colors of the group's associated color.voidsetGroupColorScheme(String groupKey, HashMap<String, javafx.scene.paint.Color> colorscheme) The key "default" is used for nodes not matching any other entries in the schemevoidsetGroupValueColor(String value, String key, javafx.scene.paint.Color color) voidsetModified(boolean modified) voidsetNeverNormalize(boolean neverNormalize) Sets the value of the property neverNormalize.voidsetNodeBorderColor(javafx.scene.paint.Color COLOR) Sets the value of the property nodeBorderColor.voidvoidsetNodeSizeKey(String key) Sets the attribute associated with the keykeyas the value of all nodes.voidsetNormalizeIfNotBetweenZeroAndOne(boolean normalizeIfNotBetweenZeroAndOne) Sets the value of the property normalizeIfNotBetweenZeroAndOne.void
-
Property Details
-
alwaysNormalize
public javafx.beans.property.BooleanProperty alwaysNormalizeProperty -
neverNormalize
public javafx.beans.property.BooleanProperty neverNormalizeProperty- See Also:
-
normalizeIfNotBetweenZeroAndOne
public javafx.beans.property.BooleanProperty normalizeIfNotBetweenZeroAndOneProperty -
nodeBorderColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> nodeBorderColorProperty
-
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
NodeEdgeModel
-
NodeEdgeModel
public NodeEdgeModel()
-
-
Method Details
-
setGroupColors
Sets the group Key and colors on all nodes, in the colors of the group's associated color. The currentColorscheme will be created if it doesnt exist already- Parameters:
group-
-
setGroupColors
public void setGroupColors()Sets the group Key and colors on all nodes to the current group key, in the colors of the group's associated color. The currentColorscheme will be created if it doesnt exist already -
setGroupColorScheme
public void setGroupColorScheme(String groupKey, HashMap<String, javafx.scene.paint.Color> colorscheme) The key "default" is used for nodes not matching any other entries in the scheme- Parameters:
colorscheme-
-
getOrCreateGroupColorScheme
Creates or returns (if it already exists) the color scheme for the given grouping key- Parameters:
group-- Returns:
-
getOrCreateGroupColorScheme
Get or create the colorscheme for the current group- Returns:
-
getDistinctValuesPerGroupKey
-
getDistinctValuesPerGroupKey
-
getGroupValueColor
-
setGroupValueColor
-
addColorTheme
-
instantiateColorScheme
-
instantiateColorScheme
public void instantiateColorScheme() -
setCurrentColorThemeKey
-
getCurrentColorThemeKey
-
getColorThemeKeys
-
isAlwaysNormalize
public boolean isAlwaysNormalize()Gets the value of the property alwaysNormalize.- Property description:
-
alwaysNormalizeProperty
public javafx.beans.property.BooleanProperty alwaysNormalizeProperty() -
setAlwaysNormalize
public void setAlwaysNormalize(boolean alwaysNormalize) Sets the value of the property alwaysNormalize.- Property description:
-
isNeverNormalize
public boolean isNeverNormalize()Gets the value of the property neverNormalize.- Property description:
-
neverNormalizeProperty
public javafx.beans.property.BooleanProperty neverNormalizeProperty()- See Also:
-
setNeverNormalize
public void setNeverNormalize(boolean neverNormalize) Sets the value of the property neverNormalize.- Property description:
-
isNormalizeIfNotBetweenZeroAndOne
public boolean isNormalizeIfNotBetweenZeroAndOne()Gets the value of the property normalizeIfNotBetweenZeroAndOne.- Property description:
-
normalizeIfNotBetweenZeroAndOneProperty
public javafx.beans.property.BooleanProperty normalizeIfNotBetweenZeroAndOneProperty() -
setNormalizeIfNotBetweenZeroAndOne
public void setNormalizeIfNotBetweenZeroAndOne(boolean normalizeIfNotBetweenZeroAndOne) Sets the value of the property normalizeIfNotBetweenZeroAndOne.- Property description:
-
setNodeSizeKey
Sets the attribute associated with the keykeyas the value of all nodes. This means effectively that now the Value of the attribute is used for the radius calculation of the node- Parameters:
key-
-
setNodeSizeFromAttributeNotNormalized
-
setEdgeForceFromAttributeNormalized
-
setEdgeWidthFromAttributeNormalized
-
setEdgeForceFromAttributeNotNormalized
-
setEdgeWithFromAttributeNotNormalized
-
printPositionsOnConsole
public void printPositionsOnConsole() -
getNumericAttributeKeysOfNodes
-
getStringAttributeKeysOfNodes
Returns a list of Strings representing all the attributes of a node- Returns:
-
getNumericAttributeKeysOfEdges
-
setupConnectedNotes
public void setupConnectedNotes() -
getNodeAt
public GraphNode getNodeAt(double X, double Y, double scaleFactor, double minRadius, double nodeSizeFactor) Iterats trough nodes and returns the first Node Found in that area- Parameters:
X- XPosition of click translated to Real Position (see xPositionDrawnToReal in Graphpanel)Y- YPosition of click translated to Real Position (see yPositionDrawnToReal in Graphpanel)scaleFactor- Factor that scales the drawn size of the NodeminRadius- Minimal Radius tha drawn Node has- Returns:
- First node found or null
-
getNodes
-
getEdges
-
getCurrentSizeKey
-
getCurrentGroupKey
-
getCurrentForceKey
-
getCurrentEdgeWithKey
-
getNodeBorderColor
public javafx.scene.paint.Color getNodeBorderColor()Gets the value of the property nodeBorderColor.- Property description:
-
setNodeBorderColor
public void setNodeBorderColor(javafx.scene.paint.Color COLOR) Sets the value of the property nodeBorderColor.- Property description:
-
nodeBorderColorProperty
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> nodeBorderColorProperty() -
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
isModifiedProperty
public javafx.beans.property.BooleanProperty isModifiedProperty() -
setEdgeWithKey
-
setEdgeForceKey
-