Interface TwoLayersFeatureSize

All Superinterfaces:
FeatureSize, Wrapper

@NullMarked @AsOf("3.0.0") public interface TwoLayersFeatureSize extends FeatureSize
Specifies 2 different widths based on height. At heights lower than limit(), lowerSize() is used, otherwise upperSize().
Since:
3.0.0
See Also:
  • Method Details

    • limit

      @AsOf("3.0.0") int limit()
      The limit between the lower and upper layer, between 0 and 81 (inclusive). Defaults to 1.
      Returns:
      the limit
      Since:
      3.0.0
    • lowerSize

      @AsOf("3.0.0") int lowerSize()
      The minimum width of the tree at heights under limit(), between 0 and 16 (inclusive). Defaults to 0.
      Returns:
      the lower size
      Since:
      3.0.0
    • upperSize

      @AsOf("3.0.0") int upperSize()
      The minimum width of the tree at heights greater than or equal to limit(), between 0 and 16 (inclusive). Defaults to 1.
      Returns:
      the upper size
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default TwoLayersFeatureSize.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static TwoLayersFeatureSize of(@Nullable Integer minClippedHeight, int limit, int lowerSize, int upperSize)
      Creates a new two-layer feature size.
      Parameters:
      minClippedHeight - the minimum free height required for the tree to generate, or null to use the trunk height
      limit - the limit between the lower and upper layer, between 0 and 81 (inclusive)
      lowerSize - the minimum width of the tree at heights under the limit, between 0 and 16 (inclusive)
      upperSize - the minimum width of the tree at heights greater than or equal to the limit, between 0 and 16 (inclusive)
      Returns:
      a new two-layer feature size
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static TwoLayersFeatureSize.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0