public class ToolSelectLine extends ToolDrawLine
ToolstyledLabel, styledLinestate, STATE_FIRST_CLICK, STATE_NONE, STATE_SECOND_CLICKaltKeyEventManager, 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 |
|---|
ToolSelectLine() |
ToolSelectLine(int nbDecimals,
boolean displayLabel,
StyleContainer styleContainer)
Creates a new ToolSelectPolygon tool that will only select elements in the
layer contained in the array
|
| Modifier and Type | Method and Description |
|---|---|
protected Layer[] |
getLayers() |
void |
onToolClicked(java.awt.event.MouseEvent e)
This method is called by the view (View instance) after mouse clicked events generated by the user.
|
keyPressed, onToolDragged, onToolMoved, onToolPressed, viewRepaintOccurredinit, terminateaddEditionEventListener, altIsPressed, altLastPressed, ctrlIsPressed, dispatchEvent, fireEditionEvent, genTrnsprntFillContainer, getCursor, getDrawLayer, getLabelAlignment, getLabelStyle, getLineStyle, getStyleContainer, initEventDispatcher, isCreateStyledElement, isPersistant, isPersistent, isUseUndoManager, keyReleased, keyTyped, offsetGeometry, removeEditionEventListener, setCreateStyledElement, setDrawLayer, setPersistant, setPersistent, setShowAttributesEditor, setStyleContainer, setUseUndoManager, shiftIsPressed, unoffsetGeometry, updatePtMouseVars, updatePtMouseVars, viewActivated, viewAdded, viewChangedOccurred, viewDeactivated, viewPopupMenuShowing, viewReadyOccurred, viewRedrawOccurred, viewRemoved, viewStaticElementChanged, viewToolChangedOccurredgetView, isAutoPan, onToolReleased, setAutoPan, toWCPointpublic ToolSelectLine()
public ToolSelectLine(int nbDecimals,
boolean displayLabel,
StyleContainer styleContainer)
nbDecimals - The number of decimals to display on the labeldisplayLabel - If a label containing the dimensions of the box should be
displayedstyleContainer - the ToolDrawStyleContainer of the label and the box. If null is
passed, a default style will be createdpublic void onToolClicked(java.awt.event.MouseEvent e)
ToolonToolClicked in class Toole - the corresponding mouse event.protected Layer[] getLayers()