com.webrenderer.se.event.internal
Class ScrollEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.webrenderer.se.event.internal.ScrollEvent
All Implemented Interfaces:
java.io.Serializable

public class ScrollEvent
extends java.util.EventObject

An event which indicates that there has been a scroll event. Currently, a ScrollEvent will be invoked if the current view position of a Frame changes.

X and Y positions are measured in twips.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ScrollEvent(java.lang.Object source, long xPosition, long yPosition, IBrowserCanvas owner)
          Constructor for ScrollEvent.
 
Method Summary
 IBrowserCanvas getBrowser()
          Get the IBrowserCanvas that the document for this event is attached to.
 long getX()
          Get the X position the page has scrolled to in twips.
 long getY()
          Get the Y position the page has scrolled to in twips.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScrollEvent

public ScrollEvent(java.lang.Object source,
                   long xPosition,
                   long yPosition,
                   IBrowserCanvas owner)
Constructor for ScrollEvent.

Method Detail

getX

public long getX()
Get the X position the page has scrolled to in twips.

Returns:
X Position

getY

public long getY()
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