org.gnu.gtk
public class ColorSelection extends VBox
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.ColorSelection
.
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 | |
---|---|
ColorSelection()
Creates a new gtk.ColorSelection. | |
ColorSelection(Handle handle)
construct a ColorSelection from a handle to a native peer. |
Method Summary | |
---|---|
void | addListener(ColorSelectionListener listener)
Register an object to handle dialog events.
|
static ColorSelection | getColorSelection(Handle handle)
construct a ColorSelection from a handle to a native peer. |
int | getCurrentAlpha()
Returns the current opacity.
|
Color | getCurrentColor()
Returns the color which is set in the widget
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getHasOpacityControl()
Determines whether the ColorSelection has an opacity control.
|
boolean | getHasPalette()
Determines whether the widget's palette is visible.
|
int | getPreviousAlpha()
Returns the previous alpha value. |
Color | getPreviousColor()
Returns the previous color. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeListener(ColorSelectionListener listener)
Removes a listener
|
void | setCurrentAlpha(int alpha)
Sets the current opacity to be alpha. |
void | setCurrentColor(Color color)
Sets the current color to be color. |
void | setHasOpacity(boolean hasOpacity)
Sets the widget to have an opacity control |
void | setHasOpacityControl(boolean hasOpacity)
Sets the ColorSelection to use or not to use the opacity control.
|
void | setHasPalette(boolean hasPalette)
Shows and hides the palette based upon the value of hasPalette.
|
void | setPreviousAlpha(int alpha)
Sets the previous alpha value. |
void | setPreviousColor(Color color)
Sets the previous 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.
Creates a new gtk.ColorSelection.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.
construct a ColorSelection from a handle to a native peer.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: ColorSelectionListener
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.
construct a ColorSelection from a handle to a native peer.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 opacity.Returns: An integer between 0 and 65535.
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 color which is set in the widgetReturns: the set colour
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.
Determines whether the ColorSelection has an opacity control.Returns: true if the widget has the opacity control.
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.
Determines whether the widget's palette is visible.Returns: true if the palette is visible.
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 previous 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 previous 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.
Retrieve the runtime type used by the GLib library.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 alpha. The first time this is called it will also set the original opacity to be alpha too.Parameters: alpha An integer between 0 and 65535.
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 color to be color. The first time this is called, it will also set the original color to be color too.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 widget to have an opacity controlDeprecated: 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 ColorSelection to use or not to use the opacity control.Parameters: hasOpacity true if this widget can set the opacity.
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.
Shows and hides the palette based upon the value of hasPalette.Parameters: hasPalette true if the palette should be visible.
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 previous 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.
Sets the previous color value.