Class Bound
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BoundMinMax
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Bound
Creates a duplicate of this bound.resolve
(Optional<Resolution> resolution, boolean do3D) Resolves the bound based on the given resolution and dimensionality.abstract void
scale
(double multFactor) Scales the bound by a multiplication factor.Methods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMax, getMaxResolved, getMinResolved
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Bound
public Bound()
-
-
Method Details
-
duplicate
Creates a duplicate of this bound.- Returns:
- a new instance of
Bound
with the same properties as this one
-
resolve
Resolves the bound based on the given resolution and dimensionality.- Parameters:
resolution
- an optional resolution to consider when resolving the bounddo3D
- 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
-