org.jagatoo.input.render
Class Cursor

java.lang.Object
  extended by org.jagatoo.input.render.Cursor

public class Cursor
extends java.lang.Object

Abstraction of a Mouse cursor.


Field Summary
static Cursor DEFAULT_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)
           
 
Method Summary
 java.lang.Object getCursorObject()
           
 int getDelay(int index)
           
 int getHeight()
           
 int getHotSpotX()
           
 int getHotSpotY()
           
 java.awt.image.BufferedImage getImage(int index)
           
 int getImagesCount()
           
 java.lang.String getName()
           
 int getWidth()
           
 boolean isDirty()
           
 void markClean()
           
 void markDirty()
           
 void setCursorObject(java.lang.Object cursorImpl)
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CURSOR

public static final Cursor DEFAULT_CURSOR
Constructor Detail

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
Method Detail

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