Class ColorManager

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

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

    Constructors 
    Constructor Description
    ColorManager()  
  • Method Summary

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

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

  • Method Details

    • getFillColor

      public static java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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 java.awt.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