org.jmol.modelset
Class MeasurementData

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

public class MeasurementData
extends java.lang.Object
implements JmolMeasurementClient


Field Summary
private  Atom[] atoms
           
private  JmolMeasurementClient client
           
 java.lang.Boolean intramolecular
           
 boolean isAll
           
private  java.util.List<java.lang.String> measurementStrings
           
 boolean mustBeConnected
           
 boolean mustNotBeConnected
           
 java.util.List<java.lang.Object> points
           
 RadiusData radiusData
           
 java.lang.String strFormat
           
 TickInfo tickInfo
           
 int tokAction
           
private  java.lang.String units
           
private  Viewer viewer
           
 
Constructor Summary
MeasurementData(java.util.List<java.lang.Object> points, int tokAction, RadiusData radiusData, java.lang.String strFormat, java.lang.String units, TickInfo tickInfo, boolean mustBeConnected, boolean mustNotBeConnected, java.lang.Boolean intramolecular, boolean isAll)
           
 
Method Summary
 void define(JmolMeasurementClient client, ModelSet modelSet)
          called by the client to generate a set of measurements
 java.util.List<java.lang.String> 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 java.util.List<java.lang.String> measurementStrings

atoms

private Atom[] atoms

mustBeConnected

public boolean mustBeConnected

mustNotBeConnected

public boolean mustNotBeConnected

tickInfo

public TickInfo tickInfo

tokAction

public int tokAction

points

public java.util.List<java.lang.Object> points

radiusData

public RadiusData radiusData

strFormat

public java.lang.String strFormat

isAll

public boolean isAll

units

private java.lang.String units

intramolecular

public java.lang.Boolean intramolecular

viewer

private Viewer viewer
Constructor Detail

MeasurementData

public MeasurementData(java.util.List<java.lang.Object> points,
                       int tokAction,
                       RadiusData radiusData,
                       java.lang.String strFormat,
                       java.lang.String units,
                       TickInfo tickInfo,
                       boolean mustBeConnected,
                       boolean mustNotBeConnected,
                       java.lang.Boolean intramolecular,
                       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 java.util.List<java.lang.String> getMeasurements(Viewer viewer)
if this is the client, then this method can be called to get the result vector

Parameters:
viewer -
Returns:
Vector 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 -