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.Object
Each concrete subclass defines transformation parameters for aCodomainMap
implementation.- Since:
- OME2.2
-
-
Field Summary
Fields Modifier and Type Field Description protected int
intervalEnd
The upper bound of the codomain interval.protected int
intervalStart
The 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 CodomainMapContext
copy()
Returns a deep copy of this object.boolean
equals(java.lang.Object o)
This method is overridden so that objects of the same class are considered the same.void
setCodomain(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 nicelyCodomainMapContext
objects in collections.- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(Object)
-
copy
public abstract CodomainMapContext copy()
Returns a deep copy of this object.- Returns:
- See above.
-
-