Description: It integrates the fairly standard color chooser which allows specifying the color by using swatches, HSB or RGB tabs with an added alpha/transparency input.
Copyright: Copyright (c) 2011
NOTE: This JavaDoc file was post processed with Microsoft FrontPage and regenerating the file will cause the graphics and format changes to be lost.
Constructor Detail |
public ColorChooser(java.awt.Frame parent)
A color chooser that allows users to pick a color in three different manners. The color selection is provided by a JColorChooser pane.
The dialog Can be called with ColorChooser fc = new ColorChooser(this);
if a frame is avialable or it can be called with: ColorChooser fc = new ColorChooser(null);
if a frame is not available.
If a frame is provided, the dialog is centered over that frame. Otherwise, the dialog is positioned 20 pixels down and to the right of the upper left corner of the display screen.
This dialog is an adaptation of the font chooser presented in Java Swing by Robert Eckstein, Marc Loy & Dave Wood, O'Reilly, Sebastopol, CA 1998, ISBN 1-56592-455-X
parent
- The Frame from which the dialog was called.Method Detail |
public java.awt.Color getNewColor()
Note: The alpha values set by the user do not change the transparency of the text shown by the color chooser but are returned in the color object.
public java.lang.String toString()
Example: java.awt.Color[r=255,g=51,b=51]Alpha=179