org.jagatoo.input.render
Class Cursor
java.lang.Object
org.jagatoo.input.render.Cursor
public class Cursor
- extends java.lang.Object
Abstraction of a Mouse cursor.
|
Constructor Summary |
Cursor(java.awt.image.BufferedImage[] images,
int[] delays,
int hotSpotX,
int hotSpotY)
|
Cursor(java.awt.image.BufferedImage[] images,
int[] delays,
int hotSpotX,
int hotSpotY,
java.lang.String name)
|
Cursor(java.awt.image.BufferedImage image,
int hotSpotX,
int hotSpotY)
|
Cursor(java.awt.image.BufferedImage image,
int hotSpotX,
int hotSpotY,
java.lang.String name)
|
Cursor(java.net.URL[] imageResources,
int[] delays,
int hotSpotX,
int hotSpotY)
|
Cursor(java.net.URL[] imageResources,
int[] delays,
int hotSpotX,
int hotSpotY,
java.lang.String name)
|
Cursor(java.net.URL imageResource,
int hotSpotX,
int hotSpotY)
|
Cursor(java.net.URL imageResource,
int hotSpotX,
int hotSpotY,
java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_CURSOR
public static final Cursor DEFAULT_CURSOR
Cursor
public Cursor(java.awt.image.BufferedImage[] images,
int[] delays,
int hotSpotX,
int hotSpotY,
java.lang.String name)
Cursor
public Cursor(java.awt.image.BufferedImage[] images,
int[] delays,
int hotSpotX,
int hotSpotY)
Cursor
public Cursor(java.awt.image.BufferedImage image,
int hotSpotX,
int hotSpotY,
java.lang.String name)
Cursor
public Cursor(java.awt.image.BufferedImage image,
int hotSpotX,
int hotSpotY)
Cursor
public Cursor(java.net.URL[] imageResources,
int[] delays,
int hotSpotX,
int hotSpotY,
java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
Cursor
public Cursor(java.net.URL[] imageResources,
int[] delays,
int hotSpotX,
int hotSpotY)
throws java.io.IOException
- Throws:
java.io.IOException
Cursor
public Cursor(java.net.URL imageResource,
int hotSpotX,
int hotSpotY,
java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
Cursor
public Cursor(java.net.URL imageResource,
int hotSpotX,
int hotSpotY)
throws java.io.IOException
- Throws:
java.io.IOException
markDirty
public void markDirty()
markClean
public void markClean()
isDirty
public final boolean isDirty()
getName
public final java.lang.String getName()
getWidth
public final int getWidth()
getHeight
public final int getHeight()
getHotSpotX
public final int getHotSpotX()
getHotSpotY
public final int getHotSpotY()
getImagesCount
public final int getImagesCount()
- Returns:
- the number of images in this Cursor.
getImage
public final java.awt.image.BufferedImage getImage(int index)
- Parameters:
index -
- Returns:
- the index'th image from this Cursor.
getDelay
public final int getDelay(int index)
- Parameters:
index -
- Returns:
- the delay assotiated with the index'th image.
setCursorObject
public void setCursorObject(java.lang.Object cursorImpl)
getCursorObject
public java.lang.Object getCursorObject()
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object