org.gnu.gnomevte.event
Class MoveWindowEvent

java.lang.Object
  extended by GtkEvent
      extended by org.gnu.gnomevte.event.MoveWindowEvent

public class MoveWindowEvent
extends GtkEvent

An event representing a move window action by a Terminal widget. This event is fired when the child application (the command forked) requests it.


Nested Class Summary
static class MoveWindowEvent.Type
          Type of a TerminalMoveWindowEvent.
 
Constructor Summary
MoveWindowEvent(java.lang.Object source, EventType type, int xCoordinate, int yCoordinate)
          Constructor for TerminalMoveWindowEvent.
 
Method Summary
 int getXCoordinate()
          Gets the X coordinate.
 int getYCoordinate()
          Gets the Y coordinate.
 boolean isOfType(MoveWindowEvent.Type aType)
          This method compares the type of the current event to the one provided as an argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveWindowEvent

public MoveWindowEvent(java.lang.Object source,
                       EventType type,
                       int xCoordinate,
                       int yCoordinate)
Constructor for TerminalMoveWindowEvent.

Parameters:
source - the source of the event.
type - the event type.
xCoordinate - the terminal's desired location, X coordinate.
yCoordinate - the terminal's desired location, Y coordinate.
Method Detail

isOfType

public boolean isOfType(MoveWindowEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Parameters:
aType - the type to compare to.
Returns:
true if the events are of same type.

getXCoordinate

public int getXCoordinate()
Gets the X coordinate.

Returns:
the new X coordinate.

getYCoordinate

public int getYCoordinate()
Gets the Y coordinate.

Returns:
the new Y coordinate.