Package cnuphys.lund
Class X11Colors
java.lang.Object
cnuphys.lund.X11Colors
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
X11Colorspublic X11Colors()
 
- 
- 
Method Details- 
getX11ColorGets an X11 color and sets the alpha- Parameters:
- name- the name of the color
- alpha- [0..255] (255 is opaque)
- Returns:
- the corresponding x11 color (not from cache)
 
- 
getX11ColorGets 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.
 
 
-