org.jmol.modelset
Class MeasurementData

java.lang.Object
  extended by org.jmol.modelset.MeasurementData
All Implemented Interfaces:
JmolMeasurementClient

public class MeasurementData
extends Object
implements JmolMeasurementClient


Field Summary
private  Atom[] atoms
           
private  JmolMeasurementClient client
           
 boolean isAll
           
private  List measurementStrings
           
 boolean mustBeConnected
           
 boolean mustNotBeConnected
           
 List points
           
 float[] rangeMinMax
           
 String strFormat
           
 TickInfo tickInfo
           
 int tokAction
           
private  String units
           
private  Viewer viewer
           
 
Constructor Summary
MeasurementData(List points, int tokAction, float[] rangeMinMax, String strFormat, String units, TickInfo tickInfo, boolean mustBeConnected, boolean mustNotBeConnected, boolean isAll)
           
 
Method Summary
 void define(JmolMeasurementClient client, ModelSet modelSet)
          called by the client to generate a set of measurements
 List getMeasurements(Viewer viewer)
          if this is the client, then this method can be called to get the result vector
private  void nextMeasure(int thispt, int ptLastAtom, Measurement m, int thisModel)
          iterator for measurements
 void processNextMeasure(Measurement m)
          if this is the client, then this method is called by MeasurementData when a measurement is ready
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private JmolMeasurementClient client

measurementStrings

private List measurementStrings

atoms

private Atom[] atoms

mustBeConnected

public boolean mustBeConnected

mustNotBeConnected

public boolean mustNotBeConnected

tickInfo

public TickInfo tickInfo

tokAction

public int tokAction

points

public List points

rangeMinMax

public float[] rangeMinMax

strFormat

public String strFormat

isAll

public boolean isAll

units

private String units

viewer

private Viewer viewer
Constructor Detail

MeasurementData

public MeasurementData(List points,
                       int tokAction,
                       float[] rangeMinMax,
                       String strFormat,
                       String units,
                       TickInfo tickInfo,
                       boolean mustBeConnected,
                       boolean mustNotBeConnected,
                       boolean isAll)
Method Detail

processNextMeasure

public void processNextMeasure(Measurement m)
if this is the client, then this method is called by MeasurementData when a measurement is ready

Specified by:
processNextMeasure in interface JmolMeasurementClient
Parameters:
m -

getMeasurements

public List getMeasurements(Viewer viewer)
if this is the client, then this method can be called to get the result vector

Parameters:
viewer -
Returns:
List of formatted Strings

define

public void define(JmolMeasurementClient client,
                   ModelSet modelSet)
called by the client to generate a set of measurements

Parameters:
client - or null to specify this to be our own client
modelSet -

nextMeasure

private void nextMeasure(int thispt,
                         int ptLastAtom,
                         Measurement m,
                         int thisModel)
iterator for measurements

Parameters:
thispt -
ptLastAtom -
m -
thisModel -