Drag[en]gine Script Module DragonScript Script API  1.0
ScrollWidgetMouseListener Class Reference

Mouse listener scrolling widget using mouse dragging. More...

Inheritance diagram for ScrollWidgetMouseListener:
DefaultMouseListener MouseListener

Public Member Functions

int getAnchorHorizontal ()
 Anchor horizontal model value for anchor position. More...
 
Point getAnchorPosition ()
 Anchor mouse position or null if not scrolling. More...
 
int getAnchorVertical ()
 Anchor vertical model value for anchor position. More...
 
Container getWidget ()
 Widget to scroll. More...
 
ScrollWidgetMouseListener new (Container widget)
 Create mouse listener. More...
 
void onButtonPress (MouseEvent event)
 Mouse button has been pressed. More...
 
void onButtonRelease (MouseEvent event)
 Mouse button has been released. More...
 
void onMouseMove (MouseEvent event)
 Mouse has moved. More...
 
void setAnchorHorizontal (int value)
 Set anchor horizontal model value for anchor position. More...
 
void setAnchorPosition (Point position)
 Set anchor mouse position or null if not scrolling. More...
 
void setAnchorVertical (int value)
 Set anchor vertical model value for anchor position. More...
 
- Public Member Functions inherited from DefaultMouseListener
DefaultMouseListener new ()
 Create default mouse listener. More...
 
void onButtonPress (MouseEvent event)
 Mouse button has been pressed. More...
 
void onButtonRelease (MouseEvent event)
 Mouse button has been released. More...
 
void onMouseEnter (MouseEvent event)
 Mouse has entered widget.. More...
 
void onMouseLeave (MouseEvent event)
 Mouse has left widget. More...
 
void onMouseMove (MouseEvent event)
 Mouse has moved. More...
 

Detailed Description

Mouse listener scrolling widget using mouse dragging.

Member Function Documentation

§ getAnchorHorizontal()

int getAnchorHorizontal ( )

Anchor horizontal model value for anchor position.

§ getAnchorPosition()

Point getAnchorPosition ( )

Anchor mouse position or null if not scrolling.

§ getAnchorVertical()

int getAnchorVertical ( )

Anchor vertical model value for anchor position.

§ getWidget()

Container getWidget ( )

Widget to scroll.

§ new()

Create mouse listener.

§ onButtonPress()

void onButtonPress ( MouseEvent  event)

Mouse button has been pressed.

Starts scrolling by moving the mouse.

Implements MouseListener.

§ onButtonRelease()

void onButtonRelease ( MouseEvent  event)

Mouse button has been released.

Implements MouseListener.

§ onMouseMove()

void onMouseMove ( MouseEvent  event)

Mouse has moved.

Implements MouseListener.

§ setAnchorHorizontal()

void setAnchorHorizontal ( int  value)

Set anchor horizontal model value for anchor position.

§ setAnchorPosition()

void setAnchorPosition ( Point  position)

Set anchor mouse position or null if not scrolling.

§ setAnchorVertical()

void setAnchorVertical ( int  value)

Set anchor vertical model value for anchor position.


The documentation for this class was generated from the following file: