Class AbstractLeafFigure

All Implemented Interfaces:
Figure, TransformCachingFigure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
Direct Known Subclasses:
AbstractLabelFigure, AbstractLineConnectionFigure, AbstractRegionFigure, ArcFigure, BezierPathFigure, EllipseFigure, ImageFigure, LineFigure, PolygonFigure, PolylineFigure, RectangleFigure, SliceFigure, TextAreaFigure, TextFigure

public abstract class AbstractLeafFigure extends AbstractFigure
This base class can be used to implement figures which do not support child figures.
Author:
Werner Randelshofer
  • Constructor Details

    • AbstractLeafFigure

      public AbstractLeafFigure()
  • Method Details

    • getChildren

      public final javafx.collections.ObservableList<Figure> getChildren()
      Description copied from interface: Figure
      The child figures.

      All changes on this list causes this figure to fire an invalidation event.

      If a child is added to this list, then this figure removes the child from its former parent, and then sets itself as the parent of the child.

      If a child is removed from this list, then this figure sets the parent of the child to null.

      Returns:
      the children
    • isAllowsChildren

      public final boolean isAllowsChildren()
      This method returns false.
      Returns:
      false
    • isSuitableParent

      public boolean isSuitableParent(Figure newParent)
      Description copied from interface: Figure
      This method returns whether the provided figure is a suitable parent for this figure.
      Parameters:
      newParent - The new parent figure.
      Returns:
      true if newParent is an acceptable parent
    • isSuitableChild

      public boolean isSuitableChild(Figure newChild)
      This method returns false for all children.
      Parameters:
      newChild - The new child figure.
      Returns:
      false