java.lang.Object
org.jhotdraw8.application.AbstractDisableable
org.jhotdraw8.draw.tool.AbstractTool
org.jhotdraw8.draw.tool.AbstractCreationTool<Figure>
org.jhotdraw8.draw.tool.CreationTool
org.jhotdraw8.draw.tool.LineCreationTool
- All Implemented Interfaces:
Tool,PropertyBean,Disableable
-
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.CreationTool
x1, x2, y1, y2Fields 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
ConstructorsConstructorDescriptionLineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> factory) LineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> figureFactory, Supplier<Layer> layerFactory) LineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> figureFactory, Supplier<Layer> layerFactory, MapAccessor<CssPoint2D> p1, MapAccessor<CssPoint2D> p2) LineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> factory, MapAccessor<CssPoint2D> p1, MapAccessor<CssPoint2D> p2) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonMouseDragged(javafx.scene.input.MouseEvent event, DrawingView dv) protected voidonMousePressed(javafx.scene.input.MouseEvent event, DrawingView view) protected voidreshapeInLocal(Figure figure, CssPoint2D c1, CssPoint2D c2, DrawingModel dm) Methods inherited from class org.jhotdraw8.draw.tool.CreationTool
activate, getDefaultHeight, getDefaultWidth, getHelpText, onMouseReleased, setDefaultHeight, setDefaultWidth, stopEditingMethods 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, onMouseClicked, onMouseEntered, onMouseExited, onMouseMoved, 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
-
LineCreationTool
-
LineCreationTool
public LineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> factory, MapAccessor<CssPoint2D> p1, MapAccessor<CssPoint2D> p2) -
LineCreationTool
-
LineCreationTool
public LineCreationTool(String name, Resources rsrc, Supplier<? extends Figure> figureFactory, Supplier<Layer> layerFactory, MapAccessor<CssPoint2D> p1, MapAccessor<CssPoint2D> p2)
-
-
Method Details
-
onMousePressed
- Overrides:
onMousePressedin classCreationTool
-
onMouseDragged
- Overrides:
onMouseDraggedin classCreationTool
-
reshapeInLocal
- Overrides:
reshapeInLocalin classCreationTool
-