|
|||||||||
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.Misc
org.gnu.gtk.Image
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.
public class 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.
Constructor Summary | |
---|---|
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. |
|
Image(GtkStockItem stockId,
IconSize size)
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. |
|
Image(org.gnu.glib.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. |
|
Image(IconSet iconSet,
IconSize size)
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. |
|
Image(Image image,
Bitmap mask)
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. |
|
Image(Pixbuf pixbuf)
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. |
|
Image(PixbufAnimation animation)
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. |
|
Image(Pixmap pixmap,
Bitmap mask)
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. |
|
Image(java.lang.String filename)
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. |
|
Image(java.lang.String iconName,
IconSize size)
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. |
Method Summary | |
---|---|
java.lang.String |
getIconName()
Deprecated. |
Image |
getImage()
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. |
static Image |
getImage(org.gnu.glib.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. |
Bitmap |
getImageMask()
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. |
Pixbuf |
getPixbuf()
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. |
int |
getPixelSize()
Deprecated. |
ImageType |
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. |
static org.gnu.glib.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. |
void |
set(GtkStockItem stockId,
IconSize size)
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. |
void |
set(IconSet iconSet,
IconSize size)
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. |
void |
set(Image image,
Bitmap mask)
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. |
void |
set(Pixbuf pixbuf)
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. |
void |
set(PixbufAnimation animation)
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. |
void |
set(Pixmap pixmap,
Bitmap mask)
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. |
void |
set(java.lang.String filename)
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. |
void |
set(java.lang.String iconName,
IconSize size)
Deprecated. |
void |
setPixelSize(int pixelSize)
Deprecated. |
Methods inherited from class org.gnu.gtk.Misc |
---|
getXAlign, getXPadding, getYAlign, getYPadding, setAlignment, setPadding |
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 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(org.gnu.glib.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 static Image getImage(org.gnu.glib.Handle handle)
public ImageType getStorageType()
public static org.gnu.glib.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 Pixbuf getPixbuf()
Pixbuf
being displayed by the Image. The storage type of
the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_PIXBUF.
getStorageType()
public Image getImage()
Image
being displayed by this. The storage
type of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.
getStorageType()
public Bitmap getImageMask()
Bitmap
being used as a map by the Image The storage type
of the image must be GTK_IMAGE_EMPTY or GTK_IMAGE_IMAGE.
getStorageType()
public java.lang.String getIconName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |