Interface LockableFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
ArcFigure, BezierPathFigure, CombinedPathFigure, EllipseFigure, GroupFigure, ImageFigure, LabelFigure, LayerFigure, LineConnectionFigure, LineConnectionWithMarkersFigure, LineFigure, PageFigure, PageLabelFigure, PolygonFigure, PolylineFigure, RectangleFigure, RegionFigure, SimpleDrawing, SimpleLabelConnectionFigure, SimpleLayeredDrawing, SliceFigure, TextAreaFigure, TextFigure

public interface LockableFigure extends Figure
LockableFigure.
Author:
Werner Randelshofer
  • Field Details

    • LOCKED

      static final NonNullBooleanStyleableKey LOCKED
      Whether the figure is locked. Default value: false.

      A locked figure can not be selected or changed by the user, unless the user explicity unlocks the figure.

      Locking a figure also locks all its child figures.

      This key can be used by the user to prevent accidental selection or editing of a figure.

  • Method Details

    • isEditable

      default boolean isEditable()
      Whether this figure is not locked and all its parents are editable.
      Specified by:
      isEditable in interface Figure
      Returns:
      true if this figure is not locked and all parents are editable
    • isDeletable

      default boolean isDeletable()
      Whether the figure is not locked and all its parents are editable.
      Specified by:
      isDeletable in interface Figure
      Returns:
      true if this figure is not locked and all parents are deletable.
    • isSelectable

      default boolean isSelectable()
      Whether the figure is not locked and all its parents are editable.
      Specified by:
      isSelectable in interface Figure
      Returns:
      true if this figure is not locked and all parents are selectable.