org.gnu.gnomevte.event
Class MoveWindowEvent
java.lang.Object
org.gnu.gtk.event.GtkEvent
org.gnu.gnomevte.event.MoveWindowEvent
- All Implemented Interfaces:
- java.io.Serializable
public class MoveWindowEvent
- extends org.gnu.gtk.event.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.
- See Also:
- Serialized Form
Fields inherited from class org.gnu.gtk.event.GtkEvent |
source, type |
Constructor Summary |
MoveWindowEvent(java.lang.Object source,
org.gnu.glib.EventType type,
int xCoordinate,
int yCoordinate)
Constructor for TerminalMoveWindowEvent. |
Methods inherited from class org.gnu.gtk.event.GtkEvent |
getSource, getType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MoveWindowEvent
public MoveWindowEvent(java.lang.Object source,
org.gnu.glib.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.
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.