Package cnuphys.lund
Class X11Colors
java.lang.Object
cnuphys.lund.X11Colors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetX11Color(String name) Gets the named color from the X11 color list.static ColorgetX11Color(String name, int alpha) Gets an X11 color and sets the alpha
-
Constructor Details
-
X11Colors
public X11Colors()
-
-
Method Details
-
getX11Color
Gets an X11 color and sets the alpha- Parameters:
name- the name of the coloralpha- [0..255] (255 is opaque)- Returns:
- the corresponding x11 color (not from cache)
-
getX11Color
Gets the named color from the X11 color list.- Parameters:
name- the name of the X11 color.- Returns:
- the named color from the X11 color list, or
null.
-