|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
com.vividsolutions.jump.workbench.ui.cursortool.PolygonTool
org.openjump.core.ui.plugin.tools.AdvancedMeasureTool
public class AdvancedMeasureTool
A tool for measurment of distance or area.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool |
|---|
AbstractCursorTool.Listener |
| Field Summary | |
|---|---|
static int |
MEASURE_MODE_AREA
Measure mode area. |
static int |
MEASURE_MODE_DISTANCE
Measure mode distance. |
| Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool |
|---|
isLinuxOS |
| Constructor Summary | |
|---|---|
AdvancedMeasureTool(WorkbenchContext context)
Build a new AdvancedMeasureTool instance. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
ActionListener for the JMenuItems. |
protected void |
gestureFinished()
Gesture is finished, now do the work, paint the measurement. |
java.awt.Cursor |
getCursor()
Returns the Cursor depending on the measureMode. |
javax.swing.Icon |
getIcon()
Returns the Icon depending on the measureMode. |
javax.swing.JPopupMenu |
getPopupMenu()
Returns the popup menu for this tool. |
javax.swing.JToggleButton |
getToolbarButton()
Returns the toolbar button for this tool. |
protected boolean |
isFinishingRelease(java.awt.event.MouseEvent e)
For the possibility to start a gesture (measurement) with a double click, only finish, if we have more then one click previously done (coordinates > 1). |
void |
mouseClicked(java.awt.event.MouseEvent e)
Clickhandler for the measuretool. |
void |
mouseLocationChanged(java.awt.event.MouseEvent e)
Handle mouse location changes. |
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.PolygonTool |
|---|
checkPolygon, getPolygon |
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool |
|---|
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, mouseDragged, mouseMoved, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray |
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool |
|---|
add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MEASURE_MODE_DISTANCE
public static final int MEASURE_MODE_AREA
| Constructor Detail |
|---|
public AdvancedMeasureTool(WorkbenchContext context)
context - | Method Detail |
|---|
public javax.swing.Icon getIcon()
getIcon in interface CursorToolpublic java.awt.Cursor getCursor()
getCursor in interface CursorToolgetCursor in class AbstractCursorToolpublic void mouseLocationChanged(java.awt.event.MouseEvent e)
mouseLocationChanged in class MultiClickToole - public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class AbstractCursorToole - protected boolean isFinishingRelease(java.awt.event.MouseEvent e)
isFinishingRelease in class MultiClickToole -
protected void gestureFinished()
throws java.awt.geom.NoninvertibleTransformException
gestureFinished in class AbstractCursorTooljava.awt.geom.NoninvertibleTransformExceptionpublic javax.swing.JPopupMenu getPopupMenu()
public javax.swing.JToggleButton getToolbarButton()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||