Package org.graphstream.ui.javafx.util
Class ColorManager
java.lang.Object
org.graphstream.ui.javafx.util.ColorManager
public class ColorManager extends Object
Static class used for translate awt color to javafx
-
Constructor Summary
Constructors Constructor Description ColorManager()
-
Method Summary
Modifier and Type Method Description static javafx.scene.paint.Color
getCanvasColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
Get canvas awt color in styleGroup and convert to javafx Colorstatic javafx.scene.paint.Color
getColor(org.graphstream.ui.graphicGraph.stylesheet.Color gscoreColor)
Convert java.awt.Color to javafx.scene.paint.Colorstatic javafx.scene.paint.Color
getFillColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
Get fill awt color in styleGroup and convert to javafx Colorstatic javafx.scene.paint.Color
getFillColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
Get fill awt color in group and convert to javafx Colorstatic javafx.scene.paint.Color
getShadowColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
Get shadow awt color in styleGroup and convert to javafx Colorstatic javafx.scene.paint.Color
getShadowColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
Get shadow awt color in group and convert to javafx Colorstatic javafx.scene.paint.Color
getStrokeColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
Get stroke awt color in styleGroup and convert to javafx Colorstatic javafx.scene.paint.Color
getStrokeColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
Get stroke awt color in group and convert to javafx Colorstatic javafx.scene.paint.Color
getTextBackgroundColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
Get text background awt color in group and convert to javafx Colorstatic javafx.scene.paint.Color
getTextColor(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
public static javafx.scene.paint.Color getFillColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)Get fill awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup
-id
-- Returns:
- javafx.scene.paint.Color
-
getFillColor
public static javafx.scene.paint.Color getFillColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)Get fill awt color in group and convert to javafx Color- Parameters:
style
-id
-- Returns:
- javafx.scene.paint.Color
-
getStrokeColor
public static javafx.scene.paint.Color getStrokeColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)Get stroke awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup
-id
-- Returns:
- javafx.scene.paint.Color
-
getStrokeColor
public static javafx.scene.paint.Color getStrokeColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)Get stroke awt color in group and convert to javafx Color- Parameters:
style
-id
-- Returns:
- javafx.scene.paint.Color
-
getCanvasColor
public static javafx.scene.paint.Color getCanvasColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)Get canvas awt color in styleGroup and convert to javafx Color- Parameters:
stylegroup
-id
-- Returns:
- javafx.scene.paint.Color
-
getShadowColor
public static javafx.scene.paint.Color getShadowColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)Get shadow awt color in styleGroup and convert to javafx Color- Parameters:
styleGroup
-id
-- Returns:
- javafx.scene.paint.Color
-
getShadowColor
public static javafx.scene.paint.Color getShadowColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)Get shadow awt color in group and convert to javafx Color- Parameters:
style
-id
-- Returns:
- javafx.scene.paint.Color
-
getTextColor
public static javafx.scene.paint.Color getTextColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)Get text awt color in group and convert to javafx Color- Parameters:
style
-id
-- Returns:
- javafx.scene.paint.Color
-
getTextBackgroundColor
public static javafx.scene.paint.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
public static javafx.scene.paint.Color getColor(org.graphstream.ui.graphicGraph.stylesheet.Color gscoreColor)Convert java.awt.Color to javafx.scene.paint.Color- Parameters:
java
- .awt.Color- Returns:
- javafx.scene.paint.Color
-