| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.MObject
chemaxon.struc.MPoint
Point object.
| Field Summary | 
| Fields inherited from class chemaxon.struc.MObject | 
PAINT_ANTIALIAS, PAINT_FOCUSED | 
| Constructor Summary | |
MPoint(double x,
       double y,
       double z)
Contructs a point object.  | 
|
MPoint(DPoint3 p)
Constructs a point object.  | 
|
MPoint(MPoint p)
Copy constructor.  | 
|
| Method Summary | |
 void | 
calcCenter(DPoint3 p)
Calculates the geometrical center.  | 
 java.lang.Object | 
clone()
Creates a clone.  | 
 double | 
distanceFrom(double x,
             double y)
Gets the 2D distance from the specified point.  | 
 boolean | 
equals(MPoint o)
Two points equal if their location equals.  | 
 boolean | 
equals(java.lang.Object o)
Two points equal if their location equals.  | 
 DPoint3 | 
getLocation()
Gets the point's location.  | 
 MPoint | 
getPoint(int i)
Gets the point.  | 
 int | 
getPointCount()
Gets the number of points.  | 
 MPoint | 
getPointRef(int i)
Gets a point of the line.  | 
 int | 
getPointRefCount()
Gets the number of point references.  | 
 double | 
getX()
Gets the x coordinate.  | 
 double | 
getY()
Gets the y coordinate.  | 
 double | 
getZ()
Gets the z coordinate.  | 
 boolean | 
isChildOf(MObject o)
Is this object a children of another one?  | 
 boolean | 
isInternalSelectable()
Is it a selection only internal object?  | 
 void | 
paint(java.awt.Graphics g,
      CTransform3D t,
      int f,
      java.awt.Color c,
      java.awt.Color selc,
      java.awt.Color focusc)
Paints the object.  | 
 void | 
setXYZ(double x,
       double y,
       double z)
Sets the coordinates.  | 
 void | 
transform(CTransform3D t)
Transforms all points.  | 
| Methods inherited from class chemaxon.struc.MObject | 
addAttributeKeys, addCdataAttributeKeys, addNotify, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isSelectableNow, isSelected, makeColor, makeColorString, removeChild, removeNotify, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents | 
| Methods inherited from class java.lang.Object | 
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public MPoint(double x,
              double y,
              double z)
x - the x coordinatey - the y coordinatez - the z coordinatepublic MPoint(DPoint3 p)
p - the pointpublic MPoint(MPoint p)
p - the point| Method Detail | 
public boolean equals(MPoint o)
o - the other point
public boolean equals(java.lang.Object o)
o - the other point
public boolean isChildOf(MObject o)
isChildOf in class MObjecto - a possible parent
public boolean isInternalSelectable()
isInternalSelectable in class MObjectpublic java.lang.Object clone()
MObject
clone in class MObjectpublic double getX()
public double getY()
public double getZ()
public DPoint3 getLocation()
public void setXYZ(double x,
                   double y,
                   double z)
x - the x coordinatey - the y coordinatez - the z coordinatepublic int getPointCount()
getPointCount in class MObjectpublic MPoint getPoint(int i)
getPoint in class MObjecti - the point index (must be 0)
public int getPointRefCount()
getPointRefCount in class MObjectpublic MPoint getPointRef(int i)
getPointRef in class MObjecti - the point index
public void transform(CTransform3D t)
transform in class MObjectt - the transformation matrixpublic void calcCenter(DPoint3 p)
calcCenter in class MObjectp - store the coordinates here
public double distanceFrom(double x,
                           double y)
distanceFrom in class MObjectx - the x coordinatey - the y coordinate
public void paint(java.awt.Graphics g,
                  CTransform3D t,
                  int f,
                  java.awt.Color c,
                  java.awt.Color selc,
                  java.awt.Color focusc)
paint in class MObjectg - the graphics contextt - the transformation matrixf - flagsc - the color to use or nullselc - the selection colorfocusc - the focus color
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||