Class BoundUnitless

All Implemented Interfaces:
Serializable

public class BoundUnitless extends BoundMinMax
A bound representing unitless values, where the minimum and maximum are not affected by resolution.

This class extends BoundMinMax to provide functionality for bounds that don't have a specific unit or are not affected by image resolution.

See Also:
  • Constructor Details

    • BoundUnitless

      public BoundUnitless()
      Creates a new instance with default minimum and maximum values.
    • BoundUnitless

      public BoundUnitless(double min, double max)
      Creates a new instance with specified minimum and maximum values.
      Parameters:
      min - the minimum value
      max - the maximum value
    • BoundUnitless

      public BoundUnitless(BoundUnitless src)
      Creates a new instance by copying another BoundUnitless.
      Parameters:
      src - the source BoundUnitless to copy from
  • Method Details

    • describeBean

      public String describeBean()
      Description copied from class: AnchorBean
      A (maybe longer) description identifying the bean and perhaps its key parameters.

      By default, it returns the same as AnchorBean.getBeanName() but beans can optionally override it

      Overrides:
      describeBean in class BoundMinMax
      Returns:
      either the short-name of the bean, or a longer description
    • getMinResolved

      public double getMinResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved minimum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMinResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved minimum value
    • getMaxResolved

      public double getMaxResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved maximum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMaxResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved maximum value
    • size

      public double size()
      Calculates the size of the bound range.
      Returns:
      the size of the range (max - min + 1)
    • duplicate

      public Bound duplicate()
      Description copied from class: Bound
      Creates a duplicate of this bound.
      Specified by:
      duplicate in class Bound
      Returns:
      a new instance of Bound with the same properties as this one