objects
Class EuPoint

java.lang.Object
  |
  +--objects.EuObject
        |
        +--objects.EuPoint
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
plotPoint

public class EuPoint
extends EuObject

An instance of this class represents a point, represented as a cartesian pair.


Field Summary
 fundamentals.EuVector anchor
          The point's coordinates
 
Fields inherited from class objects.EuObject
infoHash, provenience, scaledown
 
Constructor Summary
EuPoint()
          Contructor for dummy object
EuPoint(double x, double y)
          The constructor does initialization.
EuPoint(fundamentals.EuVector v)
          The constructor does initialization.
EuPoint(fundamentals.mouseInfo info, objects.EuObject other, java.util.Random croupier)
          Construct at random on visible part of given parametric object
EuPoint(fundamentals.mouseInfo info, java.util.Random croupier)
          Construct at random on visible part of canvas
 
Method Summary
 boolean castIdentical(objects.EuObject other)
          See if passed object is identical to the present one.
 boolean closureContains(fundamentals.EuVector point)
          See if passed point is identical to the present one.
protected  objects.plotCollection computeClip(fundamentals.mouseInfo info)
          Represent the visible portion of the object as a collection of arcs, intervals or points
 double confusionDistance(objects.EuObject other)
          Returns the distance from this object to another under these simplifications: The distance to lines or circles is in {0,POSITIVE_INFINITY} unless this is a point.
 double distance(fundamentals.EuVector point)
          Describe distance method here.
 void drawAs(java.awt.Graphics g, fundamentals.mouseInfo info, int symbol)
           
 boolean interiorContains(fundamentals.EuVector point)
          Always false
 boolean isFull()
          Describe isFull method here.
 double nameDisplacementAngle(fundamentals.mouseInfo info)
          Describe nameDisplacementAngle method here.
 fundamentals.EuVector nameLocation(fundamentals.mouseInfo info)
          Describe nameLocation method here.
 boolean overlaps(objects.EuObject other)
          Acts identically to castIdentical()
 java.lang.String params()
          Describe params method here.
 void passArguments(fundamentals.EuArguments args)
          Describe passArguments method here.
 java.lang.String toNaturalLanguage(int language, boolean determined)
          Describe toNaturalLanguage method here.
 java.lang.String toString()
          Describe toString method here.
 char typeName()
          Describe typeName method here.
 
Methods inherited from class objects.EuObject
cloneObject, draw, equals, getClip, isVisible, mouseVicinity, mouseVicinity, toPs
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

anchor

public fundamentals.EuVector anchor
The point's coordinates

Constructor Detail

EuPoint

public EuPoint(double x,
               double y)
        throws UserException
The constructor does initialization.

Parameters:
x - the first coordinate
y - the second coordinate
Throws:
UserException - if an overflow error occurs

EuPoint

public EuPoint(fundamentals.EuVector v)
        throws UserException
The constructor does initialization.

Parameters:
v - the vector
Throws:
UserException - if an overflow error occurs

EuPoint

public EuPoint(fundamentals.mouseInfo info,
               java.util.Random croupier)
        throws UserException
Construct at random on visible part of canvas

Parameters:
info - sizing information
croupier - random number generator
Throws:
UserException - if an error occurs

EuPoint

public EuPoint(fundamentals.mouseInfo info,
               objects.EuObject other,
               java.util.Random croupier)
        throws InternalException,
               UserException,
               DesignException
Construct at random on visible part of given parametric object

Parameters:
info - sizing information
other - an EuObject value
croupier - random number generator
Throws:
InternalException - if an error occurs
UserException - if an error occurs
DesignException

EuPoint

public EuPoint()
Contructor for dummy object

Method Detail

computeClip

protected objects.plotCollection computeClip(fundamentals.mouseInfo info)
Represent the visible portion of the object as a collection of arcs, intervals or points

Specified by:
computeClip in class EuObject
Parameters:
info - information used in scaling and positioning the object
Returns:
a plotCollection value

drawAs

public void drawAs(java.awt.Graphics g,
                   fundamentals.mouseInfo info,
                   int symbol)
            throws InternalException,
                   DesignException,
                   UserException
InternalException
DesignException
UserException

castIdentical

public boolean castIdentical(objects.EuObject other)
See if passed object is identical to the present one.

Specified by:
castIdentical in class EuObject
Parameters:
other - the object being compared to the present one
Returns:
true if passed object is a EuPoint with the same coordinates.

overlaps

public boolean overlaps(objects.EuObject other)
Acts identically to castIdentical()

Specified by:
overlaps in class EuObject
Parameters:
other - the object being compared to the present one
Returns:
true if passed object is a EuPoint with the same coordinates

interiorContains

public boolean interiorContains(fundamentals.EuVector point)
Always false

Specified by:
interiorContains in class EuObject
Parameters:
point - the point being compared to the present one
Returns:
true if passed object has same coordinates.

closureContains

public boolean closureContains(fundamentals.EuVector point)
See if passed point is identical to the present one.

Specified by:
closureContains in class EuObject
Parameters:
point - the point being compared to the present one
Returns:
true if passed object has same coordinates.

distance

public double distance(fundamentals.EuVector point)
Describe distance method here.

Specified by:
distance in class EuObject
Parameters:
point - an EuVector value
Returns:
a double value

confusionDistance

public double confusionDistance(objects.EuObject other)
Returns the distance from this object to another under these simplifications: The distance to lines or circles is in {0,POSITIVE_INFINITY} unless this is a point. The distance to radii is POSITIVE_INFINITY unless this is a radius The distance to points is POSITIVE_INFINITY if this is a radius

Specified by:
confusionDistance in class EuObject
Parameters:
other - an EuObject value
Returns:
the parameter or zero

typeName

public char typeName()
Describe typeName method here.

Specified by:
typeName in class EuObject
Returns:
R

isFull

public boolean isFull()
Describe isFull method here.

Specified by:
isFull in class EuObject
Returns:
true since the item is of subtype A_RADIUS, A_POINT, A_LINE, A_CIRCLE

params

public java.lang.String params()
Describe params method here.

Overrides:
params in class EuObject
Returns:
A technical specification of parameters associated to the object

toString

public java.lang.String toString()
Describe toString method here.

Specified by:
toString in class EuObject
Returns:
A technical specification of the object

passArguments

public void passArguments(fundamentals.EuArguments args)
Describe passArguments method here.

Specified by:
passArguments in class EuObject
Parameters:
args - an EuArguments value

toNaturalLanguage

public java.lang.String toNaturalLanguage(int language,
                                          boolean determined)
Describe toNaturalLanguage method here.

Specified by:
toNaturalLanguage in class EuObject
Parameters:
language - an int value
determined - a boolean value
Returns:
a String value

nameDisplacementAngle

public double nameDisplacementAngle(fundamentals.mouseInfo info)
Describe nameDisplacementAngle method here.

Specified by:
nameDisplacementAngle in class EuObject
Parameters:
info - a mouseInfo value
Returns:
a double value

nameLocation

public fundamentals.EuVector nameLocation(fundamentals.mouseInfo info)
Describe nameLocation method here.

Specified by:
nameLocation in class EuObject
Parameters:
info - a mouseInfo value
Returns:
an EuVector value