|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Button
org.gnu.gnome.ColorPicker
public class ColorPicker
The ColorPicker button pops up a ColorSelectionDialog and allows a color to be selected. The button changes color to match the currently selected color. The colors can be set using doubles - values between 0.0 and 1.0, 8 bit integers - values between 0 and 255, and 16 bit integers - values between 0 and 65535.
ColorSelectionDialog
Constructor Summary | |
---|---|
ColorPicker()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
|
ColorPicker(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
Method Summary | |
---|---|
void |
addListener(ColorPickerListener listener)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getAlpha16Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getAlpha8Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
double |
getAlphaDouble()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
boolean |
getAlphaEnabled()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getBlue16Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getBlue8Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
double |
getBlueDouble()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
boolean |
getDitherEnabled()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
int |
getGreen16Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getGreen8Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
double |
getGreenDouble()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getRed16Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
int |
getRed8Bit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
double |
getRedDouble()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
java.lang.String |
getTitle()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
static org.gnu.glib.Type |
getType()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
removeListener(ColorPickerListener listener)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setAlpha16Bit(int alpha)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setAlpha8Bit(int alpha)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setAlphaDouble(double alpha)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setAlphaEnabled(boolean enable)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setBlue16Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setBlue8Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setBlueDouble(double color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setColor16Bit(int alpha,
int blue,
int green,
int red)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setColor8Bit(int alpha,
int blue,
int green,
int red)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setColorDouble(double alpha,
double blue,
double green,
double red)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setDitherEnabled(boolean enable)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setGreen16Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setGreen8Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setGreenDouble(double color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setRed16Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setRed8Bit(int color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setRedDouble(double color)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
void |
setTitle(java.lang.String title)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries. |
Methods inherited from class org.gnu.gtk.Button |
---|
addListener, click, enter, getButton, getFocusOnClick, getImage, getLabel, getRelief, getUseStock, getUseUnderline, getXAlignment, getYAlignment, leave, press, release, removeListener, setAlignment, setFocusOnClick, setImage, setLabel, setRelief, setUseStock, setUseUnderline |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.Widget |
---|
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorPicker()
public ColorPicker(org.gnu.glib.Handle handle)
Method Detail |
---|
public double getAlphaDouble()
public double getBlueDouble()
public double getGreenDouble()
public double getRedDouble()
public int getAlpha8Bit()
public int getBlue8Bit()
public int getGreen8Bit()
public int getRed8Bit()
public int getAlpha16Bit()
public int getBlue16Bit()
public int getGreen16Bit()
public int getRed16Bit()
public boolean getAlphaEnabled()
public boolean getDitherEnabled()
public java.lang.String getTitle()
public void setColorDouble(double alpha, double blue, double green, double red) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.blue
- The blue element of the color.green
- The green element of the color.red
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if any given value is outside of the valid range
0.0 to 1.0.public void setAlphaDouble(double alpha) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.
java.lang.IllegalArgumentException
- Thrown if alpha is outside of the valid range 0.0 to 1.0.public void setBlueDouble(double color) throws java.lang.IllegalArgumentException
color
- The blue element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0.0 to 1.0.public void setGreenDouble(double color) throws java.lang.IllegalArgumentException
color
- The green element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0.0 to 1.0.public void setRedDouble(double color) throws java.lang.IllegalArgumentException
color
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0.0 to 1.0.public void setColor8Bit(int alpha, int blue, int green, int red) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.blue
- The blue element of the color.green
- The green element of the color.red
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if any given value is outside of the valid range 0
to 255.public void setAlpha8Bit(int alpha) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.
java.lang.IllegalArgumentException
- Thrown if alpha is outside of the valid range 0 to 255.public void setBlue8Bit(int color) throws java.lang.IllegalArgumentException
color
- The blue element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 255.public void setGreen8Bit(int color) throws java.lang.IllegalArgumentException
color
- The green element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 255.public void setRed8Bit(int color) throws java.lang.IllegalArgumentException
color
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 255.public void setColor16Bit(int alpha, int blue, int green, int red) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.blue
- The blue element of the color.green
- The green element of the color.red
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if any given value is outside of the valid range 0
to 65535.public void setAlpha16Bit(int alpha) throws java.lang.IllegalArgumentException
alpha
- The alpha of the color.
java.lang.IllegalArgumentException
- Thrown if alpha is outside of the valid range 0 to 65535.public void setBlue16Bit(int color) throws java.lang.IllegalArgumentException
color
- The blue element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 65535.public void setGreen16Bit(int color) throws java.lang.IllegalArgumentException
color
- The green element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 65535.public void setRed16Bit(int color) throws java.lang.IllegalArgumentException
color
- The red element of the color.
java.lang.IllegalArgumentException
- Thrown if color is outside of the valid range 0 to 65535.public void setAlphaEnabled(boolean enable)
enable
- True to use alpha. Otherwise, false.public void setDitherEnabled(boolean enable)
enable
- True to use dither. Otherwise, false.public void setTitle(java.lang.String title)
title
- The title for the color picker.public static org.gnu.glib.Type getType()
public void addListener(ColorPickerListener listener)
ColorPickerListener
public void removeListener(ColorPickerListener listener)
addListener(ColorPickerListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class org.gnu.gtk.Button
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class org.gnu.gtk.Button
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |