Interface IPLSplittableObject<IMPLTYPE extends IPLSplittableObject<IMPLTYPE,​?>,​SPLITTYPE extends IPLSplittableObject<?,​?>>

    • Field Detail

    • Method Detail

      • internalCreateNewVertSplitObject

        @Nonnull
        SPLITTYPE internalCreateNewVertSplitObject​(@Nonnull
                                                   SPLITTYPE aBase)
        Create a new object of the same type as this object.
        Parameters:
        aBase - The source object to copy data from.
        Returns:
        Never null.
      • setVertSplittable

        @Nonnull
        IMPLTYPE setVertSplittable​(boolean bVertSplittable)
        Change the vertical splitability of this object.
        Parameters:
        bVertSplittable - true if this element is splittable, false otherwise.
        Returns:
        this for chaining
      • splitElementVert

        @Nullable
        PLSplitResult splitElementVert​(@Nonnegative
                                       float fAvailableWidth,
                                       @Nonnegative
                                       float fAvailableHeight)
        Split this element vertically into sub-elements according to the available height. Splitting is always done after preparation and must return prepared objects!
        Parameters:
        fAvailableWidth - The available width without outline of the element.
        fAvailableHeight - The available height without outline of this element. Must be ≥ 0.
        Returns:
        null if splitting makes no sense.