Class AbstractDrawingView

All Implemented Interfaces:
DrawingView, RenderContext, WritableRenderContext, PropertyBean, ReadOnlyPropertyBean
Direct Known Subclasses:
SimpleDrawingView

public abstract class AbstractDrawingView extends AbstractPropertyBean implements DrawingView
AbstractDrawingView.
Author:
Werner Randelshofer
  • Property Details

  • Constructor Details

    • AbstractDrawingView

      public AbstractDrawingView()
  • Method Details

    • editorProperty

      public javafx.beans.property.ObjectProperty<DrawingEditor> editorProperty()
      Description copied from interface: DrawingView
      The drawing editor.
      Specified by:
      editorProperty in interface DrawingView
      Returns:
      the editor property
    • clipboardInputFormatProperty

      public javafx.beans.property.ObjectProperty<ClipboardInputFormat> clipboardInputFormatProperty()
      Description copied from interface: DrawingView
      The clipboard input format.
      Specified by:
      clipboardInputFormatProperty in interface DrawingView
      Returns:
      the clipboardInputFormat property
    • clipboardOutputFormatProperty

      public javafx.beans.property.ObjectProperty<ClipboardOutputFormat> clipboardOutputFormatProperty()
      Description copied from interface: DrawingView
      The clipboard output format.
      Specified by:
      clipboardOutputFormatProperty in interface DrawingView
      Returns:
      the clipboardOutputFormat property
    • cut

      public void cut()
    • copy

      public void copy()
    • paste

      public void paste()
    • toolProperty

      public javafx.beans.property.ObjectProperty<Tool> toolProperty()
      Description copied from interface: DrawingView
      The tool which currently edits this DrawingView.

      When a tool is set on the drawing view, then drawing view adds the Node of the tool to its tool panel which is stacked on top of the drawing panel. It then invokes toolsetDrawingView(this).

      Setting a tool will removeChild the previous tool. The drawing view invokes tool.setDrawingView(null) and then removes its Node from its tool panel.

      Specified by:
      toolProperty in interface DrawingView
      Returns:
      the tool property
    • activeHandleProperty

      public javafx.beans.property.ObjectProperty<Handle> activeHandleProperty()
      Description copied from interface: DrawingView
      The 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:
      activeHandleProperty in interface DrawingView
      Returns:
      the activeHandle property
    • selectedFiguresProperty

      public javafx.beans.property.ReadOnlySetProperty<Figure> selectedFiguresProperty()
      The selectedFiguresProperty holds the list of selected figures in the sequence they were selected by the user.
      Specified by:
      selectedFiguresProperty in interface DrawingView
      Returns:
      the selectedFigures property
    • invalidateHandles

      protected abstract void invalidateHandles()
    • repaint

      protected abstract void repaint()
    • onToolChanged

      protected abstract void onToolChanged(javafx.beans.Observable observable, @Nullable Tool oldValue, @Nullable Tool newValue)
    • set

      public <T> void set(MapAccessor<T> key, @Nullable T value)
      Specified by:
      set in interface PropertyBean
      Specified by:
      set in interface WritableRenderContext