|
||||||||||
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.Misc
org.gnu.gtk.Image
The Image widget displays an image. Various kinds of objects can be
displayed as an image; most typically you would create a
Pixbuf
from a file and then display that.
If the file isn't loaded successfully, the image will contain a "broken image" icon similar to that used in many web browsers.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
Image()
Constructs a new Image. |
|
Image(GtkStockItem stockId,
IconSize size)
Create an Image displaying a Stock icon. |
|
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(Image image,
Bitmap mask)
Create an Image widget displaying a image and a mask. |
|
Image(Pixbuf pixbuf)
Creates an Image from a Pixbuf . |
|
Image(PixbufAnimation animation)
Creates an Image displaying the given PixbufAnimation. |
|
Image(Pixmap pixmap,
Bitmap mask)
Create an Image from a Pixmap . |
|
Image(java.lang.String filename)
Construct a new image passing the filename of an image. |
|
Image(java.lang.String iconName,
IconSize size)
Create an Image |
Method Summary | |
java.lang.String |
getIconName()
|
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. |
protected static Handle |
gtk_image_get_animation(Handle image)
|
protected static void |
gtk_image_get_icon_name(Handle image,
java.lang.String iconName,
int[] size)
|
protected static void |
gtk_image_get_icon_set(Handle image,
Handle iconSet,
int[] size)
|
protected static void |
gtk_image_get_image(Handle image,
Handle gdkImage,
Handle mask)
|
protected static Handle |
gtk_image_get_pixbuf(Handle image)
|
protected static int |
gtk_image_get_pixel_size(Handle image)
|
protected static void |
gtk_image_get_pixmap(Handle image,
Handle pixmap,
Handle mask)
|
protected static void |
gtk_image_get_stock(Handle image,
java.lang.String[] stockId,
int[] size)
|
protected static int |
gtk_image_get_storage_type(Handle image)
|
protected static int |
gtk_image_get_type()
|
protected static Handle |
gtk_image_new_from_animation(Handle animation)
|
protected static Handle |
gtk_image_new_from_file(java.lang.String filename)
|
protected static Handle |
gtk_image_new_from_icon_name(java.lang.String iconName,
int size)
|
protected static Handle |
gtk_image_new_from_icon_set(Handle iconSet,
int size)
|
protected static Handle |
gtk_image_new_from_image(Handle image,
Handle mask)
|
protected static Handle |
gtk_image_new_from_pixbuf(Handle pixbuf)
|
protected static Handle |
gtk_image_new_from_pixmap(Handle pixmap,
Handle mask)
|
protected static Handle |
gtk_image_new_from_stock(java.lang.String stockId,
int size)
|
protected static Handle |
gtk_image_new()
|
protected static void |
gtk_image_set_from_animation(Handle image,
Handle animation)
|
protected static void |
gtk_image_set_from_file(Handle image,
java.lang.String filename)
|
protected static void |
gtk_image_set_from_icon_name(Handle image,
java.lang.String iconName,
int size)
|
protected static void |
gtk_image_set_from_icon_set(Handle image,
Handle iconSet,
int size)
|
protected static void |
gtk_image_set_from_image(Handle image,
Handle gdkImage,
Handle mask)
|
protected static void |
gtk_image_set_from_pixbuf(Handle image,
Handle pixbuf)
|
protected static void |
gtk_image_set_from_pixmap(Handle image,
Handle pixmap,
Handle mask)
|
protected static void |
gtk_image_set_from_stock(Handle image,
java.lang.String stockId,
int size)
|
protected static void |
gtk_image_set_pixel_size(Handle image,
int pixelSize)
|
void |
set(GtkStockItem stockId,
IconSize size)
Set the image to a Stock icon. |
void |
set(IconSet iconSet,
IconSize size)
Sets the image to displayian IconSet. |
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(Pixmap pixmap,
Bitmap mask)
Sets the image to the given Pixmap . |
void |
set(java.lang.String filename)
Sets the image from a file |
void |
set(java.lang.String iconName,
IconSize size)
|
void |
setPixelSize(int pixelSize)
|
Methods inherited from class org.gnu.gtk.Misc |
getXAlign, getXPadding, getYAlign, getYPadding, gtk_misc_get_alignment, gtk_misc_get_padding, gtk_misc_get_type, gtk_misc_set_alignment, gtk_misc_set_padding, setAlignment, setPadding |
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 Image(java.lang.String filename)
filename
- The filename for the image to load.public Image(Image image, Bitmap mask)
image
- The org.gnu.gdk.Image to use for this object creation.mask
- The org.gnu.gdk.Mask to apply to the image.public Image(Pixbuf pixbuf)
Pixbuf
.
pixbuf
- The Pixbuf to use for the Image creation.public Image(Pixmap pixmap, Bitmap mask)
Pixmap
.
pixmap
- The Pixmap to use for the Image creation.mask
- The mask to apply to the created Image.public Image(PixbufAnimation animation)
animation
- The PixbufAnimation to use for this object creation.public Image(java.lang.String iconName, IconSize size)
public Image(Handle handle)
public Image(IconSet iconSet, IconSize size)
iconSet
- The IconSet to use for the Image.size
- The IconSize to use for the Image.public Image(GtkStockItem stockId, IconSize size)
stockId
- The id of the Stock icon to display.size
- The size of the icon.public Image()
Method Detail |
public ImageType getStorageType()
public static Type getType()
public void set(Pixmap pixmap, Bitmap mask)
Pixmap
.
pixmap
- The Pixmap to use for the Image.mask
- The mask to apply to the Image.public void set(Image image, Bitmap mask)
image
- The org.gnu.gdk.Image to use for this object.mask
- The org.gnu.gdk.Mask to apply to the image.public void set(Pixbuf pixbuf)
Pixbuf
.
pixbuf
- The Pixbuf to use for the Image.public void set(PixbufAnimation animation)
animation
- The PixbufAnimation to use for this object.public void set(java.lang.String iconName, IconSize size)
public void set(IconSet iconSet, IconSize size)
iconSet
- The IconSet to use for the Image.size
- The IconSize to use for the Image.public void set(GtkStockItem stockId, IconSize size)
stockId
- The id of the Stock icon to display.size
- The size of the icon.public void set(java.lang.String filename)
filename
- The filename for the image to load.public void setPixelSize(int pixelSize)
public int getPixelSize()
public java.lang.String getIconName()
protected static final int gtk_image_get_type()
protected static final Handle gtk_image_new()
protected static final Handle gtk_image_new_from_pixmap(Handle pixmap, Handle mask)
protected static final Handle gtk_image_new_from_image(Handle image, Handle mask)
protected static final Handle gtk_image_new_from_file(java.lang.String filename)
protected static final Handle gtk_image_new_from_pixbuf(Handle pixbuf)
protected static final Handle gtk_image_new_from_stock(java.lang.String stockId, int size)
protected static final Handle gtk_image_new_from_icon_set(Handle iconSet, int size)
protected static final Handle gtk_image_new_from_animation(Handle animation)
protected static final Handle gtk_image_new_from_icon_name(java.lang.String iconName, int size)
protected static final void gtk_image_set_from_pixmap(Handle image, Handle pixmap, Handle mask)
protected static final void gtk_image_set_from_image(Handle image, Handle gdkImage, Handle mask)
protected static final void gtk_image_set_from_file(Handle image, java.lang.String filename)
protected static final void gtk_image_set_from_pixbuf(Handle image, Handle pixbuf)
protected static final void gtk_image_set_from_stock(Handle image, java.lang.String stockId, int size)
protected static final void gtk_image_set_from_icon_set(Handle image, Handle iconSet, int size)
protected static final void gtk_image_set_from_animation(Handle image, Handle animation)
protected static final void gtk_image_set_from_icon_name(Handle image, java.lang.String iconName, int size)
protected static final void gtk_image_set_pixel_size(Handle image, int pixelSize)
protected static final int gtk_image_get_storage_type(Handle image)
protected static final void gtk_image_get_pixmap(Handle image, Handle pixmap, Handle mask)
protected static final void gtk_image_get_image(Handle image, Handle gdkImage, Handle mask)
protected static final Handle gtk_image_get_pixbuf(Handle image)
protected static final void gtk_image_get_stock(Handle image, java.lang.String[] stockId, int[] size)
protected static final void gtk_image_get_icon_set(Handle image, Handle iconSet, int[] size)
protected static final Handle gtk_image_get_animation(Handle image)
protected static final void gtk_image_get_icon_name(Handle image, java.lang.String iconName, int[] size)
protected static final int gtk_image_get_pixel_size(Handle image)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |