public abstract class ToolDrawState extends ToolDraw
| Modifier and Type | Field and Description |
|---|---|
protected int |
state |
protected static int |
STATE_FIRST_CLICK |
protected static int |
STATE_NONE |
protected static int |
STATE_SECOND_CLICK |
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 |
|---|
ToolDrawState() |
ToolDrawState(int nbDecimals,
boolean displayLabel,
boolean isPersistant,
int drawLayerId,
StyleContainer styleContainer,
boolean useUndoManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(View view)
Initiates this drawing tool: Sets the view, the K2DTransform and sets the
layer if none was specified before
|
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, onToolPressed, onToolReleased, setAutoPan, toWCPointprotected static final int STATE_NONE
protected static final int STATE_FIRST_CLICK
protected static final int STATE_SECOND_CLICK
protected int state
public ToolDrawState()
public ToolDrawState(int nbDecimals,
boolean displayLabel,
boolean isPersistant,
int drawLayerId,
StyleContainer styleContainer,
boolean useUndoManager)