|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.ImageView
public class ImageView
Component that displays an image.
TODO Load images asynchronously in setImage()?
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary |
Constructor Summary | |
---|---|
ImageView()
Creates an empty image view. |
|
ImageView(Image image)
Creates an image view with the given image. |
Method Summary | |
---|---|
Image |
getImage()
Returns the image view's current image. |
ListenerList<ImageViewListener> |
getImageViewListeners()
Returns the image view listener list. |
void |
setImage(Image image)
Sets the image view's current image. |
void |
setImage(java.lang.String image)
Sets the image view's current image by resource name. |
void |
setImage(java.net.URL image)
Sets the image view's current image by URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageView()
public ImageView(Image image)
image
- The initial image to set, or null for no image.Method Detail |
---|
public Image getImage()
public void setImage(Image image)
image
- The image to set, or null for no image.public void setImage(java.net.URL image)
image
- The location of the image to set.public void setImage(java.lang.String image)
image
- The resource name of the image to set.public ListenerList<ImageViewListener> getImageViewListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |