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 Details

  • Constructor Details

  • Method Details

    • getXFields

      public int getXFields()
    • getCoreMetadataList

      public CoreMetadataList getCoreMetadataList()
    • populateROIs

      public void populateROIs(MetadataStore store)
    • getDate

      public String getDate()
    • getMetadata

      public Hashtable<String,Object> getMetadata()
    • getSeriesCount

      public int getSeriesCount()
    • isLossless

      public boolean isLossless()
    • getZSections

      public ArrayList<Long> getZSections()
    • getTimepoints

      public ArrayList<Long> getTimepoints()
    • getPixelSizeX

      public double getPixelSizeX()
    • getPixelSizeY

      public double getPixelSizeY()
    • getPixelSizeZ

      public double getPixelSizeZ()
    • getPinholeSize

      public Double getPinholeSize()
    • getVoltage

      public Double getVoltage()
    • getMagnification

      public Double getMagnification()
    • getNumericalAperture

      public Double getNumericalAperture()
    • getObjectiveModel

      public String getObjectiveModel()
    • getImmersion

      public String getImmersion()
    • getCorrection

      public String getCorrection()
    • getRefractiveIndex

      public Double getRefractiveIndex()
    • getChannelNames

      public ArrayList<String> getChannelNames()
    • getModalities

      public ArrayList<String> getModalities()
    • getBinnings

      public ArrayList<String> getBinnings()
    • getSpeeds

      public ArrayList<Double> getSpeeds()
    • getGains

      public ArrayList<Double> getGains()
    • getTemperatures

      public ArrayList<Double> getTemperatures()
    • getExposureTimes

      public ArrayList<Double> getExposureTimes()
    • getExcitationWavelengths

      public ArrayList<Double> getExcitationWavelengths()
    • getEmissionWavelengths

      public ArrayList<Double> getEmissionWavelengths()
    • getPowers

      public ArrayList<Integer> getPowers()
    • getROIs

      public ArrayList<Hashtable<String,String>> getROIs()
    • getXPositions

      public ArrayList<ome.units.quantity.Length> getXPositions()
    • getYPositions

      public ArrayList<ome.units.quantity.Length> getYPositions()
    • getZPositions

      public ArrayList<ome.units.quantity.Length> getZPositions()
    • getPositionNames

      public ArrayList<String> getPositionNames()
    • getCameraModel

      public String getCameraModel()
    • getFieldIndex

      public int getFieldIndex()
    • getChannelColors

      public Hashtable<String,Integer> getChannelColors()
    • endElement

      public void endElement(String uri, String localName, String qName, Attributes attributes)
    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes)
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
    • endDocument

      public void endDocument()
      Specified by:
      endDocument in interface ContentHandler
      Overrides:
      endDocument in class DefaultHandler
    • parseKeyAndValue

      public void parseKeyAndValue(String key, String value, String runtype)
    • isDimensions

      public boolean isDimensions(String key)
      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

      private Double parsePixelsSizeZFromKey(String key)
      Parses the physical size from a key. The expected format for the key is "- Step ".