|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Box
org.gnu.gtk.VBox
org.gnu.gtk.ColorSelection
This widget displays color information in such a way that the user can specify, with the mouse, any available color.
ColorSelectionDialog
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
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. |
protected void |
fireColorSelectionEvent(ColorSelectionEvent event)
|
int |
getCurrentAlpha()
Returns the current opacity. |
Color |
getCurrentColor()
Returns the color which is set in the widget |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.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. |
protected static int |
gtk_color_selection_get_current_alpha(Handle colorsel)
|
protected static Handle |
gtk_color_selection_get_current_color(Handle colorsel)
|
protected static boolean |
gtk_color_selection_get_has_opacity_control(Handle colorsel)
|
protected static boolean |
gtk_color_selection_get_has_palette(Handle colorsel)
|
protected static int |
gtk_color_selection_get_previous_alpha(Handle colorsel)
|
protected static void |
gtk_color_selection_get_previous_color(Handle colorsel,
Handle color)
|
protected static int |
gtk_color_selection_get_type()
|
protected static boolean |
gtk_color_selection_is_adjusting(Handle colorsel)
|
protected static Handle |
gtk_color_selection_new()
|
protected static boolean |
gtk_color_selection_palette_from_string(java.lang.String str,
Handle[] color)
|
protected static java.lang.String |
gtk_color_selection_palette_to_string(Handle color,
int nColors)
|
protected static void |
gtk_color_selection_set_current_alpha(Handle colorsel,
int alpha)
|
protected static void |
gtk_color_selection_set_current_color(Handle colorsel,
Handle color)
|
protected static void |
gtk_color_selection_set_has_opacity_control(Handle colorsel,
boolean hasOpacity)
|
protected static void |
gtk_color_selection_set_has_palette(Handle colorsel,
boolean hasPalette)
|
protected static void |
gtk_color_selection_set_previous_alpha(Handle colorsel,
int alpha)
|
protected static void |
gtk_color_selection_set_previous_color(Handle colorsel,
Handle color)
|
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. |
Methods inherited from class org.gnu.gtk.VBox |
gtk_vbox_get_type, gtk_vbox_new |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorSelection()
public ColorSelection(Handle handle)
Method Detail |
public void setHasOpacity(boolean hasOpacity)
public void setCurrentColor(Color color)
color
- public Color getCurrentColor()
public void setHasOpacityControl(boolean hasOpacity)
hasOpacity
- true if this widget can set the opacity.public boolean getHasOpacityControl()
public void setHasPalette(boolean hasPalette)
hasPalette
- true if the palette should be visible.public boolean getHasPalette()
public void setCurrentAlpha(int alpha)
alpha
- An integer between 0 and 65535.public int getCurrentAlpha()
public void setPreviousAlpha(int alpha)
public int getPreviousAlpha()
public void setPreviousColor(Color color)
public Color getPreviousColor()
public static Type getType()
public void addListener(ColorSelectionListener listener)
ColorSelectionListener
public void removeListener(ColorSelectionListener listener)
addListener(ColorSelectionListener)
protected void fireColorSelectionEvent(ColorSelectionEvent event)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Container
public EventType getEventType(java.lang.String signal)
getEventType
in class Container
protected static final int gtk_color_selection_get_type()
protected static final Handle gtk_color_selection_new()
protected static final boolean gtk_color_selection_get_has_opacity_control(Handle colorsel)
protected static final void gtk_color_selection_set_has_opacity_control(Handle colorsel, boolean hasOpacity)
protected static final boolean gtk_color_selection_get_has_palette(Handle colorsel)
protected static final void gtk_color_selection_set_has_palette(Handle colorsel, boolean hasPalette)
protected static final void gtk_color_selection_set_current_color(Handle colorsel, Handle color)
protected static final void gtk_color_selection_set_current_alpha(Handle colorsel, int alpha)
protected static final Handle gtk_color_selection_get_current_color(Handle colorsel)
protected static final int gtk_color_selection_get_current_alpha(Handle colorsel)
protected static final void gtk_color_selection_set_previous_color(Handle colorsel, Handle color)
protected static final void gtk_color_selection_set_previous_alpha(Handle colorsel, int alpha)
protected static final void gtk_color_selection_get_previous_color(Handle colorsel, Handle color)
protected static final int gtk_color_selection_get_previous_alpha(Handle colorsel)
protected static final boolean gtk_color_selection_is_adjusting(Handle colorsel)
protected static final boolean gtk_color_selection_palette_from_string(java.lang.String str, Handle[] color)
protected static final java.lang.String gtk_color_selection_palette_to_string(Handle color, int nColors)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |