org.jmol.modelset
Class MeasurementData
java.lang.Object
org.jmol.modelset.MeasurementData
- All Implemented Interfaces:
- JmolMeasurementClient
public class MeasurementData
- extends java.lang.Object
- implements JmolMeasurementClient
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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 clientmodelSet
-
nextMeasure
private void nextMeasure(int thispt,
int ptLastAtom,
Measurement m,
int thisModel)
- iterator for measurements
- Parameters:
thispt
- ptLastAtom
- m
- thisModel
-