Class BoundMinMax

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BoundDegrees, BoundPhysicalExtent, BoundUnitless

public abstract class BoundMinMax
extends Bound
An abstract class representing a bound with minimum and maximum values.

This class extends Bound and uses a ResolvedBound as a delegate to manage the minimum and maximum values.

See Also:
Serialized Form
  • Constructor Details

    • BoundMinMax

      protected BoundMinMax()
      Creates a new instance with default minimum and maximum values.
    • BoundMinMax

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

      protected BoundMinMax​(BoundMinMax source)
      Creates a new instance by copying another BoundMinMax.
      Parameters:
      source - the source BoundMinMax to copy from
  • Method Details

    • getMin

      public double getMin()
      Gets the minimum value of the bound.
      Returns:
      the minimum value
    • setMin

      public void setMin​(double min)
      Sets the minimum value of the bound.
      Parameters:
      min - the minimum value to set
    • getMax

      public double getMax()
      Gets the maximum value of the bound.
      Returns:
      the maximum value
    • setMax

      public void setMax​(double max)
      Sets the maximum value of the bound.
      Parameters:
      max - the maximum value to set
    • describeBean

      public String describeBean()
      Overrides:
      describeBean in class AnchorBean<MarkBounds>
    • scale

      public void scale​(double multFactor)
      Description copied from class: Bound
      Scales the bound by a multiplication factor.
      Specified by:
      scale in class Bound
      Parameters:
      multFactor - the factor to multiply the bound values by
    • getDelegate

      public ResolvedBound getDelegate()
    • setDelegate

      public void setDelegate​(ResolvedBound delegate)