Class OrCompositeTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.OrCompositeTool
-
- All Implemented Interfaces:
CursorTool
,MouseListener
,MouseMotionListener
,EventListener
public class OrCompositeTool extends CompositeTool
Permits only one CursorTool to be active at a time. As long as one CursorTool has a shape on the screen, all events are directed to that CursorTool alone.- See Also:
AndCompositeTool
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
cursorTools
-
-
Constructor Summary
Constructors Constructor Description OrCompositeTool()
OrCompositeTool(CursorTool[] cursorTools)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cursor
getCursor()
String
getName()
Returns a very brief description of this CursorTool.void
mouseClicked(MouseEvent e)
void
mouseDragged(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mouseMoved(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
activate, add, cancelGesture, deactivate, firstCursorTool, getIcon, getName, getPanel, isGestureInProgress, isRightMouseButtonUsed
-
-
-
-
Constructor Detail
-
OrCompositeTool
public OrCompositeTool()
-
OrCompositeTool
public OrCompositeTool(CursorTool[] cursorTools)
-
-
Method Detail
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classCompositeTool
-
mouseClicked
public void mouseClicked(MouseEvent e)
-
mousePressed
public void mousePressed(MouseEvent e)
-
getName
public String getName()
Description copied from interface:CursorTool
Returns a very brief description of this CursorTool.- Returns:
- the name of this CursorTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
-
mouseEntered
public void mouseEntered(MouseEvent e)
-
mouseExited
public void mouseExited(MouseEvent e)
-
mouseDragged
public void mouseDragged(MouseEvent e)
-
mouseMoved
public void mouseMoved(MouseEvent e)
-
-