Class Bound

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BoundMinMax

public abstract class Bound extends MarkBounds
An abstract class representing an upper and lower bound.

This class extends MarkBounds to provide a framework for implementing specific types of bounds with minimum and maximum values.

See Also:
  • Constructor Details

    • Bound

      public Bound()
  • Method Details

    • duplicate

      public abstract Bound duplicate()
      Creates a duplicate of this bound.
      Returns:
      a new instance of Bound with the same properties as this one
    • resolve

      public ResolvedBound resolve(Optional<Resolution> resolution, boolean do3D)
      Resolves the bound based on the given resolution and dimensionality.
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      a ResolvedBound instance representing the resolved minimum and maximum values
    • scale

      public abstract void scale(double multFactor)
      Scales the bound by a multiplication factor.
      Parameters:
      multFactor - the factor to multiply the bound values by