|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tigris.gef.util.ColorFactory
A flyweight factory class used to get color instances. This only creates new instances of a Color if required. Previous instances are cached.
| Method Summary | |
static java.awt.Color |
getColor(java.lang.String colorDescr)
A flyweight factory method for reusing the same Color value multiple times. |
static java.awt.Color |
getColor(java.lang.String colorDescr,
java.awt.Color defaultColor)
A flyweight factory method for reusing the same Color value multiple times. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.awt.Color getColor(java.lang.String colorDescr,
java.awt.Color defaultColor)
colorDescr - A string of RGB values seperated by space
or a color name recognised by PGML (later to include SVG)defaultColor - a color to return if the color description can't be
interpretted.
public static java.awt.Color getColor(java.lang.String colorDescr)
colorDescr - A string of RGB values seperated by space
or a color name recognised by PGML (later to include SVG)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||