|
|||||||||
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
public class 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 |
Methods inherited from class chemaxon.struc.MObject |
---|
addAttributeKeys, addCdataAttributeKeys, checkValidity, containsAtom, containsPoint, distanceFrom, finishCloning, fixClonedPoints, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelected, isTransformable, makeColor, removeAtom, removeChild, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRect |
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 pointMethod Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class MPoint
o
- the other point
public boolean equals(MMidPoint o)
o
- the other point
public java.lang.Object clone()
MObject
clone
in class MPoint
public boolean isSelectableNow()
MObject
isSelectableNow
in class MObject
public boolean isChildOf(MObject o)
isChildOf
in class MPoint
o
- a possible parent
public int getPositionInPolyline()
public MPolyline getParentLine()
public void addNotify()
addNotify
in class MObject
public void removeNotify()
removeNotify
in class MObject
public void getLocation(DPoint3 q, CTransform3D t)
getLocation
in class MPoint
q
- 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 MPoint
p
- the new locationtrot
- the viewing transformation or nullpublic void transform(CTransform3D t, int opts, CTransform3D trot)
transform
in class MPoint
t
- the transformation matrixopts
- the transform optionstrot
- the viewing transformation or nullMObject.TRANSFORM_DISTORT
public 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 |