org.apache.pivot.wtk.media
Class Image
java.lang.Object
org.apache.pivot.wtk.media.Image
- All Implemented Interfaces:
- Visual
- Direct Known Subclasses:
- Drawing, ListViewColorItemRenderer.ColorBadge, Picture
public abstract class Image
- extends Object
- implements Visual
Abstract base class for images. An image is either a bitmapped "picture"
or a vector "drawing".
|
Constructor Summary |
Image()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imageListeners
protected Image.ImageListenerList imageListeners
Image
public Image()
getBaseline
public int getBaseline()
- Description copied from interface:
Visual
- Returns the visual's baseline.
- Specified by:
getBaseline in interface Visual
- Returns:
- The baseline relative to the origin of the visual, or -1 if
this visual does not have a baseline.
getSize
public Dimensions getSize()
update
public void update(int x,
int y,
int width,
int height)
getImageListeners
public org.apache.pivot.util.ListenerList<ImageListener> getImageListeners()
load
public static Image load(URL location)
throws org.apache.pivot.util.concurrent.TaskExecutionException
- Throws:
org.apache.pivot.util.concurrent.TaskExecutionException
load
public static Image.LoadTask load(URL location,
org.apache.pivot.util.concurrent.TaskListener<Image> loadListener)