Class Bound
Object
org.anchoranalysis.bean.AnchorBean<MarkBounds>
org.anchoranalysis.mpp.bean.bound.MarkBounds
org.anchoranalysis.mpp.bean.bound.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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Bound() -
Method Summary
Modifier and Type Method Description abstract Boundduplicate()Creates a duplicate of this bound.ResolvedBoundresolve(Optional<Resolution> resolution, boolean do3D)Resolves the bound based on the given resolution and dimensionality.abstract voidscale(double multFactor)Scales the bound by a multiplication factor.Methods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMax, getMaxResolved, getMinResolvedMethods 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
Boundwith 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
ResolvedBoundinstance 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
-