|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objects.EuObject | +--objects.EuParametrized | +--objects.EuCircle | +--objects.EuArc
An instance of this class represents a circle, represented as a cartesian pair and a real.
Field Summary | |
fundamentals.EuAngle |
inAngle
The parameter at which the arc begins, moving counterclockwise. |
fundamentals.EuAngle |
outAngle
The parameter at which the arc ends, moving counterclockwise. |
Fields inherited from class objects.EuCircle |
degenerate, radius |
Fields inherited from class objects.EuParametrized |
anchor |
Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
Constructor Summary | |
EuArc()
Contructor for dummy object |
|
EuArc(double x,
double y,
double r,
double s,
double t)
The constructor does initialization. |
|
EuArc(objects.EuArc a,
objects.EuPoint p1,
objects.EuPoint p2)
The arc is instantiated as a subarc of the given arc, and with endspoints in the given points |
|
EuArc(objects.EuCircle a,
objects.EuPoint p1,
objects.EuPoint p2)
The arc is instantiated as a subarc of the given circle, and with endpoints in the given points, going counterclockwise from p1 to p2. |
Method Summary | |
fundamentals.EuVector |
anInnerPoint()
Describe anInnerPoint method here. |
fundamentals.EuVector |
atInEnd()
Describe atInEnd method here. |
fundamentals.EuVector |
atOutEnd()
Describe atOutEnd method here. |
boolean |
castIdentical(objects.EuObject other)
See if passed object can be cast to the present one. |
double |
closestParameter(double x,
double y)
Find the parameter value which yields the closest point to a given one. |
objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Compute the visible portion of the object as a collection of arcs, intervals or points. |
boolean |
interiorContains(fundamentals.EuVector point)
See if passed point lies inside the arc |
protected fundamentals.EuVector |
invisibleRandomPoint(fundamentals.mouseInfo info,
java.util.Random croupier)
Chooses a sensible point on the arc when the arc is invisible. |
boolean |
isFull()
Describe isFull method here. |
boolean |
overlaps(objects.EuObject other)
See if another object overlaps nontrivially with this one. |
java.lang.String |
params()
Describe params method here. |
void |
passArguments(fundamentals.EuArguments args)
Read off parameters describing the object and add to passed EuArguments instance |
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.EuCircle |
atParameter, cloneMe, closestParameterOnCircle, closureContainsObject, confusionDistance, nameDisplacementAngle, nameParameter, onSameCircle, superIdentical |
Methods inherited from class objects.EuParametrized |
atParameter, atParameter, closestParameter, closureContains, distance, matchingPair, nameLocation, randomPoint |
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 |
public fundamentals.EuAngle inAngle
public fundamentals.EuAngle outAngle
Constructor Detail |
public EuArc(double x, double y, double r, double s, double t) throws DesignException, UserException
x
- the first coordinate of anchory
- the second coordinate of anchorr
- the radiuss
- the lo parameter of the endpointt
- the hi parameter of the endpoint
DesignException
- if an error occurs
UserException
- if an error occurspublic EuArc()
public EuArc(objects.EuArc a, objects.EuPoint p1, objects.EuPoint p2) throws UserException
a
- an EuArc
valuep1
- an EuPoint
valuep2
- an EuPoint
value
UserException
- if an error occurspublic EuArc(objects.EuCircle a, objects.EuPoint p1, objects.EuPoint p2) throws UserException
a
- an EuCircle
valuep1
- an EuPoint
valuep2
- an EuPoint
value
UserException
- if an error occursMethod Detail |
public fundamentals.EuVector atInEnd()
atInEnd
method here.
public fundamentals.EuVector anInnerPoint()
anInnerPoint
method here.
public fundamentals.EuVector atOutEnd()
atOutEnd
method here.
public objects.plotCollection computeClip(fundamentals.mouseInfo info) throws InternalException, DesignException, UserException
computeClip
in class EuCircle
info
- information used in scaling and positioning the object
plotCollection
value
InternalException
- if an error occurs
DesignException
- if an error occurs
UserException
- if an error occursprotected fundamentals.EuVector invisibleRandomPoint(fundamentals.mouseInfo info, java.util.Random croupier) throws UserException
invisibleRandomPoint
in class EuCircle
info
- a mouseInfo
valuecroupier
- a Random
value
EuVector
value
UserException
- if an error occurspublic boolean castIdentical(objects.EuObject other)
castIdentical
in class EuCircle
other
- an EuObject
value
public boolean overlaps(objects.EuObject other)
overlaps
in class EuCircle
other
- the object being compared to the present one
public double closestParameter(double x, double y)
closestParameter
in class EuCircle
x
- The first coordinate of the given pointy
- The second coordinate of the given point
public boolean interiorContains(fundamentals.EuVector point)
interiorContains
in class EuParametrized
point
- an EuVector
value
public char typeName()
typeName
method here.
typeName
in class EuCircle
public boolean isFull()
isFull
method here.
isFull
in class EuCircle
public java.lang.String params()
params
method here.
params
in class EuCircle
public java.lang.String toString()
toString
method here.
toString
in class EuCircle
public void passArguments(fundamentals.EuArguments args)
passArguments
in class EuCircle
args
- an EuArguments
valuepublic java.lang.String toNaturalLanguage(int language, boolean determined)
toNaturalLanguage
method here.
toNaturalLanguage
in class EuCircle
language
- an int
valuedetermined
- a boolean
value
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |