Class MAnalysisBox

All Implemented Interfaces:
Serializable, Cloneable

@PublicApi public class MAnalysisBox extends MTextBox
A special text box containing analysis results. It is associated with a molecule and contains a list of terms, which represent calculated values. For internal use only.
See Also:
  • Constructor Details

  • Method Details

    • getMolecule

      public Molecule getMolecule()
      Returns the molecule associated with this analysis box. For internal use only.
    • getTerms

      public List<MAnalysisBoxTerm> getTerms()
      Returns the terms of this analysis box. For internal use only.
    • setTerms

      public void setTerms(List<MAnalysisBoxTerm> terms)
      Sets the terms of this analysis box. For internal use only.
    • addAttributeKeys

      public void addAttributeKeys(List<String> l)
      Description copied from class: MTextBox
      Adds the attribute names to the specified list. CDATA attributes are not added.
      Overrides:
      addAttributeKeys in class MTextBox
      Parameters:
      l - the list
    • getAttribute

      public String getAttribute(String s)
      Description copied from class: MTextBox
      Gets the value of an attribute.
      Supported attributes:
      • cursorPosition: the position of the cursor in the text box
      • text: the content of the text box
      Overrides:
      getAttribute in class MTextBox
      Parameters:
      s - the attribute name
      Returns:
      the value or null
    • addCdataAttributeKeys

      public void addCdataAttributeKeys(List<String> l)
      Description copied from class: MTextBox
      Adds attribute names to the specified list. Only CDATA attributes are added.
      Overrides:
      addCdataAttributeKeys in class MTextBox
      Parameters:
      l - the list
    • setAttribute

      public void setAttribute(String s, String v)
      Description copied from class: MTextBox
      Sets the value of an attribute.
      Supported attributes:
      • cursorPosition: the position of the cursor in the text box
      • text: the content of the text box
      Overrides:
      setAttribute in class MTextBox
      Parameters:
      s - the attribute name
      v - the attribute value
    • finishCloning

      public void finishCloning(MDocument olddoc, MDocument newdoc)
      Description copied from class: MPolyline
      Finish cloning a document.
      Overrides:
      finishCloning in class MPolyline
    • clone

      public MAnalysisBox clone()
      Description copied from class: MObject
      Creates a clone.
      Overrides:
      clone in class MTextBox
      Returns:
      the clone
    • isEditable

      public boolean isEditable()
      Description copied from class: MTextBox
      Determines if this text box's content can be edited by the user.
      Overrides:
      isEditable in class MTextBox
      Returns:
      true if the content can be edited, false otherwise