org.gnu.gtk
public class ColorButton extends Button
| Constructor Summary | |
|---|---|
| ColorButton()
Create a new ColorButton. | |
| ColorButton(Color color)
Create a new ColorButton initialized with the provided color.
| |
| ColorButton(Handle handle)
For internal use by Java-Gnome only. | |
| Method Summary | |
|---|---|
| void | addListener(ColorButtonListener listener)
Register an object to handle dialog events.
|
| int | getAlpha()
Returns the current alpha value. |
| Color | getColor()
Returns the current color value. |
| static ColorButton | getColorButton(Handle handle)
For internal use by Java-Gnome only. |
| Class | getEventListenerClass(String signal) |
| EventType | getEventType(String signal) |
| String | getTitle()
Returns the title from the ColorSelectionDialog. |
| boolean | getUseAlpha()
Returns whether or not the ColorButton is using the alpha channel. |
| void | removeListener(ColorButtonListener listener)
Removes a listener
|
| void | setAlpha(int alpha)
Sets the current opacity to be alpha
|
| void | setColor(Color color)
Set the current color for the widget.
|
| void | setTitle(String title)
Sets the color for the ColorSelectionDialog.
|
| void | setUseAlpha(boolean useAlpha)
Sets whether or not the ColorButton should use the alpha channel.
|
Parameters: color A Color to set the current color with.
See Also: ColorButtonListener
See Also: addListener
Parameters: alpha
Parameters: color
Parameters: title
Parameters: useAlpha