omeis.providers.re.codomain
Class CodomainMapContext

java.lang.Object
  extended by omeis.providers.re.codomain.CodomainMapContext
Direct Known Subclasses:
ContrastStretchingContext, IdentityMapContext, PlaneSlicingContext, ReverseIntensityContext

public abstract class CodomainMapContext
extends Object

Each concrete subclass defines transformation parameters for a CodomainMap implementation.

Since:
OME2.2
Version:
2.2 (Internal version: $Revision$ $Date: 2005/06/09 17:23:37 $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Andrea Falconi      a.falconi@dundee.ac.uk

Field Summary
protected  int intervalEnd
          The upper bound of the codomain interval.
protected  int intervalStart
          The lower bound of the codomain interval.
 
Constructor Summary
CodomainMapContext()
           
 
Method Summary
abstract  CodomainMapContext copy()
          Returns a deep copy of this object.
 boolean equals(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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intervalStart

protected int intervalStart
The lower bound of the codomain interval.


intervalEnd

protected int intervalEnd
The upper bound of the codomain interval.

Constructor Detail

CodomainMapContext

public CodomainMapContext()
Method Detail

setCodomain

public void setCodomain(int intervalStart,
                        int intervalEnd)
Sets the codomain interval. No checks are needed as this method is controlled by the codomainChain, 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(Object o)
This method is overridden so that objects of the same class are considered the same. We need this trick to hanlde nicely CodomainMapContext objects in collections.

Overrides:
equals in class Object
See Also:
Object.equals(Object)

copy

public abstract CodomainMapContext copy()
Returns a deep copy of this object.

Returns:
See above.


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.