org.gnu.gtk

Class ColorSelection

public class ColorSelection extends VBox

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.ColorSelection. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

This widget displays color information in such a way that the user can specify, with the mouse, any available color.

See Also:

Constructor Summary
ColorSelection()
Creates a new gtk.ColorSelection.
ColorSelection(Handle handle)
construct a ColorSelection from a handle to a native peer.
Method Summary
voidaddListener(ColorSelectionListener listener)
Register an object to handle dialog events.
static ColorSelectiongetColorSelection(Handle handle)
construct a ColorSelection from a handle to a native peer.
intgetCurrentAlpha()
Returns the current opacity.
ColorgetCurrentColor()
Returns the color which is set in the widget
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
booleangetHasOpacityControl()
Determines whether the ColorSelection has an opacity control.
booleangetHasPalette()
Determines whether the widget's palette is visible.
intgetPreviousAlpha()
Returns the previous alpha value.
ColorgetPreviousColor()
Returns the previous color.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(ColorSelectionListener listener)
Removes a listener
voidsetCurrentAlpha(int alpha)
Sets the current opacity to be alpha.
voidsetCurrentColor(Color color)
Sets the current color to be color.
voidsetHasOpacity(boolean hasOpacity)
Sets the widget to have an opacity control
voidsetHasOpacityControl(boolean hasOpacity)
Sets the ColorSelection to use or not to use the opacity control.
voidsetHasPalette(boolean hasPalette)
Shows and hides the palette based upon the value of hasPalette.
voidsetPreviousAlpha(int alpha)
Sets the previous alpha value.
voidsetPreviousColor(Color color)
Sets the previous color value.

Constructor Detail

ColorSelection

public ColorSelection()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Creates a new gtk.ColorSelection.

ColorSelection

public ColorSelection(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

construct a ColorSelection from a handle to a native peer.

Method Detail

addListener

public void addListener(ColorSelectionListener listener)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Register an object to handle dialog events.

See Also: ColorSelectionListener

getColorSelection

public static ColorSelection getColorSelection(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

construct a ColorSelection from a handle to a native peer.

getCurrentAlpha

public int getCurrentAlpha()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the current opacity.

Returns: An integer between 0 and 65535.

getCurrentColor

public Color getCurrentColor()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the color which is set in the widget

Returns: the set colour

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getHasOpacityControl

public boolean getHasOpacityControl()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Determines whether the ColorSelection has an opacity control.

Returns: true if the widget has the opacity control.

getHasPalette

public boolean getHasPalette()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Determines whether the widget's palette is visible.

Returns: true if the palette is visible.

getPreviousAlpha

public int getPreviousAlpha()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the previous alpha value.

getPreviousColor

public Color getPreviousColor()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns the previous color.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

removeListener

public void removeListener(ColorSelectionListener listener)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Removes a listener

See Also: addListener

setCurrentAlpha

public void setCurrentAlpha(int alpha)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the current opacity to be alpha. The first time this is called it will also set the original opacity to be alpha too.

Parameters: alpha An integer between 0 and 65535.

setCurrentColor

public void setCurrentColor(Color color)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the current color to be color. The first time this is called, it will also set the original color to be color too.

Parameters: color

setHasOpacity

public void setHasOpacity(boolean hasOpacity)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the widget to have an opacity control

setHasOpacityControl

public void setHasOpacityControl(boolean hasOpacity)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the ColorSelection to use or not to use the opacity control.

Parameters: hasOpacity true if this widget can set the opacity.

setHasPalette

public void setHasPalette(boolean hasPalette)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Shows and hides the palette based upon the value of hasPalette.

Parameters: hasPalette true if the palette should be visible.

setPreviousAlpha

public void setPreviousAlpha(int alpha)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the previous alpha value.

setPreviousColor

public void setPreviousColor(Color color)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets the previous color value.