public class ToolDrawPointCoordinate extends ToolDraw
| Modifier and Type | Field and Description |
|---|---|
protected K2DStyledElement |
styledElement |
altKeyEventManager, altLastPressed, createStyledElement, cursorCrosshair, cursorWait, df, displayLabel, drawLayer, drawLayerId, eventDispatcher, firstPointWc, ID_DISTANCE_LINE, ID_LABEL, ID_LINE_TMP, ID_SNAP_POINT, isPersistant, lastMousePositionDc, secPointWc, showAttributesEditor, snapLayers, styleContainer, t, toRedrawDc, useHighlightHandles, useUndoManager| Constructor and Description |
|---|
ToolDrawPointCoordinate() |
ToolDrawPointCoordinate(int drawLayerId,
StyleContainer styleContainer) |
ToolDrawPointCoordinate(int drawLayerId,
StyleContainer styleContainer,
boolean useUndoManager) |
ToolDrawPointCoordinate(StyleContainer styleContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point point)
Adds a point at the specified coordinate
|
void |
init(View view)
Initiates this drawing tool: Sets the view, the K2DTransform and sets the
layer if none was specified before
|
void |
onToolPressed(java.awt.event.MouseEvent e)
This method is called when the mouse button is pressed while the mouse
cursor is over the view.
|
void |
terminate()
Terminates the current tool
|
addEditionEventListener, altIsPressed, altLastPressed, ctrlIsPressed, dispatchEvent, fireEditionEvent, genTrnsprntFillContainer, getCursor, getDrawLayer, getLabelAlignment, getLabelStyle, getLineStyle, getStyleContainer, initEventDispatcher, isCreateStyledElement, isPersistant, isPersistent, isUseUndoManager, keyPressed, keyReleased, keyTyped, offsetGeometry, removeEditionEventListener, setCreateStyledElement, setDrawLayer, setPersistant, setPersistent, setShowAttributesEditor, setStyleContainer, setUseUndoManager, shiftIsPressed, unoffsetGeometry, updatePtMouseVars, updatePtMouseVars, viewActivated, viewAdded, viewChangedOccurred, viewDeactivated, viewPopupMenuShowing, viewReadyOccurred, viewRedrawOccurred, viewRemoved, viewRepaintOccurred, viewStaticElementChanged, viewToolChangedOccurredgetView, isAutoPan, onToolClicked, onToolDragged, onToolMoved, onToolReleased, setAutoPan, toWCPointprotected K2DStyledElement styledElement
public ToolDrawPointCoordinate()
public ToolDrawPointCoordinate(StyleContainer styleContainer)
public ToolDrawPointCoordinate(int drawLayerId,
StyleContainer styleContainer)
public ToolDrawPointCoordinate(int drawLayerId,
StyleContainer styleContainer,
boolean useUndoManager)
public void init(View view)
ToolDrawpublic void terminate()
ToolDrawpublic void onToolPressed(java.awt.event.MouseEvent e)
onToolPressed in class Toole - the corresponding mouse eventpublic void addPoint(Point point)
point -