org.gnu.gnomevte.event

Class MoveWindowEvent

public class MoveWindowEvent extends GtkEvent

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. Signal handling has been completely re-designed in java-gnome 4.0, so there will be no direct correspondant for this class. See individual inner interfaces in classes within org.gnome.vte

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 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.