edu.ucla.stat.SOCR.devices
Class SOCR_Point2D

java.lang.Object
  extended byedu.ucla.stat.SOCR.devices.SOCR_Point2D

public class SOCR_Point2D
extends java.lang.Object


Field Summary
static double NEARVALUE
           
 
Constructor Summary
SOCR_Point2D()
           
SOCR_Point2D(double X, double Y)
           
SOCR_Point2D(int prec)
           
SOCR_Point2D(int prec, double X, double Y)
           
SOCR_Point2D(int prec, SOCR_Point2D pt)
           
SOCR_Point2D(SOCR_Point2D pt)
           
 
Method Summary
 double distance(SOCR_Point2D pt)
           
 java.lang.String getXString()
           
 java.lang.String getYString()
           
 boolean isSelected()
           
 boolean near(SOCR_Point2D pt)
           
 java.lang.String print()
           
 void setSelected(boolean sel)
           
 void setValues(double nx, double ny)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEARVALUE

public static final double NEARVALUE
See Also:
Constant Field Values
Constructor Detail

SOCR_Point2D

public SOCR_Point2D()

SOCR_Point2D

public SOCR_Point2D(double X,
                    double Y)

SOCR_Point2D

public SOCR_Point2D(SOCR_Point2D pt)

SOCR_Point2D

public SOCR_Point2D(int prec)

SOCR_Point2D

public SOCR_Point2D(int prec,
                    double X,
                    double Y)

SOCR_Point2D

public SOCR_Point2D(int prec,
                    SOCR_Point2D pt)
Method Detail

setValues

public void setValues(double nx,
                      double ny)

getXString

public java.lang.String getXString()

getYString

public java.lang.String getYString()

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean sel)

distance

public double distance(SOCR_Point2D pt)

near

public boolean near(SOCR_Point2D pt)

print

public java.lang.String print()

toString

public java.lang.String toString()