org.gnu.gnome
public class ColorPicker 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 have an equivalent
in java-gnome 4.0; have a look for
org.gnome.gnome.ColorPicker
.
See Also: org.gnu.gtk.ColorSelectionDialog
Constructor Summary | |
---|---|
ColorPicker()
Creates a new instance of ColorPicker | |
ColorPicker(Handle handle)
Construct a ColorPicker using a handle to a native resource. |
Method Summary | |
---|---|
void | addListener(ColorPickerListener listener)
Register an object to handle ColorPicker events.
|
int | getAlpha16Bit()
Get the alpha of the color as a 16 bit value between 0 and 65535.
|
int | getAlpha8Bit()
Get the alpha of the color as a 8 bit value between 0 and 255.
|
double | getAlphaDouble()
Get the alpha of the color as a double value between 0.0 and 1.0.
|
boolean | getAlphaEnabled()
Returns whether ColorPicker uses alpha.
|
int | getBlue16Bit()
Get the blue element of the color as a 16 bit value between 0 and 65535.
|
int | getBlue8Bit()
Get the blue element of the color as a 8 bit value between 0 and 255.
|
double | getBlueDouble()
Get the blue element of the color as a double value between 0.0 and 1.0.
|
boolean | getDitherEnabled()
Returns whether ColorPicker uses dither.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
int | getGreen16Bit()
Get the green element of the color as a double value between 0 and 65535.
|
int | getGreen8Bit()
Get the green element of the color as a double value between 0 and 255.
|
double | getGreenDouble()
Get the green element of the color as a double value between 0.0 and 1.0.
|
int | getRed16Bit()
Get the red element of the color as a double value between 0 and 65535.
|
int | getRed8Bit()
Get the red element of the color as a double value between 0 and 255.
|
double | getRedDouble()
Get the red element of the color as a double value between 0.0 and 1.0.
|
String | getTitle()
Gets the title of the color picker.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeListener(ColorPickerListener listener)
Removes a listener
|
void | setAlpha16Bit(int alpha)
Set the alpha of the color as a 16 bit value between 0 and 65535.
|
void | setAlpha8Bit(int alpha)
Set the alpha of the color as a 8 bit value between 0 and 255.
|
void | setAlphaDouble(double alpha)
Set the alpha of the color as a double value between 0.0 and 1.0.
|
void | setAlphaEnabled(boolean enable)
Sets whether ColorPicker is to use alpha.
|
void | setBlue16Bit(int color)
Set the blue element of the color as a 16 bit value between 0 and 65535.
|
void | setBlue8Bit(int color)
Set the blue element of the color as a 8 bit value between 0 and 255.
|
void | setBlueDouble(double color)
Set the blue element of the color as a double value between 0.0 and 1.0.
|
void | setColor16Bit(int alpha, int blue, int green, int red)
A shortcut method to set all the color values with one call. |
void | setColor8Bit(int alpha, int blue, int green, int red)
A shortcut method to set all the color values with one call. |
void | setColorDouble(double alpha, double blue, double green, double red)
A shortcut method to set all the color values with one call. |
void | setDitherEnabled(boolean enable)
Sets whether ColorPicker is to use dither.
|
void | setGreen16Bit(int color)
Set the green element of the color as a integer value between 0 and
65535.
|
void | setGreen8Bit(int color)
Set the green element of the color as a integer value between 0 and 255.
|
void | setGreenDouble(double color)
Set the green element of the color as a double value between 0.0 and 1.0.
|
void | setRed16Bit(int color)
Set the red element of the color as a integer value between 0 and 65535.
|
void | setRed8Bit(int color)
Set the red element of the color as a integer value between 0 and 255.
|
void | setRedDouble(double color)
Set the red element of the color as a double value between 0.0 and 1.0.
|
void | setTitle(String title)
Sets the title of the color picker.
|
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Creates a new instance of ColorPickerDeprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Construct a ColorPicker using a handle to a native resource.Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Register an object to handle ColorPicker events.See Also: ColorPickerListener
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the alpha of the color as a 16 bit value between 0 and 65535.Returns: The alpha of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the alpha of the color as a 8 bit value between 0 and 255.Returns: The alpha of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the alpha of the color as a double value between 0.0 and 1.0.Returns: The alpha of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns whether ColorPicker uses alpha.Returns: True if alpha is used. Otherwise, false.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the blue element of the color as a 16 bit value between 0 and 65535.Returns: The blue element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the blue element of the color as a 8 bit value between 0 and 255.Returns: The blue element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the blue element of the color as a double value between 0.0 and 1.0.Returns: The blue element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns whether ColorPicker uses dither.Returns: True if dither is used. Otherwise, false.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the green element of the color as a double value between 0 and 65535.Returns: The green element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the green element of the color as a double value between 0 and 255.Returns: The green element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the green element of the color as a double value between 0.0 and 1.0.Returns: The green element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the red element of the color as a double value between 0 and 65535.Returns: The red element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the red element of the color as a double value between 0 and 255.Returns: The red element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the red element of the color as a double value between 0.0 and 1.0.Returns: The red element of the color.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Gets the title of the color picker.Returns: The title for the color picker.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the alpha of the color as a 16 bit value between 0 and 65535.Parameters: alpha The alpha of the color.
Throws: IllegalArgumentException Thrown if alpha is outside of the valid range 0 to 65535.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the alpha of the color as a 8 bit value between 0 and 255.Parameters: alpha The alpha of the color.
Throws: IllegalArgumentException Thrown if alpha is outside of the valid range 0 to 255.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the alpha of the color as a double value between 0.0 and 1.0.Parameters: alpha The alpha of the color.
Throws: IllegalArgumentException Thrown if alpha is outside of the valid range 0.0 to 1.0.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Sets whether ColorPicker is to use alpha.Parameters: enable True to use alpha. Otherwise, false.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the blue element of the color as a 16 bit value between 0 and 65535.Parameters: color The blue element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 65535.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the blue element of the color as a 8 bit value between 0 and 255.Parameters: color The blue element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 255.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the blue element of the color as a double value between 0.0 and 1.0.Parameters: color The blue element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0.0 to 1.0.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
A shortcut method to set all the color values with one call. All values must be a integer value between 0 and 65535.Parameters: alpha The alpha of the color. blue The blue element of the color. green The green element of the color. red The red element of the color.
Throws: IllegalArgumentException Thrown if any given value is outside of the valid range 0 to 65535.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
A shortcut method to set all the color values with one call. All values must be a integer value between 0 and 255.Parameters: alpha The alpha of the color. blue The blue element of the color. green The green element of the color. red The red element of the color.
Throws: IllegalArgumentException Thrown if any given value is outside of the valid range 0 to 255.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
A shortcut method to set all the color values with one call. All values must be a double value between 0.0 and 1.0.Parameters: alpha The alpha of the color. blue The blue element of the color. green The green element of the color. red The red element of the color.
Throws: IllegalArgumentException Thrown if any given value is outside of the valid range 0.0 to 1.0.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Sets whether ColorPicker is to use dither.Parameters: enable True to use dither. Otherwise, false.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the green element of the color as a integer value between 0 and 65535.Parameters: color The green element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 65535.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the green element of the color as a integer value between 0 and 255.Parameters: color The green element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 255.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the green element of the color as a double value between 0.0 and 1.0.Parameters: color The green element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0.0 to 1.0.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the red element of the color as a integer value between 0 and 65535.Parameters: color The red element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 65535.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the red element of the color as a integer value between 0 and 255.Parameters: color The red element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0 to 255.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the red element of the color as a double value between 0.0 and 1.0.Parameters: color The red element of the color.
Throws: IllegalArgumentException Thrown if color is outside of the valid range 0.0 to 1.0.
Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Sets the title of the color picker.Parameters: title The title for the color picker.