java.lang.Object
org.jhotdraw8.fxbase.beans.AbstractPropertyBean
org.jhotdraw8.draw.AbstractDrawingView
- All Implemented Interfaces:
DrawingView,RenderContext,WritableRenderContext,PropertyBean,ReadOnlyPropertyBean
- Direct Known Subclasses:
SimpleDrawingView
AbstractDrawingView.
- Author:
- Werner Randelshofer
-
Property Summary
PropertiesTypePropertyDescriptionThe active handle.@NonNull javafx.beans.property.ObjectProperty<ClipboardInputFormat> The clipboard input format.@NonNull javafx.beans.property.ObjectProperty<ClipboardOutputFormat> The clipboard output format.@NonNull javafx.beans.property.ObjectProperty<DrawingEditor> The drawing editor.The selectedFiguresProperty holds the list of selected figures in the sequence they were selected by the user.The tool which currently edits thisDrawingView.Properties inherited from interface org.jhotdraw8.draw.DrawingView
activeParent, constrainer, drawing, focused, handles, model, zoomFactor -
Field Summary
Fields inherited from class org.jhotdraw8.fxbase.beans.AbstractPropertyBean
propertiesFields inherited from interface org.jhotdraw8.draw.DrawingView
ACTIVE_HANDLE_PROPERTY, ACTIVE_PARENT_PROPERTY, CLIPBOARD_INPUT_FORMAT_PROPERTY, CLIPBOARD_OUTPUT_FORMAT_PROPERTY, CONSTRAINER_PROPERTY, DRAWING_PROPERTY, EDITOR_PROPERTY, FOCUSED_PROPERTY, MODEL_PROPERTY, SELECTED_FIGURES_PROPERTY, TOOL_PROPERTY, ZOOM_FACTOR_PROPERTYFields inherited from interface org.jhotdraw8.draw.render.RenderContext
CLIP_BOUNDS, DPI, MAX_NODES_PER_LAYER, RENDER_NUMBER_OF_PAGES, RENDER_PAGE, RENDER_PAGE_INTERNAL_NUMBER, RENDER_PAGE_NUMBER, RENDER_TIMESTAMP, RENDERING_INTENT, SYSTEM_COLOR_CONVERTER_KEY, UNIT_CONVERTER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe active handle.@NonNull javafx.beans.property.ObjectProperty<ClipboardInputFormat> The clipboard input format.@NonNull javafx.beans.property.ObjectProperty<ClipboardOutputFormat> The clipboard output format.voidcopy()voidcut()@NonNull javafx.beans.property.ObjectProperty<DrawingEditor> The drawing editor.protected abstract voidprotected abstract voidonToolChanged(@NonNull javafx.beans.Observable observable, @Nullable Tool oldValue, @Nullable Tool newValue) voidpaste()protected abstract voidrepaint()The selectedFiguresProperty holds the list of selected figures in the sequence they were selected by the user.<T> voidset(@NonNull MapAccessor<T> key, @Nullable T value) The tool which currently edits thisDrawingView.Methods inherited from class org.jhotdraw8.fxbase.beans.AbstractPropertyBean
get, getNonNull, getPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.draw.DrawingView
activeParentProperty, constrainerProperty, drawingProperty, findFigure, findFigure, findFigure, findFigure, findFigureNode, findFigures, findFigures, findFigures, findFiguresInside, findFiguresInside, findFiguresIntersecting, findFiguresIntersecting, findFiguresIntersecting, findHandle, focusedProperty, getActiveHandle, getActiveParent, getClipboardInputFormat, getClipboardOutputFormat, getClosestFigure, getConstrainer, getDrawing, getEditor, getFiguresWithCompatibleHandle, getHandles, getModel, getNode, getNode, getSelectedFigures, getSelectionAnchor, getSelectionLead, getTool, getViewToWorld, getVisibleRect, getWorldToView, getZoomFactor, handlesProperty, jiggleHandles, modelProperty, recreateHandles, scrollFigureToVisible, scrollRectToVisible, scrollSelectedFiguresToVisible, setActiveHandle, setActiveParent, setClipboardInputFormat, setClipboardOutputFormat, setConstrainer, setDrawing, setEditor, setModel, setTool, setZoomFactor, viewToWorld, viewToWorld, viewToWorld, worldToView, worldToView, worldToView, zoomFactorPropertyMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
getProperty, put, remove, setNonNull, valueAtMethods inherited from interface org.jhotdraw8.fxbase.beans.ReadOnlyPropertyBean
get, getNonNull
-
Property Details
-
editor
- Specified by:
editorPropertyin interfaceDrawingView- Returns:
- the editor property
- See Also:
-
clipboardInputFormat
public @NonNull javafx.beans.property.ObjectProperty<ClipboardInputFormat> clipboardInputFormatProperty- Specified by:
clipboardInputFormatPropertyin interfaceDrawingView- Returns:
- the clipboard output format handle if present
- See Also:
-
clipboardOutputFormat
public @NonNull javafx.beans.property.ObjectProperty<ClipboardOutputFormat> clipboardOutputFormatProperty- Specified by:
clipboardOutputFormatPropertyin interfaceDrawingView- Returns:
- the clipboard output format handle if present
- See Also:
-
tool
- Specified by:
toolPropertyin interfaceDrawingView- Returns:
- the tool property, with
getBean()returning this drawing view, andgetName()returningTOOL_PROPERTY. - See Also:
-
activeHandle
- Specified by:
activeHandlePropertyin interfaceDrawingView- Returns:
- the active handle if present
- See Also:
-
selectedFigures
The selectedFiguresProperty holds the list of selected figures in the sequence they were selected by the user.- Specified by:
selectedFiguresPropertyin interfaceDrawingView- Returns:
- the currently selected figures
- See Also:
-
-
Constructor Details
-
AbstractDrawingView
public AbstractDrawingView()
-
-
Method Details
-
editorProperty
Description copied from interface:DrawingViewThe drawing editor.- Specified by:
editorPropertyin interfaceDrawingView- Returns:
- the
editorproperty
-
clipboardInputFormatProperty
public @NonNull javafx.beans.property.ObjectProperty<ClipboardInputFormat> clipboardInputFormatProperty()Description copied from interface:DrawingViewThe clipboard input format.- Specified by:
clipboardInputFormatPropertyin interfaceDrawingView- Returns:
- the
clipboardInputFormatproperty
-
clipboardOutputFormatProperty
public @NonNull javafx.beans.property.ObjectProperty<ClipboardOutputFormat> clipboardOutputFormatProperty()Description copied from interface:DrawingViewThe clipboard output format.- Specified by:
clipboardOutputFormatPropertyin interfaceDrawingView- Returns:
- the
clipboardOutputFormatproperty
-
cut
public void cut() -
copy
public void copy() -
paste
public void paste() -
toolProperty
Description copied from interface:DrawingViewThe tool which currently edits thisDrawingView.When a tool is set on the drawing view, then drawing view adds the
Nodeof the tool to its tool panel which is stacked on top of the drawing panel. It then invokestoolsetDrawingView(this).Setting a tool will removeChild the previous tool. The drawing view invokes
tool.setDrawingView(null)and then removes itsNodefrom its tool panel.- Specified by:
toolPropertyin interfaceDrawingView- Returns:
- the
toolproperty
-
activeHandleProperty
Description copied from interface:DrawingViewThe active handle.This is the handle, on which the user has clicked the last time.
Tools that support keyboard input on handles, typically forward keyboard input to the active handle.
- Specified by:
activeHandlePropertyin interfaceDrawingView- Returns:
- the
activeHandleproperty
-
selectedFiguresProperty
The selectedFiguresProperty holds the list of selected figures in the sequence they were selected by the user.- Specified by:
selectedFiguresPropertyin interfaceDrawingView- Returns:
- the
selectedFiguresproperty
-
invalidateHandles
protected abstract void invalidateHandles() -
repaint
protected abstract void repaint() -
onToolChanged
-
set
- Specified by:
setin interfacePropertyBean- Specified by:
setin interfaceWritableRenderContext
-