com.ngs.image
Class ImageEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.AWTEvent
          extended by com.ngs.image.ImageEvent
All Implemented Interfaces:
Serializable

public class ImageEvent
extends AWTEvent

See Also:
Serialized Form

Field Summary
static int IMAGE_ERROR
           
static int IMAGE_INVALID
           
static int IMAGE_RESIZE
           
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ImageEvent(Object source, int ID)
          Creates a new event with the specified source and type This constructor is for events which do NOT have associated pages such as IMAGE_INVALID or IMAGE_ERROR.
ImageEvent(Object source, int ID, int page)
          Creates a new event with the specified source, type, and page number.
ImageEvent(Object source, int ID, int page, String message)
          Creates a new event with the specified source, type, page number, and message.
ImageEvent(Object source, int ID, String message)
          Creates a new event with the specified source, ID, and Message.
 
Method Summary
 String getMessage()
          Gets the message for this event
 int getPage()
          Gets the page this Event is describing.
 int getType()
          Gets the type of event.
 String toString()
           
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMAGE_INVALID

public static final int IMAGE_INVALID
See Also:
Constant Field Values

IMAGE_ERROR

public static final int IMAGE_ERROR
See Also:
Constant Field Values

IMAGE_RESIZE

public static final int IMAGE_RESIZE
See Also:
Constant Field Values
Constructor Detail

ImageEvent

public ImageEvent(Object source,
                  int ID,
                  int page,
                  String message)
Creates a new event with the specified source, type, page number, and message.

Parameters:
source - The object originating the event
ID - The IMAGE_xxxx type of the event
page - The page which the event type referrs to
message - The Message to go along with the event.

ImageEvent

public ImageEvent(Object source,
                  int ID,
                  int page)
Creates a new event with the specified source, type, and page number.

Parameters:
source - The object originating the event
ID - The IMAGE_xxxx type of the event
page - The page which the event type referrs to

ImageEvent

public ImageEvent(Object source,
                  int ID,
                  String message)
Creates a new event with the specified source, ID, and Message.

Parameters:
source - The object originating the event.
ID - the IMAGE_xxxx type of the event.
message - The message to go along with the event.

ImageEvent

public ImageEvent(Object source,
                  int ID)
Creates a new event with the specified source and type This constructor is for events which do NOT have associated pages such as IMAGE_INVALID or IMAGE_ERROR. If a ImageEvent is created with this construstor, the page will always be zero.

Parameters:
source - The object originating the event
ID - The IMAGE_xxxx type of the event
Method Detail

getPage

public int getPage()
Gets the page this Event is describing.


getMessage

public String getMessage()
Gets the message for this event


getType

public int getType()
Gets the type of event.


toString

public String toString()
Overrides:
toString in class AWTEvent