Package org.jmol.modelset

Examples of org.jmol.modelset.MeasurementData


      if (nPoints < 2 || nPoints > 4 || rPt > 2 || isNotConnected
          && isAllConnected)
        return false;
      if (isNull)
        return addX("");
      MeasurementData md = new MeasurementData(points, 0, rangeMinMax,
          strFormat, units, null, isAllConnected, isNotConnected, true);
      return addX(md.getMeasurements(viewer));
    case Token.angle:
      if ((nPoints = args.length) != 3 && nPoints != 4)
        return false;
      break;
    default: // distance
View Full Code Here


      return;
    if (value != null || tickInfo != null) {
      if (value == null)
        tickInfo.id = "default";
      setShapeProperty(JmolConstants.SHAPE_MEASURES, "measure",
          new MeasurementData(points, tokAction, rangeMinMax, strFormat, null,
              tickInfo, isAllConnected, isNotConnected, isAll));
      return;
    }
    switch (tokAction) {
    case Token.delete:
View Full Code Here

        v[0] = len;
        System.arraycopy(maps[i], 0, v, 1, len);
        toggleOn((int[]) v);
      }
    } else if ("measure" == propertyName) {
      MeasurementData md = (MeasurementData) value;
      tickInfo = md.tickInfo;
      if (md.tickInfo != null && md.tickInfo.id.equals("default")) {
        defaultTickInfo = md.tickInfo;
        return;
      }
View Full Code Here

      int atomIndex = m.getAtomIndex(i);
      points.add(atomIndex >= 0 ? (Object) viewer.getAtomBits(
          Token.atomno, new Integer(atoms[atomIndex].getAtomNumber()))
          : (Object) m.getAtom(i));
    }
    MeasurementData md = new MeasurementData(points,
                   tokAction,
                   rangeMinMax,
                   strFormat, null,
                   tickInfo,
                   mustBeConnected,
View Full Code Here

TOP

Related Classes of org.jmol.modelset.MeasurementData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.