org.gnu.gtk
public class ColorButton extends Button
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.ColorButton
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
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.
|
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a new ColorButton.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a new ColorButton initialized with the provided color.Parameters: color A Color to set the current color with.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
For internal use by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle dialog events.See Also: ColorButtonListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the current alpha value.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the current color value.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
For internal use by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the title from the ColorSelectionDialog.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns whether or not the ColorButton is using the alpha channel.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the current opacity to be alphaParameters: alpha
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set the current color for the widget.Parameters: color
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the color for the ColorSelectionDialog.Parameters: title
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets whether or not the ColorButton should use the alpha channel.Parameters: useAlpha