Class DotColorUtil
- java.lang.Object
-
- org.eclipse.gef.dot.internal.ui.conversion.DotColorUtil
-
public class DotColorUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DotColorUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.paint.ColorcomputeGraphBackgroundColor(java.lang.String colorScheme, org.eclipse.gef.dot.internal.language.color.Color dotColor)java.lang.StringcomputeZestColor(java.lang.String colorScheme, org.eclipse.gef.dot.internal.language.color.Color dotColor)Returns the javafx representation of a dot color.DotColorInfogetColorInfo(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)java.util.List<DotColorInfo>getColorInfos(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)Colorhex2Rgb(java.lang.String colorStr)org.eclipse.gef.dot.internal.language.color.ColorparseColorAttributeValue(java.lang.String colorAttributeValue)Creates aColorobject of a color attribute value.java.util.List<org.eclipse.gef.dot.internal.language.color.Color>parseColorListAttributeValue(java.lang.String colorListAttributeValue)Creates a list ofColorobjects of a color list attribute value.
-
-
-
Method Detail
-
computeZestColor
public java.lang.String computeZestColor(java.lang.String colorScheme, org.eclipse.gef.dot.internal.language.color.Color dotColor)Returns the javafx representation of a dot color.- Parameters:
colorScheme- The colorscheme attribute value (or null if not defined)dotColor- The color in dot representation.- Returns:
- The color in javafx representation, or null if the javafx color representation cannot be determined.
-
computeGraphBackgroundColor
public javafx.scene.paint.Color computeGraphBackgroundColor(java.lang.String colorScheme, org.eclipse.gef.dot.internal.language.color.Color dotColor)
-
parseColorAttributeValue
public org.eclipse.gef.dot.internal.language.color.Color parseColorAttributeValue(java.lang.String colorAttributeValue)
Creates aColorobject of a color attribute value.- Parameters:
colorAttributeValue- The string attribute value.- Returns:
- The corresponding
Colorobject.
-
parseColorListAttributeValue
public java.util.List<org.eclipse.gef.dot.internal.language.color.Color> parseColorListAttributeValue(java.lang.String colorListAttributeValue)
Creates a list ofColorobjects of a color list attribute value.- Parameters:
colorListAttributeValue- The string attribute value.- Returns:
- List of the corresponding
Colorobjects.
-
getColorInfo
public DotColorInfo getColorInfo(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)
-
getColorInfos
public java.util.List<DotColorInfo> getColorInfos(org.eclipse.gef.dot.internal.language.dot.Attribute attribute)
-
hex2Rgb
public Color hex2Rgb(java.lang.String colorStr)
-
-