com.webrenderer.event
Class SizeEvent
java.lang.Object
java.util.EventObject
com.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. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SizeEvent
public SizeEvent(java.lang.Object source,
long width,
long height,
IBrowserCanvas owner)
- Constructor for ScrollEvent.
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