java.lang.Object
org.jhotdraw8.draw.AbstractDrawingEditor
- All Implemented Interfaces:
DrawingEditor
- Direct Known Subclasses:
SimpleDrawingEditor
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<DrawingView> The currently active drawing view.javafx.beans.property.ObjectProperty<Tool> The currently active tool.javafx.beans.property.ObjectProperty<HandleType> The handle type used for marking the anchor of a selection.javafx.beans.property.ObjectProperty<Tool> The default tool.javafx.beans.property.SetProperty<DrawingView> The drawing views associated with this editor.Holds the color of the handles.javafx.beans.property.DoublePropertyHolds the size (width and height) of a handle.javafx.beans.property.DoublePropertyHolds the stroke width of a handle.The handle type for single selection.javafx.beans.property.ObjectProperty<String> Holds the curent help text associated with this drawing view.javafx.beans.property.ObjectProperty<HandleType> The handle type used for marking the lead of a selection.The handle type for multiple selection.javafx.beans.property.DoublePropertyHolds the tolerance for finding figures.The undo manager is responsible for providing undo/redo functionality. -
Field Summary
Fields inherited from interface org.jhotdraw8.draw.DrawingEditor
ACTIVE_DRAWING_VIEW_PROPERTY, ACTIVE_TOOL_PROPERTY, DEFAULT_TOOL_PROPERTY, DRAWING_VIEWS_PROPERTY, HANDLE_COLOR_PROPERTY, HANDLE_SIZE_PROPERTY, HANDLE_STROKE_WDITH_PROPERTY, HANDLE_TYPE_PROPERTY, HELP_TEXT_PROPERTY, MULTI_HANDLE_TYPE_PROPERTY, TOLERANCE_PROPERTY, UNDO_MANAGER_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty<DrawingView> The currently active drawing view.javafx.beans.property.ObjectProperty<Tool> The currently active tool.javafx.beans.property.ObjectProperty<HandleType> The handle type used for marking the anchor of a selection.javafx.beans.property.ObjectProperty<Tool> The default tool.javafx.beans.property.SetProperty<DrawingView> The drawing views associated with this editor.Holds the color of the handles.javafx.beans.property.DoublePropertyHolds the size (width and height) of a handle.javafx.beans.property.DoublePropertyHolds the stroke width of a handle.The handle type for single selection.javafx.beans.property.ObjectProperty<String> Holds the curent help text associated with this drawing view.javafx.beans.property.ObjectProperty<HandleType> The handle type used for marking the lead of a selection.The handle type for multiple selection.javafx.beans.property.DoublePropertyHolds the tolerance for finding figures.The undo manager is responsible for providing undo/redo functionality.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.draw.DrawingEditor
addDrawingView, getActiveDrawingView, getActiveTool, getAnchorHandleType, getDefaultTool, getDrawingViews, getHandleColor, getHandleSize, getHandleStrokeWidth, getHandleType, getHelpText, getLeadHandleType, getMultiHandleType, getTolerance, getUndoManager, recreateHandles, removeDrawingView, setActiveDrawingView, setActiveTool, setAnchorHandleType, setDefaultTool, setHandleColor, setHandleSize, setHandleStrokeWidth, setHandleType, setHelpText, setLeadHandleType, setMultiHandleType, setTolerance, setUndoManager
-
Property Details
-
activeDrawingView
- Specified by:
activeDrawingViewPropertyin interfaceDrawingEditor- Returns:
- the property
- See Also:
-
activeTool
- Specified by:
activeToolPropertyin interfaceDrawingEditor- Returns:
- the property
- See Also:
-
anchorHandleType
- Specified by:
anchorHandleTypePropertyin interfaceDrawingEditor- Returns:
- the handle key
- See Also:
-
defaultTool
- Specified by:
defaultToolPropertyin interfaceDrawingEditor- Returns:
- the property
- See Also:
-
drawingViews
- Specified by:
drawingViewsPropertyin interfaceDrawingEditor- Returns:
- the property
- See Also:
-
handleColor
- Specified by:
handleColorPropertyin interfaceDrawingEditor- Returns:
- color of handle
- See Also:
-
handleSize
public javafx.beans.property.DoubleProperty handleSizeProperty- Specified by:
handleSizePropertyin interfaceDrawingEditor- Returns:
- size of handle
- See Also:
-
handleStrokeWidth
public javafx.beans.property.DoubleProperty handleStrokeWidthProperty- Specified by:
handleStrokeWidthPropertyin interfaceDrawingEditor- Returns:
- size of handle
- See Also:
-
handleType
- Specified by:
handleTypePropertyin interfaceDrawingEditor- Returns:
- the handle key
- See Also:
-
helpText
- Specified by:
helpTextPropertyin interfaceDrawingEditor- Returns:
- the help text property.
- See Also:
-
leadHandleType
- Specified by:
leadHandleTypePropertyin interfaceDrawingEditor- Returns:
- the handle key
- See Also:
-
multiHandleType
- Specified by:
multiHandleTypePropertyin interfaceDrawingEditor- Returns:
- the handle key
- See Also:
-
tolerance
public javafx.beans.property.DoubleProperty toleranceProperty- Specified by:
tolerancePropertyin interfaceDrawingEditor- See Also:
-
undoManager
- Specified by:
undoManagerPropertyin interfaceDrawingEditor- Returns:
- the undo manager
- See Also:
-
-
Constructor Details
-
AbstractDrawingEditor
public AbstractDrawingEditor()
-
-
Method Details
-
activeDrawingViewProperty
Description copied from interface:DrawingEditorThe currently active drawing view.- Specified by:
activeDrawingViewPropertyin interfaceDrawingEditor- Returns:
- the
activeDrawingViewproperty
-
activeToolProperty
Description copied from interface:DrawingEditorThe currently active tool.- Specified by:
activeToolPropertyin interfaceDrawingEditor- Returns:
- the
activeToolproperty
-
anchorHandleTypeProperty
Description copied from interface:DrawingEditorThe handle type used for marking the anchor of a selection.- Specified by:
anchorHandleTypePropertyin interfaceDrawingEditor- Returns:
- the
anchorHandleTypeproperty
-
defaultToolProperty
Description copied from interface:DrawingEditorThe default tool. When the value is not null, the default tool is made the active tool whenever another tool firesToolEvent.TOOL_DONE.- Specified by:
defaultToolPropertyin interfaceDrawingEditor- Returns:
- the
defaultToolproperty
-
drawingViewsProperty
Description copied from interface:DrawingEditorThe drawing views associated with this editor.- Specified by:
drawingViewsPropertyin interfaceDrawingEditor- Returns:
- the
drawingViewsproperty
-
handleColorProperty
Description copied from interface:DrawingEditorHolds the color of the handles.- Specified by:
handleColorPropertyin interfaceDrawingEditor- Returns:
- the
handleColorproperty
-
handleSizeProperty
public javafx.beans.property.DoubleProperty handleSizeProperty()Description copied from interface:DrawingEditorHolds the size (width and height) of a handle.- Specified by:
handleSizePropertyin interfaceDrawingEditor- Returns:
- the
handleSizeproperty
-
handleStrokeWidthProperty
public javafx.beans.property.DoubleProperty handleStrokeWidthProperty()Description copied from interface:DrawingEditorHolds the stroke width of a handle.- Specified by:
handleStrokeWidthPropertyin interfaceDrawingEditor- Returns:
- the
handleStrokeWidthproperty
-
handleTypeProperty
Description copied from interface:DrawingEditorThe handle type for single selection.- Specified by:
handleTypePropertyin interfaceDrawingEditor- Returns:
- the
handleTypeproperty
-
helpTextProperty
Description copied from interface:DrawingEditorHolds the curent help text associated with this drawing view.- Specified by:
helpTextPropertyin interfaceDrawingEditor- Returns:
- the
helpTextproperty
-
leadHandleTypeProperty
Description copied from interface:DrawingEditorThe handle type used for marking the lead of a selection.- Specified by:
leadHandleTypePropertyin interfaceDrawingEditor- Returns:
- the
leadHandleTypeproperty
-
multiHandleTypeProperty
Description copied from interface:DrawingEditorThe handle type for multiple selection.- Specified by:
multiHandleTypePropertyin interfaceDrawingEditor- Returns:
- the
multiHandleTypeproperty
-
toleranceProperty
public javafx.beans.property.DoubleProperty toleranceProperty()Description copied from interface:DrawingEditorHolds the tolerance for finding figures.- Specified by:
tolerancePropertyin interfaceDrawingEditor- Returns:
- the
toleranceproperty
-
undoManagerProperty
Description copied from interface:DrawingEditorThe undo manager is responsible for providing undo/redo functionality.- Specified by:
undoManagerPropertyin interfaceDrawingEditor- Returns:
- the
undoManagerproperty
-