|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.struc.MObject
chemaxon.struc.graphics.MPolyline
chemaxon.struc.graphics.MRectangle
chemaxon.struc.graphics.MBracket
public class MBracket
Bracket object.
Field Summary | |
---|---|
static int |
T_BRACES
Braces. |
static int |
T_CHEVRONS
Chevrons. |
static int |
T_DOUBLE
The bracket has two sides. |
static int |
T_ROUND
Round bracket type (parenthesis). |
static int |
T_SINGLE
The bracket has one side. |
static int |
T_SQUARE
Square bracket type. |
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_THICKNESS, HEAD, points, TAIL, THICKNESS_SET_FLAG |
Fields inherited from class chemaxon.struc.MObject |
---|
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT |
Constructor Summary | |
---|---|
|
MBracket()
Constructs a bracket. |
protected |
MBracket(MBracket r)
Copy constructor. |
|
MBracket(MPoint p1,
MPoint p2)
Constructs a bracket with the specified corner points. |
|
MBracket(MPoint p1,
MPoint p2,
java.awt.Color c)
Constructs a bracket with the specified corner points and color. |
Method Summary | |
---|---|
void |
addAttributeKeys(java.util.List<java.lang.String> l)
Adds the attribute names to the specified list. |
java.lang.Object |
clone()
Creates a clone. |
void |
copyProperties(MBracket l)
Copies line properties to another line object. |
boolean |
enclosesPoint(double x,
double y)
Checks if a specified point is enclosed by this bracket. |
java.lang.String |
getAttribute(java.lang.String s)
Gets the value of an attribute. |
int |
getBracketOrientation()
Gets the orientation of the bracket. |
int |
getType()
Gets the bracket type. |
MPoint |
getVisiblePointRef(int index,
CTransform3D trot)
Gets an internal selectable point of the rectangle.that is visible when highlighting. |
int |
getVisiblePointRefCount()
Gets the number of internal selectable point references that are visible when highlighting. |
boolean |
hasBackground()
A bracket has no background. |
void |
setAttribute(java.lang.String s,
java.lang.String v)
Sets the value of an attribute. |
void |
setBracketOrientation(int bracketOrientation)
Sets the orientation of the bracket. |
void |
setType(int t)
Sets the bracket type. |
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Transforms the bracket. |
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, finishCloning, fixMidPointClones, getArcAngle, getArcCenter, getArcRadius, getArcRadius, getArrowFlags, getArrowLength, getArrowWidth, getFlags, getMidPointLocation, getMirroredArrowFlags, getPoint, getPointCount, getPoints, getSkip, getThickness, hasColor, hasFace, hasLineColor, hasOutline, isArrow, isEmpty, isThicknessSet, replaceAtom, reverse, rotate, setArcAngle, setArrow, setArrowFlags, setArrowLength, setArrowWidth, setFlags, setPoints, setSkip, setThickness, unselectContents, updateBoundingRect |
Methods inherited from class chemaxon.struc.MObject |
---|
addCdataAttributeKeys, addNotify, containsPoint, distanceFrom, getBackground, getColor, getLineColor, isChildOf, isInternalSelectable, isReactionArrow, isSelectableNow, isSelected, isTransformable, makeColor, removeAtom, removeNotify, setBackground, setColor, setLineColor, setSelected, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int T_ROUND
public static final int T_SQUARE
public static final int T_BRACES
public static final int T_CHEVRONS
public static final int T_SINGLE
public static final int T_DOUBLE
Constructor Detail |
---|
public MBracket()
public MBracket(MPoint p1, MPoint p2)
p1
- the top left cornerp2
- the bottom right cornerpublic MBracket(MPoint p1, MPoint p2, java.awt.Color c)
p1
- the top left cornerp2
- the bottom right cornerc
- the colorprotected MBracket(MBracket r)
r
- the original bracketMethod Detail |
---|
public boolean hasBackground()
hasBackground
in class MPolyline
public void copyProperties(MBracket l)
l
- the other linepublic int getType()
T_SQUARE
,
T_ROUND
,
T_BRACES
,
T_CHEVRONS
public void setType(int t)
t
- the typeT_SQUARE
,
T_ROUND
,
T_BRACES
,
T_CHEVRONS
public java.lang.Object clone()
MObject
clone
in class MRectangle
public void transform(CTransform3D t, int opts, CTransform3D trot)
transform
in class MRectangle
t
- the transformation matrixopts
- transform options or 0trot
- the viewing transformation or nullMObject.TRANSFORM_DISTORT
public void addAttributeKeys(java.util.List<java.lang.String> l)
addAttributeKeys
in class MRectangle
l
- the listpublic java.lang.String getAttribute(java.lang.String s)
getAttribute
in class MRectangle
s
- the attribute name
public void setAttribute(java.lang.String s, java.lang.String v)
setAttribute
in class MRectangle
s
- the attribute namev
- the attribute valuepublic int getBracketOrientation()
T_SINGLE
,
T_DOUBLE
public void setBracketOrientation(int bracketOrientation)
bracketOrientation
- T_SINGLE
,
T_DOUBLE
public boolean enclosesPoint(double x, double y)
x
- the x coordinate of the point to be testedy
- the y coordinate of the point to be tested
public int getVisiblePointRefCount()
public MPoint getVisiblePointRef(int index, CTransform3D trot)
index
- the point indextrot
- the viewing transformation or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |