visad.data.biorad
Class BioRadNote

java.lang.Object
  extended by visad.data.biorad.BioRadNote

public class BioRadNote
extends java.lang.Object

A Bio-Rad note object.


Field Summary
static int HORIZ_UNIT
          Indicates that a Unit for the horizontal axis was computed.
static int INVALID_NOTE
          Indicates that this note is invalid.
static int METADATA
          Indicates that a VisAD Data object was computed.
static Unit micron
          Distance unit.
static int NO_INFORMATION
          Indicates that no information could be extracted from this note.
static Unit second
          Time unit.
static int VERT_UNIT
          Indicates that a Unit for the vertical axis was computed.
 
Constructor Summary
BioRadNote(int level, int num, int status, int type, int x, int y, java.lang.String text)
          Constructs a new Bio-Rad note object.
 
Method Summary
 int analyze()
          Extracts information from this Bio-Rad note.
 DataImpl getNoteData()
          Gets a simple VisAD Data object representing this note.
static BioRadNote getUnitNote(Unit u, Linear1DSet set, boolean xAxis)
          Converts a VisAD Unit and Linear1DSet to a BioRad note.
 boolean hasUnitInfo()
          Whether this note has information about pixel spacing in microns.
 java.lang.String toString()
          Gets a human-readable string representation of this note.
 void write(java.io.DataOutputStream out, boolean more)
          Outputs this note to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

micron

public static final Unit micron
Distance unit.


second

public static final Unit second
Time unit.


NO_INFORMATION

public static final int NO_INFORMATION
Indicates that no information could be extracted from this note.

See Also:
Constant Field Values

METADATA

public static final int METADATA
Indicates that a VisAD Data object was computed.

See Also:
Constant Field Values

HORIZ_UNIT

public static final int HORIZ_UNIT
Indicates that a Unit for the horizontal axis was computed.

See Also:
Constant Field Values

VERT_UNIT

public static final int VERT_UNIT
Indicates that a Unit for the vertical axis was computed.

See Also:
Constant Field Values

INVALID_NOTE

public static final int INVALID_NOTE
Indicates that this note is invalid.

See Also:
Constant Field Values
Constructor Detail

BioRadNote

public BioRadNote(int level,
                  int num,
                  int status,
                  int type,
                  int x,
                  int y,
                  java.lang.String text)
Constructs a new Bio-Rad note object.

Method Detail

getNoteData

public DataImpl getNoteData()
Gets a simple VisAD Data object representing this note.


hasUnitInfo

public boolean hasUnitInfo()
Whether this note has information about pixel spacing in microns.


analyze

public int analyze()
Extracts information from this Bio-Rad note.


write

public void write(java.io.DataOutputStream out,
                  boolean more)
           throws java.io.IOException
Outputs this note to the given output stream.

Parameters:
more - Whether another note will be written to the stream after this one.
Throws:
java.io.IOException

toString

public java.lang.String toString()
Gets a human-readable string representation of this note.

Overrides:
toString in class java.lang.Object

getUnitNote

public static BioRadNote getUnitNote(Unit u,
                                     Linear1DSet set,
                                     boolean xAxis)
Converts a VisAD Unit and Linear1DSet to a BioRad note.