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.
-
radius
- The radius.
-
EuCircle(double, double, double)
- The constructor does initialization.
-
atParameter(double)
- Return in a
-
castIdentical(EuObject)
- See if passed object can be cast to the present one.
-
closestParameter(EuVector)
- Find the parameter value which yields the closest point to
a given one.
-
closureContains(EuVector)
- Act identically to interiorContains
-
draw(Graphics, mouseInfo)
- Draw the circle, using the
-
interiorContains(EuVector)
- See if passed point lies on the circle.
-
matchingPair(EuVector, EuVector, EuVector, EuVector)
-
-
MouseVicinity(mouseVector, mouseInfo)
- See if mouse position is close to this circle.
-
myFullShadow()
-
-
overlaps(EuObject)
- Acts identically to
-
setShadow(int)
- Sets the
-
subType()
-
-
type()
-
radius
public EuReal radius
- The radius.
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
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
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
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
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
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.
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
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
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
type
public int type()
- Returns:
- @see CIRCLE
- Overrides:
- type in class EuPoint
subType
public int subType()
- Returns:
- @see A_CIRCLE
- Overrides:
- subType in class EuPoint
myFullShadow
public int myFullShadow()
- Returns:
- -1 as this object is full.
- Overrides:
- myFullShadow in class EuPoint
matchingPair
protected boolean matchingPair(EuVector a,
EuVector b,
EuVector c,
EuVector d)
- Overrides:
- matchingPair in class EuPoint
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