public class MRoundedRectangle extends MRectangle
P_CENTER, P_E, P_N, P_NE, P_NW, P_S, P_SE, P_SW, P_W, T_NOROTARROW_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_FLAGPAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT| Modifier | Constructor and Description |
|---|---|
|
MRoundedRectangle()
Constructs a rounded rectangle
|
|
MRoundedRectangle(MPoint p1,
MPoint p2)
Constructs a rounded rectangle with the specified corner points.
|
|
MRoundedRectangle(MPoint p1,
MPoint p2,
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,
Color c)
Constructs a rounded rectangle with the specified corner points and color.
|
protected |
MRoundedRectangle(MRoundedRectangle rr)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeKeys(List<String> l)
Adds the attribute names to the specified vector.
|
MRoundedRectangle |
clone()
Creates a clone.
|
boolean |
containsPoint(DPoint3 p,
CTransform3D trot) |
void |
correctCornersRadius(double aw,
double ah) |
double |
getArcHeight() |
double |
getArcWidth() |
String |
getAttribute(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(String s,
String v)
Sets the value of an attribute.
|
void |
setCornersRadius(double aw,
double ah) |
calcCenter, convertTransform, distanceFrom, fixClonedPoints, fixRectanglePointClones, getClip, getTCenter, getTOption, removeChild, setCorners, setTCenter, setTOption, transform, transformTo2DcheckValidity, containsAtom, copyProperties, finishCloning, fixMidPointClones, getArcAngle, getArcCenter, getArcRadius, getArcRadius, getArrowFlags, getArrowLength, getArrowWidth, getFlags, getLineMiddlePoint, getMidPointLocation, getMirroredArrowFlags, getPoint, getPointCount, getPoints, getSkip, getThickness, hasBackground, hasColor, hasFace, hasLineColor, hasOutline, isArrow, isEmpty, isThicknessSet, removeNotify, replaceAtom, reverse, rotate, setArcAngle, setArrow, setArrowFlags, setArrowLength, setArrowWidth, setFlags, setPoints, setSkip, setThickness, unselectContents, updateBoundingRectaddCdataAttributeKeys, addNotify, addNotify, connectToSgroupOfAtom, distanceFrom, getBackground, getColor, getLineColor, isChildOf, isInternalSelectable, isReactionArrow, isSelectableNow, isSelected, isTransformable, makeColor, removeAtom, removeNotify, setBackground, setColor, setLineColor, setSelected, toString, updateBoundingRectpublic MRoundedRectangle()
public MRoundedRectangle(MPoint p1, MPoint p2)
p1 - the top left cornerp2 - the bottom right cornerpublic 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 ellipsepublic MRoundedRectangle(MPoint p1, MPoint p2, Color c)
p1 - the top left cornerp2 - the bottom right cornerc - the colorpublic MRoundedRectangle(MPoint p1, MPoint p2, double aw, double ah, 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 rectanglepublic MRoundedRectangle clone()
MObjectclone 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(List<String> l)
addAttributeKeys in class MRectanglel - the list of attributespublic String getAttribute(String s)
getAttribute in class MRectangles - the attribute namepublic void setAttribute(String s, String v)
setAttribute in class MRectangles - the attribute namev - the attribute valuepublic boolean containsPoint(DPoint3 p, CTransform3D trot)
containsPoint in class MObjectpublic int getPointRefCount()
getPointRefCount in class MRectanglepublic MPoint getPointRef(int i, CTransform3D trot)
getPointRef in class MRectanglei - the point indextrot - the viewing transformation or nullpublic MPoint getInnerPointRef(int i, CTransform3D trot)