Package org.graphstream.ui.swing.util
Class ColorManager
java.lang.Object
org.graphstream.ui.swing.util.ColorManager
Static class used for translate awt color to javafx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetCanvasColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id) Get canvas awt color in styleGroup and convert to javafx Colorstatic ColorgetColor(org.graphstream.ui.graphicGraph.stylesheet.Color gscoreColor) Convert java.awt.Color to javafx.scene.paint.Colorstatic ColorgetFillColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id) Get fill awt color in styleGroup and convert to javafx Colorstatic ColorgetFillColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get fill awt color in group and convert to javafx Colorstatic ColorgetShadowColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id) Get shadow awt color in styleGroup and convert to javafx Colorstatic ColorgetShadowColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get shadow awt color in group and convert to javafx Colorstatic ColorgetStrokeColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id) Get stroke awt color in styleGroup and convert to javafx Colorstatic ColorgetStrokeColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get stroke awt color in group and convert to javafx Colorstatic ColorgetTextBackgroundColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get text background awt color in group and convert to javafx Colorstatic ColorgetTextColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get text awt color in group and convert to javafx Color
-
Constructor Details
-
ColorManager
public ColorManager()
-
-
Method Details
-
getFillColor
Get fill awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup-id-- Returns:
- javafx.scene.paint.Color
-
getFillColor
Get fill awt color in group and convert to javafx Color- Parameters:
style-id-- Returns:
- javafx.scene.paint.Color
-
getStrokeColor
Get stroke awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup-id-- Returns:
- javafx.scene.paint.Color
-
getStrokeColor
Get stroke awt color in group and convert to javafx Color- Parameters:
style-id-- Returns:
- javafx.scene.paint.Color
-
getCanvasColor
Get canvas awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup-id-- Returns:
- javafx.scene.paint.Color
-
getShadowColor
Get shadow awt color in styleGroup and convert to javafx Color- Parameters:
styleGroup-id-- Returns:
- javafx.scene.paint.Color
-
getShadowColor
Get shadow awt color in group and convert to javafx Color- Parameters:
style-id-- Returns:
- javafx.scene.paint.Color
-
getTextColor
Get text awt color in group and convert to javafx Color- Parameters:
style-id-- Returns:
- javafx.scene.paint.Color
-
getTextBackgroundColor
public static Color getTextBackgroundColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id) Get text background awt color in group and convert to javafx Color- Parameters:
style-id-- Returns:
- javafx.scene.paint.Color
-
getColor
Convert java.awt.Color to javafx.scene.paint.Color- Parameters:
java- .awt.Color- Returns:
- javafx.scene.paint.Color
-