Class ColorManager

java.lang.Object
org.graphstream.ui.swing.util.ColorManager

public class ColorManager extends Object
Static class used for translate awt color to javafx
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Color
    getCanvasColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
    Get canvas awt color in styleGroup and convert to javafx Color
    static Color
    getColor(org.graphstream.ui.graphicGraph.stylesheet.Color gscoreColor)
    Convert java.awt.Color to javafx.scene.paint.Color
    static Color
    getFillColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
    Get fill awt color in styleGroup and convert to javafx Color
    static Color
    getFillColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
    Get fill awt color in group and convert to javafx Color
    static Color
    getShadowColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
    Get shadow awt color in styleGroup and convert to javafx Color
    static Color
    getShadowColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
    Get shadow awt color in group and convert to javafx Color
    static Color
    getStrokeColor(org.graphstream.ui.graphicGraph.StyleGroup group, int id)
    Get stroke awt color in styleGroup and convert to javafx Color
    static Color
    getStrokeColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
    Get stroke awt color in group and convert to javafx Color
    static Color
    getTextBackgroundColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
    Get text background awt color in group and convert to javafx Color
    static Color
    getTextColor(org.graphstream.ui.graphicGraph.stylesheet.Style group, int id)
    Get text awt color in group and convert to javafx Color

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ColorManager

      public ColorManager()
  • Method Details

    • getFillColor

      public static 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 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 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 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 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 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 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 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 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 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