org.gnu.gnomevte.event
Class ResizeWindowEvent

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

public class ResizeWindowEvent
extends GtkEvent

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


Nested Class Summary
static class ResizeWindowEvent.Type
          Type of a TerminalResizeWindowEvent.
 
Constructor Summary
ResizeWindowEvent(java.lang.Object source, EventType type, int windowWidth, int windowHeight)
          Constructor for TerminalResizeWindowEvent.
 
Method Summary
 int getWindowHeight()
          Gets the new desired window height.
 int getWindowWidth()
          Gets the new desired window width.
 boolean isOfType(ResizeWindowEvent.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

ResizeWindowEvent

public ResizeWindowEvent(java.lang.Object source,
                         EventType type,
                         int windowWidth,
                         int windowHeight)
Constructor for TerminalResizeWindowEvent.

Parameters:
source - the source of the event.
type - the event type.
windowWidth -
windowHeight -
Method Detail

isOfType

public boolean isOfType(ResizeWindowEvent.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.

getWindowWidth

public int getWindowWidth()
Gets the new desired window width.

Returns:
the new desired window width.

getWindowHeight

public int getWindowHeight()
Gets the new desired window height.

Returns:
the new desired window height.