|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
Constructor Summary | |
ColorSelection()
Creates a new gtk.ColorSelection. |
|
ColorSelection(int handle)
construct a ColorSelection from a handle to a native peer. |
Method Summary | |
int |
getCurrentAlpha()
Returns the current opacity. |
Color |
getCurrentColor()
Returns the color which is set in the widget |
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 |
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.Box |
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorSelection()
public ColorSelection(int 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()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |