org.gnu.gnomevte.event

Class MoveWindowEvent

public class MoveWindowEvent extends GtkEvent

An event representing a move window action by a {@link org.gnu.gnomevte.Terminal} widget. This event is fired when the child application (the command forked) requests it.
Nested Class Summary
static classMoveWindowEvent.Type
Type of a TerminalMoveWindowEvent.
Constructor Summary
MoveWindowEvent(Object source, EventType type, int xCoordinate, int yCoordinate)
Constructor for TerminalMoveWindowEvent.
Method Summary
intgetXCoordinate()
Gets the X coordinate.
intgetYCoordinate()
Gets the Y coordinate.
booleanisOfType(MoveWindowEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Constructor Detail

MoveWindowEvent

public MoveWindowEvent(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

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.

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.