org.zaval.misc.event
Class PosEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.zaval.misc.event.PosEvent
All Implemented Interfaces:
java.io.Serializable

public class PosEvent
extends java.util.EventObject

This class is used to notify when a position has been changed.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PosEvent(java.lang.Object src, int po, int pl, int pc)
          Constructs the event object with the specified source object, the previous position, the previous line and column.
 
Method Summary
 int getPrevCol()
          Gets the previous column.
 int getPrevLine()
          Gets the previous line number.
 int getPrevOffset()
          Gets the previous position.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PosEvent

public PosEvent(java.lang.Object src,
                int po,
                int pl,
                int pc)
Constructs the event object with the specified source object, the previous position, the previous line and column.
Parameters:
src - the object where the event originated.
po - the specified previous position.
pl - the specified previous line.
pc - the specified previous column.
Method Detail

getPrevOffset

public int getPrevOffset()
Gets the previous position.
Returns:
a previous position.

getPrevLine

public int getPrevLine()
Gets the previous line number.
Returns:
a previous line number.

getPrevCol

public int getPrevCol()
Gets the previous column.
Returns:
a previous column.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org