Interface Slice

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
SliceFigure

public interface Slice extends Figure
Defines a slice of a drawing.

The parent of a slice must be a Layer or a Clipping .

A slice may not have children.

Author:
Werner Randelshofer
  • Method Details

    • isSuitableParent

      default boolean isSuitableParent(Figure newParent)
      Description copied from interface: Figure
      This method returns whether the provided figure is a suitable parent for this figure.
      Specified by:
      isSuitableParent in interface Figure
      Specified by:
      isSuitableParent in interface TreeNode<Figure>
      Parameters:
      newParent - The new parent figure.
      Returns:
      true if newParent is an acceptable parent
    • isAllowsChildren

      default boolean isAllowsChildren()
      Description copied from interface: Figure
      Whether children may be added to this figure.
      Specified by:
      isAllowsChildren in interface Figure
      Returns:
      true if getChildren are allowed
    • getSliceOrigin

      default javafx.geometry.Point2D getSliceOrigin()
      For vector graphics output. Specifies where the origin of the coordinate system in the exported slice is. By default, this is the top left corner of the slice.
      Returns:
      origin of coordinate system