Class LabelToken

java.lang.Object
org.jmol.modelset.LabelToken

public class LabelToken extends Object
  • Field Details

  • Constructor Details

    • LabelToken

      public LabelToken()
  • Method Details

    • compile

      public static LabelToken[] compile(Viewer vwr, String strFormat, char chAtom, Map<String,Object> htValues)
      Compiles a set of tokens for each primitive element of a label. This is the efficient way to create a set of labels.
      Parameters:
      vwr -
      strFormat -
      chAtom -
      htValues -
      Returns:
      array of tokens
    • formatLabel

      public String formatLabel(Viewer vwr, Atom atom, String strFormat, P3 ptTemp)
    • formatLabelAtomArray

      public static String formatLabelAtomArray(Viewer vwr, Atom atom, LabelToken[] tokens, char chAtom, int[] indices, P3 ptTemp)
      returns a formatted string based on the precompiled label tokens
      Parameters:
      vwr -
      atom -
      tokens -
      chAtom -
      indices -
      ptTemp -
      Returns:
      formatted string
    • getBondLabelValues

      public static Map<String,Object> getBondLabelValues()
    • formatLabelBond

      public static String formatLabelBond(Viewer vwr, Bond bond, LabelToken[] tokens, Map<String,Object> values, int[] indices, P3 ptTemp)
    • formatLabelMeasure

      public static String formatLabelMeasure(Viewer vwr, Measurement m, String label, float value, String units)
    • setValues

      public static void setValues(LabelToken[] tokens, Map<String,Object> values)
    • getLabel

      public static String getLabel(LabelToken[] tokens)