public class MRectanglePoint extends MPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
MRectanglePoint.Sticky
Fixed rectangle point that can be a point of a polyline.
|
| Modifier and Type | Field and Description |
|---|---|
protected MRectangle |
parentRect |
protected byte |
positionInRect |
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT| Modifier | Constructor and Description |
|---|---|
protected |
MRectanglePoint(MRectangle r,
int i,
double x,
double y,
double z)
Contructs a rectangle corner point object.
|
protected |
MRectanglePoint(MRectanglePoint p)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify()
Point added to a document.
|
MRectanglePoint |
clone()
Creates a clone.
|
boolean |
equals(Object o)
Two rectangle points equal if their parent rectangles are the same
and they are on the same corner or edge.
|
MRectangle |
getParentRect()
Gets the parent rectangle.
|
int |
getPositionInRect()
Gets the position in the rectangle.
|
boolean |
isChildOf(MObject o)
Is this object a children of another one?
|
boolean |
isSelectableNow()
Is the object selectable now?
|
boolean |
isTransformable()
Is it a transformable object?
|
void |
removeNotify()
Point removed from a document.
|
void |
setLocation(DPoint3 p,
CTransform3D t)
Sets the coordinates.
|
String |
toString()
Overrides Object.toString() to ease debugging.
|
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Transforms all points.
|
calcCenter, distanceFrom, getLocation, getLocation, getLocation, getPoint, getPointCount, getPointRef, getPointRefCount, hashCode, isInternalSelectableaddAttributeKeys, addCdataAttributeKeys, addNotify, checkValidity, connectToSgroupOfAtom, containsAtom, containsPoint, distanceFrom, finishCloning, fixClonedPoints, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelected, makeColor, removeAtom, removeChild, removeNotify, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRect, updateBoundingRectprotected transient byte positionInRect
protected transient MRectangle parentRect
protected MRectanglePoint(MRectangle r, int i, double x, double y, double z)
r - the parent rectanglei - position on the rectangle (0-3)x - the x coordinatey - the y coordinatez - the z coordinateprotected MRectanglePoint(MRectanglePoint p)
p - the pointpublic boolean equals(Object o)
public MRectanglePoint clone()
MObjectpublic boolean isSelectableNow()
MObjectisSelectableNow in class MObjectpublic boolean isChildOf(MObject o)
public int getPositionInRect()
public MRectangle getParentRect()
public void removeNotify()
removeNotify in class MObjectpublic void setLocation(DPoint3 p, CTransform3D t)
setLocation in class MPointp - the new locationt - the viewing transformation or nullpublic void transform(CTransform3D t, int opts, CTransform3D trot)
transform in class MPointt - the transformation matrixopts - the optionstrot - the viewing transformation or nullMObject.TRANSFORM_DISTORTpublic String toString()
MObject@', and the unsigned hexadecimal representation
of the hash code of the object.public boolean isTransformable()
MObjectisTransformable in class MObject