|
|||||||||
| 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.MRoundedRectangle
public class MRoundedRectangle
Rounded rectangle object.
| Field Summary |
|---|
| 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_HALF_LEFT, ARROW_HALF_MASK, ARROW_HALF_RIGHT, 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 | |
|---|---|
|
MRoundedRectangle()
Constructs a rounded rectangle |
|
MRoundedRectangle(MPoint p1,
MPoint p2)
Constructs a rounded rectangle with the specified corner points. |
|
MRoundedRectangle(MPoint p1,
MPoint p2,
java.awt.Color c)
Constructs a rounded rectangle with the specified corner points and color. |
|
MRoundedRectangle(MPoint p1,
MPoint p2,
double aw,
double ah)
Constructs a rounded rectangle with the specified corner points. |
|
MRoundedRectangle(MPoint p1,
MPoint p2,
double aw,
double ah,
java.awt.Color c)
Constructs a rounded rectangle with the specified corner points and color. |
protected |
MRoundedRectangle(MRoundedRectangle rr)
Copy constructor. |
| Method Summary | |
|---|---|
void |
addAttributeKeys(java.util.List<java.lang.String> l)
Adds the attribute names to the specified vector. |
java.lang.Object |
clone()
Creates a clone. |
boolean |
containsPoint(DPoint3 p,
CTransform3D trot)
|
void |
correctCornersRadius(double aw,
double ah)
|
double |
getArcHeight()
|
double |
getArcWidth()
|
java.lang.String |
getAttribute(java.lang.String s)
Gets the value of an attribute. |
MPoint |
getInnerPointRef(int i,
CTransform3D trot)
|
MPoint |
getPointRef(int i,
CTransform3D trot)
Gets an internal selectable point of the rectangle. |
int |
getPointRefCount()
Gets the number of internal selectable point references. |
void |
setArcHeight(double ah)
|
void |
setArcWidth(double aw)
|
void |
setAttribute(java.lang.String s,
java.lang.String v)
Sets the value of an attribute. |
void |
setCornersRadius(double aw,
double ah)
|
| Methods inherited from class chemaxon.struc.graphics.MRectangle |
|---|
calcCenter, convertTransform, distanceFrom, fixClonedPoints, fixRectanglePointClones, getClip, getTCenter, getTOption, removeChild, setCorners, setTCenter, setTOption, transform, 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, hasBackground, 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, 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 |
| Constructor Detail |
|---|
public MRoundedRectangle()
public MRoundedRectangle(MPoint p1,
MPoint p2)
p1 - the top left cornerp2 - the bottom right corner
public MRoundedRectangle(MPoint p1,
MPoint p2,
double aw,
double ah)
p1 - the top left cornerp2 - the bottom right corneraw - the width of the corner's ellipseah - the height of the corner's ellipse
public MRoundedRectangle(MPoint p1,
MPoint p2,
java.awt.Color c)
p1 - the top left cornerp2 - the bottom right cornerc - the color
public MRoundedRectangle(MPoint p1,
MPoint p2,
double aw,
double ah,
java.awt.Color c)
p1 - the top left cornerp2 - the bottom right corneraw - the width of the corner's ellipseah - the height of the corner's ellipsec - the colorprotected MRoundedRectangle(MRoundedRectangle rr)
rr - the original rounded rectangle| Method Detail |
|---|
public java.lang.Object clone()
MObject
clone in class MRectanglepublic void setArcWidth(double aw)
public void setArcHeight(double ah)
public double getArcWidth()
public double getArcHeight()
public void setCornersRadius(double aw,
double ah)
public void correctCornersRadius(double aw,
double ah)
public void addAttributeKeys(java.util.List<java.lang.String> l)
addAttributeKeys in class MRectanglel - the list of attributespublic java.lang.String getAttribute(java.lang.String s)
getAttribute in class MRectangles - the attribute name
public void setAttribute(java.lang.String s,
java.lang.String v)
setAttribute in class MRectangles - the attribute namev - the attribute value
public boolean containsPoint(DPoint3 p,
CTransform3D trot)
containsPoint in class MObjectpublic int getPointRefCount()
getPointRefCount in class MRectangle
public MPoint getPointRef(int i,
CTransform3D trot)
getPointRef in class MRectanglei - the point indextrot - the viewing transformation or null
public MPoint getInnerPointRef(int i,
CTransform3D trot)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||