com.steema.teechart.events
Class DragAdapter

java.lang.Object
  extended by com.steema.teechart.events.DragAdapter
All Implemented Interfaces:
DragListener, org.w3c.dom.events.EventListener

public abstract class DragAdapter
extends java.lang.Object
implements DragListener

An abstract adapter class for receiving series events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Series events let you track when a series is clicked.

Extend this class to create a ChangeEvent listener and override the methods for the events of interest. (If you implement the DragListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a component using the component's addDragListener method. When a series is clicked (pressed and released), the relevant method in the listener object is invoked and the ChangeEvent is passed to it.

Since:
1.0
See Also:
ChangeEvent, DragListenerer

Constructor Summary
DragAdapter()
           
 
Method Summary
 void dragFinished(ChangeEvent e)
          Invoked when a drag is finished.
 void dragMoving(ChangeEvent e)
          Invoked when a drag is going on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.events.EventListener
handleEvent
 

Constructor Detail

DragAdapter

public DragAdapter()
Method Detail

dragFinished

public void dragFinished(ChangeEvent e)
Invoked when a drag is finished.

Specified by:
dragFinished in interface DragListener

dragMoving

public void dragMoving(ChangeEvent e)
Invoked when a drag is going on.

Specified by:
dragMoving in interface DragListener