This widget displays color information in such a way that the user
can specify, with the mouse, any available color.
getCurrentAlpha
public int getCurrentAlpha()
Returns the current opacity.
- An integer between 0 and 65535.
getCurrentColor
public Color getCurrentColor()
Returns the color which is set in the widget
- the set colour
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Container
getEventType
public EventType getEventType(String signal)
- getEventType in interface Container
getHasOpacityControl
public boolean getHasOpacityControl()
Determines whether the ColorSelection has an opacity control.
- true if the widget has the opacity control.
getHasPalette
public boolean getHasPalette()
Determines whether the widget's palette is visible.
- true if the palette is visible.
getPreviousAlpha
public int getPreviousAlpha()
Returns the previous alpha value.
getPreviousColor
public Color getPreviousColor()
Returns the previous color.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface VBox
gtk_color_selection_get_current_alpha
protected static final int gtk_color_selection_get_current_alpha(Handle colorsel)
gtk_color_selection_get_current_color
protected static final Handle gtk_color_selection_get_current_color(Handle colorsel)
gtk_color_selection_get_has_opacity_control
protected static final boolean gtk_color_selection_get_has_opacity_control(Handle colorsel)
gtk_color_selection_get_has_palette
protected static final boolean gtk_color_selection_get_has_palette(Handle colorsel)
gtk_color_selection_get_previous_alpha
protected static final int gtk_color_selection_get_previous_alpha(Handle colorsel)
gtk_color_selection_get_previous_color
protected static final void gtk_color_selection_get_previous_color(Handle colorsel,
Handle color)
gtk_color_selection_get_type
protected static final int gtk_color_selection_get_type()
gtk_color_selection_is_adjusting
protected static final boolean gtk_color_selection_is_adjusting(Handle colorsel)
gtk_color_selection_new
protected static final Handle gtk_color_selection_new()
gtk_color_selection_palette_from_string
protected static final boolean gtk_color_selection_palette_from_string(String str,
Handle[] color)
gtk_color_selection_palette_to_string
protected static final String gtk_color_selection_palette_to_string(Handle color,
int nColors)
gtk_color_selection_set_current_alpha
protected static final void gtk_color_selection_set_current_alpha(Handle colorsel,
int alpha)
gtk_color_selection_set_current_color
protected static final void gtk_color_selection_set_current_color(Handle colorsel,
Handle color)
gtk_color_selection_set_has_opacity_control
protected static final void gtk_color_selection_set_has_opacity_control(Handle colorsel,
boolean hasOpacity)
gtk_color_selection_set_has_palette
protected static final void gtk_color_selection_set_has_palette(Handle colorsel,
boolean hasPalette)
gtk_color_selection_set_previous_alpha
protected static final void gtk_color_selection_set_previous_alpha(Handle colorsel,
int alpha)
gtk_color_selection_set_previous_color
protected static final void gtk_color_selection_set_previous_color(Handle colorsel,
Handle color)
setCurrentAlpha
public void setCurrentAlpha(int alpha)
Sets the current opacity to be alpha. The first time this
is called it will also set the original opacity to be alpha
too.
alpha
- An integer between 0 and 65535.
setCurrentColor
public void setCurrentColor(Color color)
Sets the current color to be color. The first time this is called, it
will also set the original color to be color too.
color
-
setHasOpacity
public void setHasOpacity(boolean hasOpacity)
Sets the widget to have an opacity control
setHasOpacityControl
public void setHasOpacityControl(boolean hasOpacity)
Sets the ColorSelection to use or not to use the opacity control.
hasOpacity
- true if this widget can set the opacity.
setHasPalette
public void setHasPalette(boolean hasPalette)
Shows and hides the palette based upon the value of hasPalette.
hasPalette
- true if the palette should be visible.
setPreviousAlpha
public void setPreviousAlpha(int alpha)
Sets the previous alpha value.
setPreviousColor
public void setPreviousColor(Color color)
Sets the previous color value.