|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.MObject
chemaxon.struc.MPoint
chemaxon.struc.graphics.MMidPoint
Middle point in a line.
| Nested Class Summary | |
static class |
MMidPoint.Sticky
Fixed middle point that can be a point of a polyline. |
| Field Summary | |
protected MPolyline |
parentLine
|
protected int |
polylinePointIndex
|
| Fields inherited from class chemaxon.struc.MObject |
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT |
| Constructor Summary | |
protected |
MMidPoint(MMidPoint p)
Copy constructor. |
protected |
MMidPoint(MPolyline l,
int i,
double x,
double y,
double z)
Contructs a middle point object. |
| Method Summary | |
void |
addNotify()
Point added to a document. |
java.lang.Object |
clone()
Creates a clone. |
boolean |
equals(MMidPoint o)
Two midpoints equal if their parent lines are the same and the polyline point indices also equal. |
boolean |
equals(java.lang.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 |
java.lang.String |
toString()
Overrides Object.toString() to ease debugging. |
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Transforms all points. |
| Methods inherited from class chemaxon.struc.MPoint |
calcCenter, distanceFrom, equals, getLocation, getLocation, getPoint, getPointCount, getPointRef, getPointRefCount, isInternalSelectable, paint |
| Methods inherited from class chemaxon.struc.MObject |
addAttributeKeys, addCdataAttributeKeys, checkValidity, containsAtom, distanceFrom, finishCloning, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isSelected, isTransformable, makeColor, removeChild, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected transient int polylinePointIndex
protected transient MPolyline parentLine
| Constructor Detail |
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 point| Method Detail |
public boolean equals(java.lang.Object o)
equals in class MPointo - the other point
public boolean equals(MMidPoint o)
o - the other point
public java.lang.Object clone()
MObject
clone in class MPointpublic boolean isSelectableNow()
MObject
isSelectableNow in class MObjectpublic boolean isChildOf(MObject o)
isChildOf in class MPointo - a possible parent
public int getPositionInPolyline()
public MPolyline getParentLine()
public void addNotify()
addNotify in class MObjectpublic void removeNotify()
removeNotify in class MObject
public void getLocation(DPoint3 q,
CTransform3D t)
getLocation in class MPointq - the output point objectt - the transformation matrix or null
protected void getFixedLocation(DPoint3 q,
CTransform3D t)
q - the output point objectt - the transformation matrix or null
public void setLocation(DPoint3 p,
CTransform3D trot)
setLocation in class MPointp - the new locationtrot - the viewing transformation or null
public void transform(CTransform3D t,
int opts,
CTransform3D trot)
transform in class MPointt - the transformation matrixopts - the transform optionstrot - the viewing transformation or nullpublic java.lang.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.
toString in class MObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||