Top Fields Constructors Methods
com.vladsch.flexmark.util.html.ui

public Class ColorStyler

extends HtmlStylerBase<Color>
Class Inheritance
Annotations
@SuppressWarnings:WeakerAccess
Imports
com.vladsch.flexmark.util.sequence.SequenceUtils, java.awt.Color, java.util.HashMap, .Locale

Field Summary

Modifier and TypeField and Description
public static final HashMap<Integer, String>
public static final HashMap<String, Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
addColorName(int rgb, String name)

public static String
public static String
public static String
public static Color
getNamedColor(String colorName)

public String
pack-priv static int
parse(String color)

Inherited from com.vladsch.flexmark.util.html.ui.HtmlStylerBase:
getStyleable

Field Detail

colorNameMapback to summary
public static final HashMap<Integer, String> colorNameMap
nameColorMapback to summary
public static final HashMap<String, Integer> nameColorMap

Constructor Detail

ColorStylerback to summary
public ColorStyler()

Method Detail

addColorNameback to summary
private static void addColorName(int rgb, String name)
getColorNameback to summary
public static String getColorName(Color item)
getColorNameOrRGBback to summary
public static String getColorNameOrRGB(Color item)
Annotations
@SuppressWarnings:WeakerAccess
getColorValueback to summary
public static String getColorValue(Color item)
getNamedColorback to summary
public static Color getNamedColor(String colorName)
getStyleback to summary
public String getStyle(Color item)

Implements abstract com.vladsch.flexmark.util.html.ui.HtmlStylerBase.getStyle.

Implements com.vladsch.flexmark.util.html.ui.HtmlStyler.getStyle.

Annotations
@Override
parseback to summary
pack-priv static int parse(String color)