Class LabelToken
java.lang.Object
org.jmol.modelset.LabelToken
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelToken[]Compiles a set of tokens for each primitive element of a label.formatLabel(Viewer vwr, Atom atom, String strFormat, P3 ptTemp) ///////// label formatting for atoms, bonds, and measurements ///////////static StringformatLabelAtomArray(Viewer vwr, Atom atom, LabelToken[] tokens, char chAtom, int[] indices, P3 ptTemp) returns a formatted string based on the precompiled label tokensstatic StringformatLabelBond(Viewer vwr, Bond bond, LabelToken[] tokens, Map<String, Object> values, int[] indices, P3 ptTemp) static StringformatLabelMeasure(Viewer vwr, Measurement m, String label, float value, String units) static StringgetLabel(LabelToken[] tokens) static voidsetValues(LabelToken[] tokens, Map<String, Object> values)
-
Field Details
-
STANDARD_LABEL
- See Also:
-
-
Constructor Details
-
LabelToken
public LabelToken()
-
-
Method Details
-
compile
-
formatLabel
-
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
-
formatLabelBond
-
formatLabelMeasure
public static String formatLabelMeasure(Viewer vwr, Measurement m, String label, float value, String units) -
setValues
-
getLabel
-