public class MMidPoint extends MPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
MMidPoint.Sticky
Fixed middle point that can be a point of a polyline.
|
| Modifier and Type | Field and Description |
|---|---|
protected MPolyline |
parentLine |
protected int |
polylinePointIndex |
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT| Modifier | Constructor and Description |
|---|---|
protected |
MMidPoint(MMidPoint p)
Copy constructor.
|
protected |
MMidPoint(MPolyline l,
int i,
double x,
double y,
double z)
Contructs a middle point object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify()
Point added to a document.
|
MMidPoint |
clone()
Creates a clone.
|
boolean |
equals(Object o)
Two midpoints equal if their parent lines are the same
and the polyline point indices also equal.
|
protected void |
getFixedLocation(DPoint3 q,
CTransform3D t)
Gets the fixed location in the polyline.
|
void |
getLocation(DPoint3 q,
CTransform3D t)
Gets the location.
|
MPolyline |
getParentLine()
Gets the parent line.
|
int |
getPositionInPolyline()
Gets the position in the polyline.
|
boolean |
isChildOf(MObject o)
Is this object a children of another one?
|
boolean |
isSelectableNow()
Is the object selectable now?
|
void |
removeNotify()
Point removed from a document.
|
void |
setLocation(DPoint3 p,
CTransform3D trot)
Sets the location
|
String |
toString()
Overrides Object.toString() to ease debugging.
|
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Transforms all points.
|
calcCenter, distanceFrom, 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, isTransformable, makeColor, removeAtom, removeChild, removeNotify, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRectprotected transient int polylinePointIndex
protected transient MPolyline parentLine
protected MMidPoint(MPolyline l, int i, double x, double y, double z)
l - the parent polylinei - polyline point indexx - the x coordinatey - the y coordinatez - the z coordinateprotected MMidPoint(MMidPoint p)
p - the pointpublic boolean equals(Object o)
public boolean isSelectableNow()
MObjectisSelectableNow in class MObjectpublic boolean isChildOf(MObject o)
public int getPositionInPolyline()
public MPolyline getParentLine()
public void removeNotify()
removeNotify in class MObjectpublic void getLocation(DPoint3 q, CTransform3D t)
getLocation in class MPointq - the output point objectt - the transformation matrix or nullprotected void getFixedLocation(DPoint3 q, CTransform3D t)
q - the output point objectt - the transformation matrix or nullpublic void setLocation(DPoint3 p, CTransform3D trot)
setLocation in class MPointp - the new locationtrot - the viewing transformation or nullpublic void transform(CTransform3D t, int opts, CTransform3D trot)
transform in class MPointt - the transformation matrixopts - the transform optionstrot - the viewing transformation or nullMObject.TRANSFORM_DISTORTpublic String toString()
@', the unsigned
hexadecimal representation of the hash code of the object and
location information in square brackets. The location information
consists of the parent polyline's toString representation and
the section index, separated by a comma.