Package chemaxon.struc.graphics
Class MReactionSign
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.graphics.MPolyline
chemaxon.struc.graphics.MRectangle
chemaxon.struc.graphics.MTextBox
chemaxon.struc.graphics.MReactionSign
- All Implemented Interfaces:
Serializable
,Cloneable
Special MTextBox desdendant for displaying Reaction signs.
The text is always a "+" sign no changes are permitted.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChar
(char c) Adds a character to the text.void
void
Adds a string to the text.int
Gets the number of internal selectable point references.void
insertDocument
(MTextDocument document) Inserts document at the current cursor position.boolean
Is the object selectable now?void
setAttribute
(String s, String v) Sets the value of an attribute.void
Sets the text.void
updateBoundingRect
(double[] xyminm, CTransform3D pretrf) Calculate the bounding rectangle.void
wrapTextAndSetActualPoints
(CTransform3D transform, double scale) Methods inherited from class chemaxon.struc.graphics.MTextBox
addAttributeKeys, addCdataAttributeKeys, clearLines, clone, cursorDown, cursorLeft, cursorRight, cursorToRowEnd, cursorToRowStart, cursorUp, deleteChar, deleteCharBackward, determinePosition, determinePosition, getActionMap, getAttribute, 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, isAutoHeight, isAutoSize, isCurrentFontDefault, isCurrentFontRegular, isEditable, isEmpty, isMinimumHeightSet, setActionMap, setAutoHeight, setAutoSize, setBaseFontFamily, setBaseFontStyle, setCurrentDefaultFontMetrics, setCurrentFont, setCurrentForeground, setCurrentHeight, setCurrentTextAttributes, setCurrentWidth, setCursorPos, setCursorRow, setDocument, setFontScale, setHorizontalAlignment, setMinimumHeight, setMinimumHeightSet, setPoints, setRowAndColumn0, setSelected, setVerticalAlignment, transform, unselectContents
Methods inherited from class chemaxon.struc.graphics.MRectangle
calcCenter, convertTransform, distanceFrom, fixClonedPoints, fixRectanglePointClones, getClip, getPointRef, getTCenter, getTOption, removeChild, setCorners, setTCenter, setTOption, transformTo2D
Methods inherited from class chemaxon.struc.graphics.MPolyline
checkValidity, containsAtom, copyProperties, finishCloning, 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
Methods inherited from class chemaxon.struc.MObject
addNotify, connectToSgroupOfAtom, containsPoint, distanceFrom, getBackground, getColor, getContainerMObject, getLineColor, isChildOf, isInternalSelectable, isReactionArrow, isSelected, isTransformable, makeColor, removeAtom, setBackground, setColor, setLineColor, toString, updateBoundingRect
-
Constructor Details
-
MReactionSign
public MReactionSign() -
MReactionSign
-
-
Method Details
-
setText
Description copied from class:MTextBox
Sets the text. -
addString
Description copied from class:MTextBox
Adds a string to the text. -
addChar
public void addChar(char c) Description copied from class:MTextBox
Adds a character to the text. -
addLine
-
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
-
insertDocument
Description copied from class:MTextBox
Inserts document at the current cursor position. Style of the source is preserved.- Overrides:
insertDocument
in classMTextBox
-
updateBoundingRect
Description copied from class:MPolyline
Calculate the bounding rectangle.- Overrides:
updateBoundingRect
in classMPolyline
- Parameters:
xyminm
- array containing the current minimum x, y and maximum x, y coordinatespretrf
- transformation matrix
-
wrapTextAndSetActualPoints
- Overrides:
wrapTextAndSetActualPoints
in classMTextBox
-
getPointRefCount
public int getPointRefCount()Description copied from class:MRectangle
Gets the number of internal selectable point references.- Overrides:
getPointRefCount
in classMRectangle
- Returns:
- 8
-
isSelectableNow
public boolean isSelectableNow()Description copied from class:MObject
Is the object selectable now?- Overrides:
isSelectableNow
in classMObject
- Returns:
- true for ordinary objects, false for some internal selectables
-