All Packages Class Hierarchy This Package Previous Next Index
Class objects.EuArc
java.lang.Object
|
+----objects.EuObject
|
+----objects.EuPoint
|
+----objects.EuCircle
|
+----objects.EuArc
- public class EuArc
- extends EuCircle
An instance of this class represents a circle, represented as acartesian pair
and a real.
-
EuArc(double, double, double, double, double)
- The constructor does initialization.
-
atLeftEnd()
-
-
atRightEnd()
-
-
castIdentical(EuObject)
- See if passed object can be cast to the present one.
-
closureContains(EuVector)
- See if passed point lies on the arc
-
draw(Graphics, mouseInfo)
- Draw the arc, using the
-
interiorContains(EuVector)
- See if passed point lies inside the arc
-
MouseVicinity(mouseVector, mouseInfo)
- See if mouse position is close to this circle.
-
myFullShadow()
-
-
overlaps(EuObject)
- See if another object overlaps nontrivially with this one.
-
setShadow(int)
- Sets the
-
subType()
-
EuArc
public EuArc(double x,
double y,
double r,
double s,
double t) throws LeaRuntimeException, WarningTurnedException
- The constructor does initialization. A zero generator vector gives a
LeaRuntimeException. A degenerate interval is handled by the warner.
- Parameters:
- x - the first coordinate of anchor
- y - the second coordinate of anchor
- r - the radius
- s - the left parameter of the endpoint
- t - the right parameter of the endpoint
atLeftEnd
public EuWorkVector atLeftEnd()
atRightEnd
public EuWorkVector atRightEnd()
draw
public void draw(Graphics g,
mouseInfo info)
- Draw the arc, 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 EuCircle
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, @see EuHalf or @see EuInterval
which is a subset of this one
- Overrides:
- castIdentical in class EuCircle
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.
- Overrides:
- MouseVicinity in class EuCircle
overlaps
public boolean overlaps(EuObject other)
- See if another object overlaps nontrivially with this one.
- Parameters:
- other - the object being compared to the present one
- Returns:
- true if passed object is a @see EuCircle or @see EuArc
which overlaps with this one
- Overrides:
- overlaps in class EuCircle
interiorContains
public boolean interiorContains(EuVector point)
- See if passed point lies inside the arc
- Parameters:
- point - the point being compared to the present arc
- Returns:
- true if passed point lies on the arc
- Overrides:
- interiorContains in class EuCircle
closureContains
public boolean closureContains(EuVector point)
- See if passed point lies on the arc
- Parameters:
- point - the point being compared to the present arc
- Returns:
- true if passed point lies on the arc
- Overrides:
- closureContains in class EuCircle
subType
public int subType()
- Returns:
- @see AN_ARC
- Overrides:
- subType in class EuCircle
myFullShadow
public int myFullShadow()
- Returns:
- a shadow for this object as recorded in @see shadow
- Overrides:
- myFullShadow in class EuCircle
setShadow
public void setShadow(int i)
- Sets the @see EuLab number of the full object behind the present one.
- Returns:
- i the EuLab index
- Overrides:
- setShadow in class EuCircle
All Packages Class Hierarchy This Package Previous Next Index