Package loci.formats.in
Class ND2Handler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
loci.common.xml.BaseHandler
loci.formats.in.ND2Handler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class ND2Handler
extends loci.common.xml.BaseHandler
DefaultHandler implementation for handling XML produced by Nikon Elements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate CoreMetadataListprivate Stringprivate Stringprivate static final Stringprivate static final intprivate booleanbooleanprivate Stringprivate booleanprivate static final org.slf4j.Loggerprivate Doubleprivate Doubleprivate intprivate intprivate intprivate intprivate Stringprivate Doubleprivate doubleprivate doubleprivate doubleprivate booleanprivate ArrayList<ome.units.quantity.Length> private ArrayList<ome.units.quantity.Length> private ArrayList<ome.units.quantity.Length> private Stringprivate Stringprivate Stringprivate Doubleprivate Double -
Constructor Summary
ConstructorsConstructorDescriptionND2Handler(CoreMetadataList core, boolean populateXY, int nImages) ND2Handler(CoreMetadataList core, int nImages) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendElement(String uri, String localName, String qName, Attributes attributes) getDate()intgetGains()doubledoubledoublegetROIs()intintArrayList<ome.units.quantity.Length> ArrayList<ome.units.quantity.Length> ArrayList<ome.units.quantity.Length> booleanisDimensions(String key) Returns whether or not the specified key is denotes dimensions.booleanvoidparseKeyAndValue(String key, String value, String runtype) private DoubleParses the physical size from a key.voidpopulateROIs(MetadataStore store) voidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class loci.common.xml.BaseHandler
resolveEntityMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATE_FORMAT
- See Also:
-
FIELD_INDEX
private static final int FIELD_INDEX- See Also:
-
prefix
-
prevRuntype
-
prevElement
-
metadata
-
core
-
isLossless
private boolean isLossless -
zs
-
ts
-
numSeries
private int numSeries -
pixelSizeX
private double pixelSizeX -
pixelSizeY
private double pixelSizeY -
pixelSizeZ
private double pixelSizeZ -
pinholeSize
-
voltage
-
mag
-
na
-
objectiveModel
-
immersion
-
correction
-
refractiveIndex
-
channelNames
-
modality
-
binning
-
speed
-
gain
-
temperature
-
exposureTime
-
exWave
-
emWave
-
power
-
rois
-
posX
-
posY
-
posZ
-
posNames
-
cameraModel
-
date
-
colors
-
dyes
-
realColors
-
nXFields
private int nXFields -
nYFields
private int nYFields -
populateXY
private boolean populateXY -
nImages
private int nImages -
validLoopState
-
canAdjustDimensions
private boolean canAdjustDimensions -
firstTimeLoop
private boolean firstTimeLoop -
imageMetadataLVExists
public boolean imageMetadataLVExists
-
-
Constructor Details
-
ND2Handler
-
ND2Handler
-
-
Method Details
-
getXFields
public int getXFields() -
getCoreMetadataList
-
populateROIs
-
getDate
-
getMetadata
-
getSeriesCount
public int getSeriesCount() -
isLossless
public boolean isLossless() -
getZSections
-
getTimepoints
-
getPixelSizeX
public double getPixelSizeX() -
getPixelSizeY
public double getPixelSizeY() -
getPixelSizeZ
public double getPixelSizeZ() -
getPinholeSize
-
getVoltage
-
getMagnification
-
getNumericalAperture
-
getObjectiveModel
-
getImmersion
-
getCorrection
-
getRefractiveIndex
-
getChannelNames
-
getModalities
-
getBinnings
-
getSpeeds
-
getGains
-
getTemperatures
-
getExposureTimes
-
getExcitationWavelengths
-
getEmissionWavelengths
-
getPowers
-
getROIs
-
getXPositions
-
getYPositions
-
getZPositions
-
getPositionNames
-
getCameraModel
-
getFieldIndex
public int getFieldIndex() -
getChannelColors
-
endElement
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
parseKeyAndValue
-
isDimensions
Returns whether or not the specified key is denotes dimensions. Full versions of Elements allow the user to choose a language, though it's not clear what all of the choices are. Most keys are always recorded in English, but some are recorded in the language specified by the user. -
parsePixelsSizeZFromKey
Parses the physical size from a key. The expected format for the key is "- Step".
-