Package omeis.providers.re.codomain
Class CodomainMapContext
- java.lang.Object
-
- omeis.providers.re.codomain.CodomainMapContext
-
- Direct Known Subclasses:
ContrastStretchingContext,IdentityMapContext,PlaneSlicingContext,ReverseIntensityContext
public abstract class CodomainMapContext extends java.lang.ObjectEach concrete subclass defines transformation parameters for aCodomainMapimplementation.- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description protected intintervalEndThe upper bound of the codomain interval.protected intintervalStartThe lower bound of the codomain interval.
-
Constructor Summary
Constructors Constructor Description CodomainMapContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CodomainMapContextcopy()Returns a deep copy of this object.booleanequals(java.lang.Object o)This method is overridden so that objects of the same class are considered the same.voidsetCodomain(int intervalStart, int intervalEnd)Sets the codomain interval.
-
-
-
Method Detail
-
setCodomain
public void setCodomain(int intervalStart, int intervalEnd)Sets the codomain interval. No checks are needed as this method is controlled by thecodomainChain, which passes in consistent values.- Parameters:
intervalStart- The lower bound of the codomain interval.intervalEnd- The upper bound of the codomain interval.
-
equals
public final boolean equals(java.lang.Object o)
This method is overridden so that objects of the same class are considered the same. We need this trick to hanlde nicelyCodomainMapContextobjects in collections.- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
copy
public abstract CodomainMapContext copy()
Returns a deep copy of this object.- Returns:
- See above.
-
-