All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class objects.EuPoint

java.lang.Object
   |
   +----objects.EuObject
           |
           +----objects.EuPoint

public class EuPoint
extends EuObject
An instance of this class represents a point, represented as a cartesian pair.


Variable Index

 o anchor

Constructor Index

 o EuPoint(double, double)
The constructor does initialization.
 o EuPoint(EuVector)
The constructor does initialization.
 o EuPoint(EuWorkVector)
The constructor does initialization.

Method Index

 o atParameter(double)
Return in a
 o castIdentical(EuObject)
See if passed object is identical to the present one.
 o closureContains(EuVector)
See if passed point is identical to the present one.
 o draw(Graphics, mouseInfo)
Draw the point as a symbol, defined in the
 o interiorContains(EuVector)
Always false
 o matchingPair(EuVector, EuVector, EuVector, EuVector)
 o mouseVicinity(mouseVector, mouseInfo)
See if mouse position is close to this point.
 o myFullShadow()
 o overlaps(EuObject)
Acts identically to
 o setShadow(int)
Sets the
 o subType()
 o type()

Variables

 o anchor
 public EuVector anchor

Constructors

 o EuPoint
 public EuPoint(double x,
                double y)
The constructor does initialization. No error possibilities.

Parameters:
x - the first coordinate
y - the second coordinate
 o EuPoint
 public EuPoint(EuWorkVector v)
The constructor does initialization. No error possibilities.

Parameters:
v - the vector
 o EuPoint
 public EuPoint(EuVector v)
The constructor does initialization. No error possibilities.

Parameters:
v - the vector

Methods

 o atParameter
 public EuWorkVector atParameter(double t)
Return in a @see EuWorkVector the point's coordinates.

Parameters:
t - the parameter (ignored)
Returns:
the coordinates
Overrides:
atParameter in class EuObject
 o draw
 public void draw(Graphics g,
                  mouseInfo info)
Draw the point as a symbol, defined in the @see mouseInfo class.

Parameters:
g - the Graphics handle on the window
info - information used in positioning the object
Overrides:
draw in class EuObject
 o castIdentical
 public boolean castIdentical(EuObject other)
See if passed object is identical to the present one.

Parameters:
other - the object being compared to the present one
Returns:
true if passed object is a @see EuPoint with the same coordinates.
Overrides:
castIdentical in class EuObject
 o mouseVicinity
 public boolean mouseVicinity(mouseVector mouseAt,
                              mouseInfo info)
See if mouse position is close to this point.

Parameters:
mouseAt - The coordinates of the mouse position
info - information used in locating the object on screen
Returns:
true if the mouse is close to the point.
Overrides:
mouseVicinity in class EuObject
 o overlaps
 public boolean overlaps(EuObject other)
Acts identically to @see castIdentical()

Parameters:
other - the object being compared to the present one
Returns:
true if passed object is a @see EuPoint with the same coordinates
Overrides:
overlaps in class EuObject
 o interiorContains
 public boolean interiorContains(EuVector point)
Always false

Parameters:
point - the point being compared to the present one
Returns:
true if passed object has same coordinates.
Overrides:
interiorContains in class EuObject
 o closureContains
 public boolean closureContains(EuVector point)
See if passed point is identical to the present one.

Parameters:
point - the point being compared to the present one
Returns:
true if passed object has same coordinates.
Overrides:
closureContains in class EuObject
 o type
 public int type()
Returns:
@see POINT
Overrides:
type in class EuObject
 o subType
 public int subType()
Returns:
@see A_POINT
Overrides:
subType in class EuObject
 o myFullShadow
 public int myFullShadow()
Returns:
-1 as this object is full.
Overrides:
myFullShadow in class EuObject
 o matchingPair
 protected boolean matchingPair(EuVector a,
                                EuVector b,
                                EuVector c,
                                EuVector d)
 o setShadow
 public void setShadow(int i)
Sets the @see EuLab number of the full object behind the present one.

Returns:
i the EuLab index (ignored)
Overrides:
setShadow in class EuObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index