All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class objects.EuCircle

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

public class EuCircle
extends EuPoint
An instance of this class represents a circle, represented as acartesian pair and a real.


Variable Index

 o radius
The radius.

Constructor Index

 o EuCircle(double, double, double)
The constructor does initialization.

Method Index

 o atParameter(double)
Return in a
 o castIdentical(EuObject)
See if passed object can be cast to the present one.
 o closestParameter(EuVector)
Find the parameter value which yields the closest point to a given one.
 o closureContains(EuVector)
Act identically to interiorContains
 o draw(Graphics, mouseInfo)
Draw the circle, using the
 o interiorContains(EuVector)
See if passed point lies on the circle.
 o matchingPair(EuVector, EuVector, EuVector, EuVector)
 o MouseVicinity(mouseVector, mouseInfo)
See if mouse position is close to this circle.
 o myFullShadow()
 o overlaps(EuObject)
Acts identically to
 o setShadow(int)
Sets the
 o subType()
 o type()

Variables

 o radius
 public EuReal radius
The radius.

Constructors

 o EuCircle
 public EuCircle(double x,
                 double y,
                 double r) throws LeaRuntimeException, WarningTurnedException
The constructor does initialization. A zero radius gives a Warning, a negantive radius a LeaRuntimeException

Parameters:
x - the first coordinate of anchor
y - the second coordinate of anchor
r - the radius

Methods

 o atParameter
 public EuWorkVector atParameter(double t)
Return in a @see EuWorkVector the coordinates of a point on the circle at a given angle.

Parameters:
t - the parameter
Returns:
the coordinates
Overrides:
atParameter in class EuPoint
 o closestParameter
 protected double closestParameter(EuVector v)
Find the parameter value which yields the closest point to a given one.

Parameters:
v - the vector
Returns:
The parameter
 o draw
 public void draw(Graphics g,
                  mouseInfo info)
Draw the circle, using the @see mouseInfo for scaling and positioning.

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

Parameters:
other - the object being compared to the present one
Returns:
true if passed object is a @see EuCircle or @see EuArc which is a subset of this one
Overrides:
castIdentical in class EuPoint
 o MouseVicinity
 public boolean MouseVicinity(mouseVector mouseAt,
                              mouseInfo info)
See if mouse position is close to this circle.

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 circle.
 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 EuCircle or @see EuArc which is a subset of this one
Overrides:
overlaps in class EuPoint
 o interiorContains
 public boolean interiorContains(EuVector point)
See if passed point lies on the circle.

Parameters:
point - the point being compared to the present circle
Returns:
true if passed point lies on the circle.
Overrides:
interiorContains in class EuPoint
 o closureContains
 public boolean closureContains(EuVector point)
Act identically to interiorContains

Parameters:
point - the point being compared to the present circle
Returns:
true if passed point lies on the circle.
Overrides:
closureContains in class EuPoint
 o type
 public int type()
Returns:
@see CIRCLE
Overrides:
type in class EuPoint
 o subType
 public int subType()
Returns:
@see A_CIRCLE
Overrides:
subType in class EuPoint
 o myFullShadow
 public int myFullShadow()
Returns:
-1 as this object is full.
Overrides:
myFullShadow in class EuPoint
 o matchingPair
 protected boolean matchingPair(EuVector a,
                                EuVector b,
                                EuVector c,
                                EuVector d)
Overrides:
matchingPair in class EuPoint
 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 EuPoint

All Packages  Class Hierarchy  This Package  Previous  Next  Index