gov.nih.nci.mageom.domain.Array.impl
Class PositionDeltaImpl

java.lang.Object
  extended by gov.nih.nci.mageom.domain.impl.MAGEOMObject
      extended by gov.nih.nci.mageom.domain.impl.ExtendableImpl
          extended by gov.nih.nci.mageom.domain.Array.impl.PositionDeltaImpl
All Implemented Interfaces:
PositionDelta, Extendable, java.io.Serializable

public class PositionDeltaImpl
extends ExtendableImpl
implements PositionDelta

The delta the feature was actually printed on the array from the position specified for the feature in the array design.

Version:
%I%, %G%
See Also:
Serialized Form

Field Summary
protected static java.util.ArrayList allAssociationMethods
           
protected static java.util.Hashtable associationMethods
           
protected  java.lang.Float deltaX
          Deviation from the y coordinate of this feature's position.
protected  java.lang.Float deltaY
          Deviation from the y coordinate of this feature's position.
protected  DistanceUnit distanceUnit
          DOCUMENT ME
protected  java.lang.Long distanceUnitId
          The internal ID of the associated distanceUnit object.
 
Fields inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
propertySets, propertySetsCount, securedElementId
 
Constructor Summary
PositionDeltaImpl()
          Default constructor
 
Method Summary
 java.lang.Float getDeltaX()
          Returns the value of this PositionDelta object's deltaX attribute.
 java.lang.Float getDeltaY()
          Returns the value of this PositionDelta object's deltaY attribute.
 DistanceUnit getDistanceUnit()
          Returns the value of this PositionDelta object's distanceUnit attribute.
 java.util.Hashtable getXMLMethodDescriptors()
          Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.
protected  void init()
           
 PositionDelta[] searchPositionDeltas(PositionDeltaSearchCriteria criteria)
          Returns an array of PositionDelta objects that satisfy the given PositionDeltaSearchCriteria.
 void setDeltaX(java.lang.Float p_deltaX)
          Sets the deltaX attribute.
 void setDeltaY(java.lang.Float p_deltaY)
          Sets the deltaY attribute.
 void setDistanceUnit(DistanceUnit p_distanceUnit)
          Sets the distanceUnit attribute.
 java.lang.String toString()
          Returns a String representation of this object suitable for console display.
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc, java.util.ArrayList fillOutValues)
          Returns an XML representation of the object.
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.ExtendableImpl
getPropertySets, getPropertySetsCount, getSecuredElementId, searchExtendables, setPropertySets, setSecuredElementId
 
Methods inherited from class gov.nih.nci.mageom.domain.impl.MAGEOMObject
getId, getIsEditable, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.mageom.domain.Extendable
getPropertySets, setPropertySets
 

Field Detail

allAssociationMethods

protected static java.util.ArrayList allAssociationMethods

associationMethods

protected static java.util.Hashtable associationMethods

deltaX

protected java.lang.Float deltaX
Deviation from the y coordinate of this feature's position.


deltaY

protected java.lang.Float deltaY
Deviation from the y coordinate of this feature's position.


distanceUnit

protected DistanceUnit distanceUnit
DOCUMENT ME


distanceUnitId

protected java.lang.Long distanceUnitId
The internal ID of the associated distanceUnit object.

Constructor Detail

PositionDeltaImpl

public PositionDeltaImpl()
Default constructor

Method Detail

init

protected void init()
Overrides:
init in class ExtendableImpl

searchPositionDeltas

public PositionDelta[] searchPositionDeltas(PositionDeltaSearchCriteria criteria)
                                     throws gov.nih.nci.common.search.SearchException
Returns an array of PositionDelta objects that satisfy the given PositionDeltaSearchCriteria.

Parameters:
criteria - The PositionDeltaSearchCriteria which represents a query for PositionDelta objects.
Returns:
An array of PositionDelta objects.
Throws:
A - gov.nih.nci.common.search.SearchException if there is a problem searching.
gov.nih.nci.common.search.SearchException

setDeltaX

public void setDeltaX(java.lang.Float p_deltaX)
Sets the deltaX attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a PositionDelta object.

Specified by:
setDeltaX in interface PositionDelta
Parameters:
p_deltaX - The new value for deltaX.
See Also:
PositionDelta.getDeltaX()

getDeltaX

public java.lang.Float getDeltaX()
Description copied from interface: PositionDelta
Returns the value of this PositionDelta object's deltaX attribute. Description of deltaX: Deviation from the y coordinate of this feature's position.

Specified by:
getDeltaX in interface PositionDelta
Returns:
float The value of deltaX.
See Also:
PositionDelta.getDeltaX()

setDeltaY

public void setDeltaY(java.lang.Float p_deltaY)
Sets the deltaY attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a PositionDelta object.

Specified by:
setDeltaY in interface PositionDelta
Parameters:
p_deltaY - The new value for deltaY.
See Also:
PositionDelta.getDeltaY()

getDeltaY

public java.lang.Float getDeltaY()
Description copied from interface: PositionDelta
Returns the value of this PositionDelta object's deltaY attribute. Description of deltaY: Deviation from the y coordinate of this feature's position.

Specified by:
getDeltaY in interface PositionDelta
Returns:
float The value of deltaY.
See Also:
PositionDelta.getDeltaY()

setDistanceUnit

public void setDistanceUnit(DistanceUnit p_distanceUnit)
Sets the distanceUnit attribute. This API is currently read-only. So, calling this method does not affect the persistent state of a PositionDelta object.

Specified by:
setDistanceUnit in interface PositionDelta
Parameters:
p_distanceUnit - The new value for distanceUnit.
See Also:
PositionDelta.getDistanceUnit()

getDistanceUnit

public DistanceUnit getDistanceUnit()
Description copied from interface: PositionDelta
Returns the value of this PositionDelta object's distanceUnit attribute.

Specified by:
getDistanceUnit in interface PositionDelta
Returns:
gov.nih.nci.mageom.bean.Measurement.DistanceUnit The value of distanceUnit.
See Also:
PositionDelta.getDistanceUnit()

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Overrides:
toXML in class ExtendableImpl

toXMLDoc

public org.w3c.dom.Element toXMLDoc(org.w3c.dom.Document doc)
Overrides:
toXMLDoc in class ExtendableImpl

toXMLProcessor

public org.w3c.dom.Element toXMLProcessor(org.w3c.dom.Document doc,
                                          java.util.ArrayList fillOutValues)
Returns an XML representation of the object. The document is not modified.

Overrides:
toXMLProcessor in class ExtendableImpl
Parameters:
doc - the working document
fillOutValues - a list of attribute names that should have full XML for their values.
Returns:
org.w3c.dom.Element an XML representation

getXMLMethodDescriptors

public java.util.Hashtable getXMLMethodDescriptors()
Returns a Hashtable containing XMLMethodDescriptors descriptors of the association methods of this object.

Overrides:
getXMLMethodDescriptors in class ExtendableImpl
Returns:
Hashtable The Hashtable of descriptors.

toString

public java.lang.String toString()
Returns a String representation of this object suitable for console display.

Overrides:
toString in class ExtendableImpl
Returns:
the String representation.