Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Misc
org.gnu.gtk.Image
public class Image
extends Misc
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 | |
| |
| |
| |
| |
| |
Method Summary | |
String | |
Image |
|
static Image |
|
Bitmap |
|
Pixbuf |
|
int | |
ImageType |
|
static Type |
|
void |
|
void | |
void | |
void | |
void |
|
void | |
void |
|
void | |
void |
|
Methods inherited from class org.gnu.gtk.Misc | |
getType , getXAlign , getXPadding , getYAlign , getYPadding , setAlignment , setPadding |
public 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.
Constructs a new Image. This will be displayed as a "no image" icon until an image is set using one of the set* methods.
public Image(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 an Image from a handle to a native resource.
public Image(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.
Construct a new image passing the filename of an image.
- Parameters:
filename
- The filename for the image to load.
public Image(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.
Create an Image
public 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.
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.
public 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.
Creates an Image from aPixbuf
.
- Parameters:
pixbuf
- The Pixbuf to use for the Image creation.
public 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.
Creates an Image displaying the given PixbufAnimation.
- Parameters:
animation
- The PixbufAnimation to use for this object creation.
public 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.
Create an Image from aPixmap
.
- Parameters:
pixmap
- The Pixmap to use for the Image creation.mask
- The mask to apply to the created Image.
public 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.
Create an Image displaying a Stock icon.
- Parameters:
stockId
- The id of the Stock icon to display.size
- The size of the icon.
public 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.
Creates an Image displaying an IconSet.
- Parameters:
iconSet
- The IconSet to use for the Image.size
- The IconSize to use for the Image.
public String getIconName()
public 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.
Gets theImage
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()
public static Image getImage(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 an Image from a handle to a native resource.
public 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.
Gets theBitmap
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()
public 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.
Gets thePixbuf
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()
public int getPixelSize()
public 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.
Gets the type of representation being used by the Image to store image data.
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.
public void set(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.
Sets the image from a file
- Parameters:
filename
- The filename for the image to load.
public 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.
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.
public 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.
Sets the Image from aPixbuf
.
- Parameters:
pixbuf
- The Pixbuf to use for the Image.
public 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.
Sets to image to the given PixbufAnimation.
- Parameters:
animation
- The PixbufAnimation to use for this object.
public 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.
Sets the image to the givenPixmap
.
- Parameters:
pixmap
- The Pixmap to use for the Image.mask
- The mask to apply to the Image.
public 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.
Set the image to a Stock icon.
- Parameters:
stockId
- The id of the Stock icon to display.size
- The size of the icon.
public 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.
Sets the image to displayian IconSet.
- Parameters:
iconSet
- The IconSet to use for the Image.size
- The IconSize to use for the Image.
public void setPixelSize(int pixelSize)