- All Implemented Interfaces:
Tool,PropertyBean,Disableable
CreationTool for polyline figures.
- Author:
- Werner Randelshofer
-
Property Summary
Properties inherited from class org.jhotdraw8.draw.tool.AbstractTool
drawingEditor, drawingView, focusedProperties inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperties inherited from interface org.jhotdraw8.fxbase.control.Disableable
disabled -
Field Summary
Fields inherited from class org.jhotdraw8.draw.tool.AbstractCreationTool
createdFigure, figureFactory, layerFactoryFields inherited from class org.jhotdraw8.draw.tool.AbstractTool
drawPane, eventPane, node, undoHelperFields inherited from class org.jhotdraw8.application.AbstractDisableable
disabled, disablersFields inherited from interface org.jhotdraw8.fxbase.control.Disableable
DISABLED_PROPERTYFields inherited from interface org.jhotdraw8.draw.tool.Tool
ACCELERATOR_KEY, DRAWING_EDITOR_PROPERTY, DRAWING_VIEW_PROPERTY, LABEL, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON, STYLE_CLASS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionPolyCreationTool(String name, Resources rsrc, Point2DListStyleableKey key, Supplier<Figure> factory) PolyCreationTool(String name, Resources rsrc, Point2DListStyleableKey key, Supplier<Figure> figureFactory, Supplier<Layer> layerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(@NonNull DrawingEditor editor) This implementation sets the help text on the drawing view.Returns a localized help text for this tool.protected voidonMouseClicked(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView dv) protected voidonMouseDragged(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView dv) protected voidonMouseMoved(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView dv) protected voidonMousePressed(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView view) protected voidMethods inherited from class org.jhotdraw8.draw.tool.AbstractCreationTool
createFigure, getOrCreateParent, setFigureFactory, setLayerFactoryMethods inherited from class org.jhotdraw8.draw.tool.AbstractTool
addToolListener, applyResources, deactivate, drawingEditorProperty, drawingViewProperty, editCopy, editCut, editDelete, editDuplicate, editPaste, fire, fireToolDone, fireToolStarted, focusedProperty, forwardUndoableEdit, getNode, getProperties, onKeyPressed, onKeyReleased, onKeyTyped, onMouseEntered, onMouseExited, onMouseReleased, onZoom, onZoomFinished, onZoomStarted, removeToolListener, requestFocusMethods inherited from class org.jhotdraw8.application.AbstractDisableable
disabledProperty, disablersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxbase.control.Disableable
addDisabler, disabledProperty, disablers, isDisabled, removeDisablerMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
get, getNonNull, getProperty, put, remove, set, setNonNull, valueAtMethods inherited from interface org.jhotdraw8.draw.tool.Tool
getDrawingEditor, getDrawingView, getLabel, getName, setDrawingEditor, setDrawingView
-
Constructor Details
-
PolyCreationTool
public PolyCreationTool(String name, Resources rsrc, Point2DListStyleableKey key, Supplier<Figure> factory) -
PolyCreationTool
-
-
Method Details
-
stopEditing
protected void stopEditing()- Overrides:
stopEditingin classAbstractTool
-
onMousePressed
protected void onMousePressed(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView view) - Overrides:
onMousePressedin classAbstractTool
-
onMouseMoved
- Overrides:
onMouseMovedin classAbstractTool
-
onMouseDragged
protected void onMouseDragged(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView dv) - Overrides:
onMouseDraggedin classAbstractTool
-
onMouseClicked
protected void onMouseClicked(@NonNull javafx.scene.input.MouseEvent event, @NonNull DrawingView dv) - Overrides:
onMouseClickedin classAbstractTool
-
activate
Description copied from class:AbstractToolThis implementation sets the help text on the drawing view.- Specified by:
activatein interfaceTool- Overrides:
activatein classAbstractTool- Parameters:
editor- the editor
-
getHelpText
Description copied from interface:ToolReturns a localized help text for this tool.- Returns:
- the help text
-