|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Misc
org.gnome.gtk.Image
public class Image
A Widget that displays an image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
---|
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Nested classes/interfaces inherited from class org.gnome.gtk.Object |
---|
Object.Destroy |
Constructor Summary | |
---|---|
Image()
Create a new, but empty, Image Widget. |
|
Image(Icon icon,
IconSize size)
Construct a new Image based on an icon which is in the icons theme. |
|
Image(Pixbuf pixbuf)
Construct a new Image Widget from an image already loaded into a Pixbuf. |
|
Image(Pixmap pixmap,
Bitmap mask)
Construct a new Image based on an existing Pixmap. |
|
Image(Stock stock,
IconSize size)
Construct a new Image based on one of the Stock icons. |
|
Image(String filename)
Construct a new Image Widget from the image located at the specified path. |
Method Summary | |
---|---|
void |
clear()
Reset this Image to be empty. |
void |
setImage(Icon icon,
IconSize size)
Specify the icon to be displayed by this Image. |
void |
setImage(Pixbuf pixbuf)
Specify the Pixbuf to be presented by this Image. |
void |
setImage(Stock stock,
IconSize size)
Specify a stock icon to be displayed by this Image. |
void |
setImage(String filename)
Specify the filename to load and parse as image data to be displayed in this Image. |
Methods inherited from class org.gnome.gtk.Misc |
---|
getAlignmentX, getAlignmentY, getPaddingX, getPaddingY, setAlignment, setPadding |
Methods inherited from class org.gnome.gtk.Widget |
---|
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.gnome.gtk.Object |
---|
connect, destroy |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Image()
Although this can be used as a blank slate upon which you can do
arbitrary Cairo drawing in an Widget.ExposeEvent
handler,
you are better off using DrawingArea
for that purpose.
public Image(Icon icon, IconSize size)
public Image(Pixbuf pixbuf)
public Image(Pixmap pixmap, Bitmap mask)
mask
parameter, you generally
just want to mass null
.
public Image(Stock stock, IconSize size)
In most cases, you shouldn't need this; most of the special purpose
Widgets have constructors which directly use a Stock item (see
ImageMenuItem
or
ToolButton
for example) and which
will take care of the sizing issues for you.
public Image(String filename)
Method Detail |
---|
public void clear()
public void setImage(Icon icon, IconSize size)
constructor
taking an Icon instance.
public void setImage(Pixbuf pixbuf)
public void setImage(Stock stock, IconSize size)
constructor
taking a Stock instance.
public void setImage(String filename)
constructor
.
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |