com.vividsolutions.jump.workbench.ui.cursortool
Class CompositeTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
Direct Known Subclasses:
AndCompositeTool, OrCompositeTool

public abstract class CompositeTool
extends java.lang.Object
implements CursorTool


Constructor Summary
CompositeTool(CursorTool[] cursorTools)
           
 
Method Summary
 void activate(LayerViewPanel layerViewPanel)
           
 CompositeTool add(CursorTool tool)
           
 void cancelGesture()
          Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.
 void deactivate()
           
 java.awt.Cursor getCursor()
           
 javax.swing.Icon getIcon()
           
 LayerViewPanel getPanel()
           
 boolean isGestureInProgress()
           
 boolean isRightMouseButtonUsed()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vividsolutions.jump.workbench.ui.cursortool.CursorTool
getName
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Constructor Detail

CompositeTool

public CompositeTool(CursorTool[] cursorTools)
Method Detail

deactivate

public void deactivate()
Specified by:
deactivate in interface CursorTool

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool

isRightMouseButtonUsed

public boolean isRightMouseButtonUsed()
Specified by:
isRightMouseButtonUsed in interface CursorTool
Returns:
true if this CursorTool uses the right mouse button; false to allow the panel to show a popup-menu on right-clicks

activate

public void activate(LayerViewPanel layerViewPanel)
Specified by:
activate in interface CursorTool

add

public CompositeTool add(CursorTool tool)

cancelGesture

public void cancelGesture()
Description copied from interface: CursorTool
Notifies the CursorTool that a party is requesting that the gesture currently in progress be aborted.

Specified by:
cancelGesture in interface CursorTool

getIcon

public javax.swing.Icon getIcon()
Specified by:
getIcon in interface CursorTool
Returns:
null to use a default icon

isGestureInProgress

public boolean isGestureInProgress()
Specified by:
isGestureInProgress in interface CursorTool

getPanel

public LayerViewPanel getPanel()