org.gnu.gtk
public class Image extends Misc
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.Image
.
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.
If the file isn't loaded successfully, the image will contain a "broken image" icon similar to that used in many web browsers.
Constructor Summary | |
---|---|
Image(String filename)
Construct a new image passing the filename of an image.
| |
Image(Image image, Bitmap mask)
Create an Image widget displaying a image and a mask. | |
Image(Pixbuf pixbuf)
Creates an Image from a Pixbuf.
| |
Image(Pixmap pixmap, Bitmap mask)
Create an Image from a Pixmap.
| |
Image(PixbufAnimation animation)
Creates an Image displaying the given PixbufAnimation.
| |
Image(String iconName, IconSize size)
Create an Image | |
Image(Handle handle)
Construct an Image from a handle to a native resource. | |
Image(IconSet iconSet, IconSize size)
Creates an Image displaying an IconSet.
| |
Image(GtkStockItem stockId, IconSize size)
Create an Image displaying a Stock icon.
| |
Image()
Constructs a new Image. |
Method Summary | |
---|---|
String | getIconName() |
static Image | getImage(Handle handle)
Construct an Image from a handle to a native resource. |
Image | getImage()
Gets the Image being displayed by this. |
Bitmap | getImageMask()
Gets the Bitmap being used as a map by the Image The storage type
of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.
|
Pixbuf | getPixbuf()
Gets the Pixbuf being displayed by the Image. |
int | getPixelSize() |
ImageType | getStorageType()
Gets the type of representation being used by the Image to store image
data. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | set(Pixmap pixmap, Bitmap mask)
Sets the image to the given Pixmap.
|
void | set(Image image, Bitmap mask)
Sets the image widget to displaying a image and a mask. |
void | set(Pixbuf pixbuf)
Sets the Image from a Pixbuf.
|
void | set(PixbufAnimation animation)
Sets to image to the given PixbufAnimation.
|
void | set(String iconName, IconSize size) |
void | set(IconSet iconSet, IconSize size)
Sets the image to displayian IconSet.
|
void | set(GtkStockItem stockId, IconSize size)
Set the image to a Stock icon.
|
void | set(String filename)
Sets the image from a file
|
void | setPixelSize(int pixelSize) |
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 new image passing the filename of an image.Parameters: filename The filename for the image to load.
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.
Create an Image widget displaying a image and a mask. A org.gnu.gdk.Image is a client-side image buffer in the pixel format of the current display.Parameters: image The org.gnu.gdk.Image to use for this object creation. mask The org.gnu.gdk.Mask to apply to the image.
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 an Image from a Pixbuf.Parameters: pixbuf The Pixbuf to use for the Image creation.
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.
Create an Image from a Pixmap.Parameters: pixmap The Pixmap to use for the Image creation. mask The mask to apply to the created Image.
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 an Image displaying the given PixbufAnimation.Parameters: animation The PixbufAnimation to use for this object creation.
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.
Create an ImageDeprecated: 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 an Image from a handle to a native resource.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 an Image displaying an IconSet.Parameters: iconSet The IconSet to use for the Image. size The IconSize to use for the Image.
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.
Create an Image displaying a Stock icon.Parameters: stockId The id of the Stock icon to display. size The size of the icon.
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.
Constructs a new Image. This will be displayed as a "no image" icon until an image is set using one of the set* methods.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 an Image from a handle to a native resource.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.
Gets the Image being displayed by this. The storage type of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.Returns: The image being displayed by the image
See Also: getStorageType
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.
Gets the Bitmap being used as a map by the Image The storage type of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.Returns: The map being used by the image
See Also: getStorageType
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.
Gets the Pixbuf being displayed by the Image. The storage type of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_PIXBUF.Returns: The pixbuf being used by the image.
See Also: getStorageType
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.
Gets the type of representation being used by the Image to store image data.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.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 image to the given Pixmap.Parameters: pixmap The Pixmap to use for the Image. mask The mask to apply to the Image.
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 image widget to displaying a image and a mask. A org.gnu.gdk.Image is a client-side image buffer in the pixel format of the current display.Parameters: image The org.gnu.gdk.Image to use for this object. mask The org.gnu.gdk.Mask to apply to the image.
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 Image from a Pixbuf.Parameters: pixbuf The Pixbuf to use for the Image.
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 to image to the given PixbufAnimation.Parameters: animation The PixbufAnimation to use for this object.
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 image to displayian IconSet.Parameters: iconSet The IconSet to use for the Image. size The IconSize to use for the Image.
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.
Set the image to a Stock icon.Parameters: stockId The id of the Stock icon to display. size The size of the icon.
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 image from a fileParameters: filename The filename for the image to load.