com.jstatcom.ts
Class DefaultTSMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by com.jstatcom.ts.DefaultTSMouseListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class DefaultTSMouseListener
extends java.awt.event.MouseAdapter

A MouseListener that is especially designed to be used with the TSList. It is meant to be shared between TSList instances, but can also be created and subclassed if necessary. The default implementation is empty, because no special mouse behaviour is attached to the TSList.

Author:
Markus Kraetzig

Constructor Summary
DefaultTSMouseListener(java.lang.String name)
          Creates a DefaultTSMouseListener with a descriptive name.
 
Method Summary
static DefaultTSMouseListener getSharedInstance()
          Returns an instance of the DefaultTSMouseListener, that can be shared across all TSList instances.
 java.lang.String toString()
          Returns String representation of DefaultTSMouseListener.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTSMouseListener

public DefaultTSMouseListener(java.lang.String name)
Creates a DefaultTSMouseListener with a descriptive name.

Method Detail

getSharedInstance

public static DefaultTSMouseListener getSharedInstance()
Returns an instance of the DefaultTSMouseListener, that can be shared across all TSList instances. It is also possible to create subclasses that can be individually configured and set to a TSList that should have a different MouseListener.

Returns:
an instance of this class that can be shared

toString

public java.lang.String toString()
Returns String representation of DefaultTSMouseListener.

Overrides:
toString in class java.lang.Object
Returns:
string representation