Package ome.xml.model
Class Pixels
- java.lang.Object
-
- ome.xml.model.AbstractOMEModelObject
-
- ome.xml.model.Pixels
-
- All Implemented Interfaces:
OMEModelObject
public class Pixels extends AbstractOMEModelObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACE
-
Method Summary
-
Methods inherited from class ome.xml.model.AbstractOMEModelObject
getChildrenByTagName, stripNamespacePrefix
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Pixels
public Pixels()
Default constructor.
-
Pixels
public Pixels(org.w3c.dom.Element element, OMEModel model) throws EnumerationException
Constructs Pixels recursively from an XML DOM tree.- Parameters:
element- Root of the XML DOM tree to construct a model object graph from.model- Handler for the OME model which keeps track of instances and references seen during object population.- Throws:
EnumerationException- If there is an error instantiating an enumeration during model object creation.
-
Pixels
public Pixels(Pixels orig)
Copy constructor.
-
-
Method Detail
-
update
public void update(org.w3c.dom.Element element, OMEModel model) throws EnumerationException
Updates Pixels recursively from an XML DOM tree. NOTE: No properties are removed, only added or updated.- Specified by:
updatein interfaceOMEModelObject- Overrides:
updatein classAbstractOMEModelObject- Parameters:
element- Root of the XML DOM tree to construct a model object graph from.model- Handler for the OME model which keeps track of instances and references seen during object population.- Throws:
EnumerationException- If there is an error instantiating an enumeration during model object creation.
-
link
public boolean link(Reference reference, OMEModelObject o)
Description copied from interface:OMEModelObjectLink a given OME model object to this model object.- Specified by:
linkin interfaceOMEModelObject- Overrides:
linkin classAbstractOMEModelObject- Parameters:
reference- The type qualifier for the reference. This should be the corresponding reference type foro. If, for example,ois of typeImage,referenceMUST be of typeImageRef.o- Model object to link to.- Returns:
trueif this model object was able to handle the reference,falseotherwise.
-
getID
public java.lang.String getID()
-
setID
public void setID(java.lang.String id)
-
getDimensionOrder
public DimensionOrder getDimensionOrder()
-
setDimensionOrder
public void setDimensionOrder(DimensionOrder dimensionOrder)
-
getType
public PixelType getType()
-
setType
public void setType(PixelType type)
-
getSignificantBits
public PositiveInteger getSignificantBits()
-
setSignificantBits
public void setSignificantBits(PositiveInteger significantBits)
-
getInterleaved
public java.lang.Boolean getInterleaved()
-
setInterleaved
public void setInterleaved(java.lang.Boolean interleaved)
-
getBigEndian
public java.lang.Boolean getBigEndian()
-
setBigEndian
public void setBigEndian(java.lang.Boolean bigEndian)
-
getSizeX
public PositiveInteger getSizeX()
-
setSizeX
public void setSizeX(PositiveInteger sizeX)
-
getSizeY
public PositiveInteger getSizeY()
-
setSizeY
public void setSizeY(PositiveInteger sizeY)
-
getSizeZ
public PositiveInteger getSizeZ()
-
setSizeZ
public void setSizeZ(PositiveInteger sizeZ)
-
getSizeC
public PositiveInteger getSizeC()
-
setSizeC
public void setSizeC(PositiveInteger sizeC)
-
getSizeT
public PositiveInteger getSizeT()
-
setSizeT
public void setSizeT(PositiveInteger sizeT)
-
getPhysicalSizeX
public Length getPhysicalSizeX()
-
setPhysicalSizeX
public void setPhysicalSizeX(Length physicalSizeX)
-
getPhysicalSizeXUnitXsdDefault
public static java.lang.String getPhysicalSizeXUnitXsdDefault()
-
getPhysicalSizeY
public Length getPhysicalSizeY()
-
setPhysicalSizeY
public void setPhysicalSizeY(Length physicalSizeY)
-
getPhysicalSizeYUnitXsdDefault
public static java.lang.String getPhysicalSizeYUnitXsdDefault()
-
getPhysicalSizeZ
public Length getPhysicalSizeZ()
-
setPhysicalSizeZ
public void setPhysicalSizeZ(Length physicalSizeZ)
-
getPhysicalSizeZUnitXsdDefault
public static java.lang.String getPhysicalSizeZUnitXsdDefault()
-
getTimeIncrement
public Time getTimeIncrement()
-
setTimeIncrement
public void setTimeIncrement(Time timeIncrement)
-
getTimeIncrementUnitXsdDefault
public static java.lang.String getTimeIncrementUnitXsdDefault()
-
sizeOfChannelList
public int sizeOfChannelList()
-
copyChannelList
public java.util.List<Channel> copyChannelList()
-
clearChannelList
public void clearChannelList()
-
getChannel
public Channel getChannel(int index)
-
addChannel
public void addChannel(Channel channel)
-
removeChannel
public void removeChannel(Channel channel)
-
sizeOfBinDataList
public int sizeOfBinDataList()
-
copyBinDataList
public java.util.List<BinData> copyBinDataList()
-
clearBinDataList
public void clearBinDataList()
-
getBinData
public BinData getBinData(int index)
-
addBinData
public void addBinData(BinData binData)
-
removeBinData
public void removeBinData(BinData binData)
-
sizeOfTiffDataList
public int sizeOfTiffDataList()
-
copyTiffDataList
public java.util.List<TiffData> copyTiffDataList()
-
clearTiffDataList
public void clearTiffDataList()
-
getTiffData
public TiffData getTiffData(int index)
-
addTiffData
public void addTiffData(TiffData tiffData)
-
removeTiffData
public void removeTiffData(TiffData tiffData)
-
getMetadataOnly
public MetadataOnly getMetadataOnly()
-
setMetadataOnly
public void setMetadataOnly(MetadataOnly metadataOnly)
-
sizeOfPlaneList
public int sizeOfPlaneList()
-
copyPlaneList
public java.util.List<Plane> copyPlaneList()
-
clearPlaneList
public void clearPlaneList()
-
getPlane
public Plane getPlane(int index)
-
addPlane
public void addPlane(Plane plane)
-
removePlane
public void removePlane(Plane plane)
-
asXMLElement
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document)
Description copied from interface:OMEModelObjectTakes the entire object hierarchy and produces an XML DOM tree.- Specified by:
asXMLElementin interfaceOMEModelObject- Specified by:
asXMLElementin classAbstractOMEModelObject- Parameters:
document- Destination document for element creation, etc.- Returns:
- XML DOM tree root element for this model object.
-
asXMLElement
public org.w3c.dom.Element asXMLElement(org.w3c.dom.Document document, org.w3c.dom.Element Pixels_element)
Description copied from class:AbstractOMEModelObjectTakes the entire object hierarchy and produced an XML DOM tree taking into account class hierarchy.- Overrides:
asXMLElementin classAbstractOMEModelObject- Parameters:
document- Destination document for element creation, etc.Pixels_element- Element from the subclass. Ifnulla new element will be created of this class.- Returns:
elementpopulated with properties from this class.
-
-