com.webrenderer.event
Class SizeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.webrenderer.event.SizeEvent
All Implemented Interfaces:
java.io.Serializable

public class SizeEvent
extends java.util.EventObject

An event which indicates that there has been a window resize event. Currently, a SizeEvent will be invoked if the current webrenderer size changes.

See Also:
Serialized Form

Constructor Summary
SizeEvent(java.lang.Object source, long width, long height, IBrowserCanvas owner)
          Constructor for ScrollEvent.
 
Method Summary
 IBrowserCanvas getBrowser()
          Get the IBrowserCanvas that the document for this event is attached to.
 long getHeight()
          Get the Y position the page has scrolled to in twips.
 long getWidth()
           
 void setSize(long width, long height)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SizeEvent

public SizeEvent(java.lang.Object source,
                 long width,
                 long height,
                 IBrowserCanvas owner)
Constructor for ScrollEvent.

Method Detail

setSize

public void setSize(long width,
                    long height)

getWidth

public long getWidth()
Returns:
width

getHeight

public long getHeight()
Get the Y position the page has scrolled to in twips.

Returns:
Y Postion

getBrowser

public IBrowserCanvas getBrowser()
Get the IBrowserCanvas that the document for this event is attached to.

Returns:
owning browser