Class ColorMapper
java.lang.Object
org.apache.tools.ant.types.optional.image.ColorMapper
- See Also:
Image
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
black stringstatic String
blue stringstatic String
cyan stringstatic String
black stringstatic String
darkgrey stringstatic String
gray stringstatic String
green stringstatic String
grey stringstatic String
lightgray stringstatic String
lightgrey stringstatic String
magenta stringstatic String
orange stringstatic String
pink stringstatic String
reg stringstatic String
white stringstatic String
yellow string -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
getColorByName(String colorName)
Convert a color name to a color value.
-
Field Details
-
COLOR_BLACK
black string- See Also:
- Constant Field Values
-
COLOR_BLUE
blue string- See Also:
- Constant Field Values
-
COLOR_CYAN
cyan string- See Also:
- Constant Field Values
-
COLOR_DARKGRAY
black string- See Also:
- Constant Field Values
-
COLOR_GRAY
gray string- See Also:
- Constant Field Values
-
COLOR_LIGHTGRAY
lightgray string- See Also:
- Constant Field Values
-
COLOR_DARKGREY
darkgrey string- See Also:
- Constant Field Values
-
COLOR_GREY
grey string- See Also:
- Constant Field Values
-
COLOR_LIGHTGREY
lightgrey string- See Also:
- Constant Field Values
-
COLOR_GREEN
green string- See Also:
- Constant Field Values
-
COLOR_MAGENTA
magenta string- See Also:
- Constant Field Values
-
COLOR_ORANGE
orange string- See Also:
- Constant Field Values
-
COLOR_PINK
pink string- See Also:
- Constant Field Values
-
COLOR_RED
reg string- See Also:
- Constant Field Values
-
COLOR_WHITE
white string- See Also:
- Constant Field Values
-
COLOR_YELLOW
yellow string- See Also:
- Constant Field Values
-
-
Method Details
-
getColorByName
Convert a color name to a color value.- Parameters:
colorName
- a string repr of the color.- Returns:
- the color value.
- To do:
- refactor to use an EnumeratedAttribute (maybe?)
-