Package chemaxon.struc.graphics
Class MAnalysisBox
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.graphics.MPolyline
chemaxon.struc.graphics.MRectangle
chemaxon.struc.graphics.MTextBox
chemaxon.struc.graphics.MAnalysisBox
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class chemaxon.struc.graphics.MTextBox
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, FONT_DEFAULT_SCALE
Fields inherited from class chemaxon.struc.graphics.MRectangle
P_CENTER, P_E, P_N, P_NE, P_NW, P_S, P_SE, P_SW, P_W, T_NOROT
Fields inherited from class chemaxon.struc.graphics.MPolyline
ARROW_BACK_FLAG, ARROW_CROSSED_FLAG, ARROW_CURVED_FLAG, ARROW_DASHED_FLAG, ARROW_EQUILIBRIUM_FLAG, ARROW_GROUP1_MASK, ARROW_GROUP2_MASK, ARROW_HALF_LEFT, ARROW_HALF_MASK, ARROW_HALF_RIGHT, ARROW_RETROSYNTHETIC_FLAG, arrowFlags, CLOSED_FLAG, DEFAULT_ARROW_HEAD_LENGTH, DEFAULT_ARROW_HEAD_WIDTH, DEFAULT_EQUILIBRIUM_HEAD_WIDTH, DEFAULT_MAX_CROSS_SIZE, DEFAULT_RETROSYNTHETIC_HEAD_WIDTH, DEFAULT_THICKNESS, HEAD, points, TAIL, THICKNESS_SET_FLAG
Fields inherited from class chemaxon.struc.MObject
TRANSFORM_DISTORT
-
Constructor Summary
ConstructorDescriptionMAnalysisBox
(Molecule m, List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm> terms) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the attribute names to the specified list.void
Adds attribute names to the specified list.clone()
Creates a clone.void
finishCloning
(MDocument olddoc, MDocument newdoc) Finish cloning a document.Gets the value of an attribute.List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm>
getTerms()
static List<chemaxon.struc.graphics.analysis.MAnalysisBoxTerm>
boolean
Determines if this text box's content can be edited by the user.void
setAttribute
(String s, String v) Sets the value of an attribute.void
Methods inherited from class chemaxon.struc.graphics.MTextBox
addChar, addLine, addString, clearLines, cursorDown, cursorLeft, cursorRight, cursorToRowEnd, cursorToRowStart, cursorUp, deleteChar, deleteCharBackward, determinePosition, determinePosition, getActionMap, getBaseFont, getBaseFontFamily, getBaseFontStyle, getBreakingChars, getCurrentDefaultFontMetrics, getCurrentForeground, getCurrentHeight, getCurrentScriptCount, getCurrentSubLevel, getCurrentTextAttributes, getCurrentWidth, getCursorColumn, getCursorPos, getCursorRow, getFontScale, getHorizontalAlignment, getLine, getLineCount, getMinimumHeight, getPreBreakingChars, getPreviousNormalTextSectionIndex, getSelectedDocument, getSelectedString, getSelectionEndColumn, getSelectionEndPos, getSelectionEndRow, getSelectionStartColumn, getSelectionStartPos, getSelectionStartRow, getText, getTextAttributesAtCursor, getTextDocument, getVerticalAlignment, hasBackground, hasColor, hasFace, hasRichText, hasSelection, insertDocument, isAutoHeight, isAutoSize, isCurrentFontDefault, isCurrentFontRegular, isEmpty, isMinimumHeightSet, setActionMap, setAutoHeight, setAutoSize, setBaseFontFamily, setBaseFontStyle, setCurrentDefaultFontMetrics, setCurrentFont, setCurrentForeground, setCurrentHeight, setCurrentTextAttributes, setCurrentWidth, setCursorPos, setCursorRow, setDocument, setFontScale, setHorizontalAlignment, setMinimumHeight, setMinimumHeightSet, setPoints, setRowAndColumn0, setSelected, setText, setVerticalAlignment, transform, unselectContents, wrapTextAndSetActualPoints
Methods inherited from class chemaxon.struc.graphics.MRectangle
calcCenter, convertTransform, distanceFrom, fixClonedPoints, fixRectanglePointClones, getClip, getPointRef, getPointRefCount, getTCenter, getTOption, removeChild, setCorners, setTCenter, setTOption, transformTo2D
Methods inherited from class chemaxon.struc.graphics.MPolyline
checkValidity, containsAtom, copyProperties, fixMidPointClones, getArcAngle, getArcCenter, getArcRadius, getArcRadius, getArrowFlags, getArrowLength, getArrowWidth, getFlags, getLineMiddlePoint, getMidPointLocation, getMirroredArrowFlags, getPoint, getPointCount, getPoints, getSkip, getThickness, hasLineColor, hasOutline, isArrow, isThicknessSet, removeNotify, replaceAtom, reverse, rotate, setArcAngle, setArrow, setArrowFlags, setArrowLength, setArrowWidth, setFlags, setSkip, setThickness, updateBoundingRect
Methods inherited from class chemaxon.struc.MObject
addNotify, connectToSgroupOfAtom, containsPoint, distanceFrom, getBackground, getColor, getContainerMObject, getLineColor, isChildOf, isInternalSelectable, isReactionArrow, isSelectableNow, isSelected, isTransformable, makeColor, removeAtom, setBackground, setColor, setLineColor, toString, updateBoundingRect
-
Constructor Details
-
MAnalysisBox
Constructor. For internal use only.
-
-
Method Details
-
getMolecule
-
setTerms
-
getTerms
-
addAttributeKeys
Description copied from class:MTextBox
Adds the attribute names to the specified list. CDATA attributes are not added.- Overrides:
addAttributeKeys
in classMTextBox
- Parameters:
l
- the list
-
getAttribute
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 classMTextBox
- Parameters:
s
- the attribute name- Returns:
- the value or null
-
addCdataAttributeKeys
Description copied from class:MTextBox
Adds attribute names to the specified list. Only CDATA attributes are added.- Overrides:
addCdataAttributeKeys
in classMTextBox
- Parameters:
l
- the list
-
setAttribute
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 classMTextBox
- Parameters:
s
- the attribute namev
- the attribute value
-
getTermsFromString
-
finishCloning
Finish cloning a document. Called by the copy constructor.- Overrides:
finishCloning
in classMPolyline
-
clone
Description copied from class:MObject
Creates a clone. -
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 classMTextBox
- Returns:
- true if the content can be edited, false otherwise
-