org.gnu.gtk
public class ColorSelection extends VBox
See Also: ColorSelectionDialog
| 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. |
See Also: ColorSelectionListener
Returns: An integer between 0 and 65535.
Returns: the set colour
Returns: true if the widget has the opacity control.
Returns: true if the palette is visible.
See Also: addListener
Parameters: alpha An integer between 0 and 65535.
Parameters: color
Parameters: hasOpacity true if this widget can set the opacity.
Parameters: hasPalette true if the palette should be visible.