Class MAnalysisBox

All Implemented Interfaces:
Serializable, Cloneable

@PublicApi public class MAnalysisBox extends MTextBox
See Also:
  • Constructor Details

    • MAnalysisBox

      public MAnalysisBox(Molecule m, List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm> terms)
      Constructor. For internal use only.
  • Method Details

    • getMolecule

      public Molecule getMolecule()
    • setTerms

      public void setTerms(List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm> terms)
    • getTerms

      public List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm> getTerms()
    • 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
    • getTermsFromString

      public static List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm> getTermsFromString(String v)
    • finishCloning

      public void finishCloning(MDocument olddoc, MDocument newdoc)
      Finish cloning a document. Called by the copy constructor.
      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
    • cloneAsMTextBox

      public MTextBox cloneAsMTextBox()
    • 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