|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--objects.EuObject
|
+--objects.EuRadius
An instance of this class represents a radius, i.e. a nonnegative integer which can be used to form circles.
| Field Summary | |
fundamentals.EuReal |
radius
A floating point representation of the radius |
| Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
| Constructor Summary | |
EuRadius()
Constructor for dummy object. |
|
EuRadius(double r)
The constructor checks that the radius is indeed a nonnegative integer. |
|
EuRadius(objects.EuPoint p1,
objects.EuPoint p2)
The radius is instantiated as the distance between the two given points |
|
EuRadius(fundamentals.mouseInfo info,
java.util.Random croupier)
Constructed randomly, via mouseInfo. |
|
| Method Summary | |
fundamentals.EuVector |
atParameter(double t)
Call has no meaning, return (1,0) |
boolean |
castIdentical(objects.EuObject other)
Return true if passed object is a EuRadius with the same
radius parameter. |
double |
closestParameter(double x,
double y)
Return zero as dummy value. |
boolean |
closureContains(fundamentals.EuVector point)
Returns false as radii have no closure points. |
protected objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Draw an oval with the radius centered at the top left corner. |
double |
confusionDistance(objects.EuObject other)
Returns the distance from this object to another under these simplifications: The distance to lines or circles is in {0,POSITIVE_INFINITY} unless this is a point. |
double |
distance(fundamentals.EuVector point)
Return POSITIVE_INFINITY as dummy value. |
boolean |
interiorContains(fundamentals.EuVector point)
Returns false as radii have no interior points. |
boolean |
isFull()
Determine whether object is a subobject of another. |
boolean |
mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
Determine whether mouse position is close to displayed object |
double |
nameDisplacementAngle(fundamentals.mouseInfo info)
Describe nameDisplacementAngle method here. |
fundamentals.EuVector |
nameLocation(fundamentals.mouseInfo info)
Describe nameLocation method here. |
boolean |
overlaps(objects.EuObject other)
Determine whether objects overlap. |
java.lang.String |
params()
Generate a mathematical specification of parameters associated to the object |
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)
Generate a description of the object in a natural language (Danish or English) |
java.lang.String |
toString()
Generate a mathematical specification of the object |
char |
typeName()
Return R for radius. |
| Methods inherited from class objects.EuObject |
cloneObject, draw, equals, getClip, isVisible, mouseVicinity, toPs |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public fundamentals.EuReal radius
| Constructor Detail |
public EuRadius(double r)
throws DesignException,
UserException
r - the radius
DesignException - if an error occurs
UserException - if an error occurspublic EuRadius()
public EuRadius(fundamentals.mouseInfo info,
java.util.Random croupier)
throws UserException
info - the mouseinfo, used in deciding what range to draw random anchor point fromcroupier - the random number generator to use
UserException - if an error occurs
public EuRadius(objects.EuPoint p1,
objects.EuPoint p2)
throws UserException
p1 - an EuPoint valuep2 - an EuPoint value
UserException - if an error occurs| Method Detail |
public fundamentals.EuVector atParameter(double t)
t - ignored
protected objects.plotCollection computeClip(fundamentals.mouseInfo info)
throws UserException,
DesignException
computeClip in class EuObjectinfo - information used in scaling and positioning the object
plotCollection value
UserException - if an error occurs
DesignException - if an error occurs
public boolean mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
mouseVicinity in class EuObjectmouseAt - The coordinates of the mouse positioninfo - information used in locating the object on screen
public boolean castIdentical(objects.EuObject other)
EuRadius with the same
radius parameter.
castIdentical in class EuObjectother - the object being compared to the present one
EuRadius with the same radius parameter.public boolean interiorContains(fundamentals.EuVector point)
interiorContains in class EuObjectpoint - an EuVector value
public boolean closureContains(fundamentals.EuVector point)
closureContains in class EuObjectpoint - an EuVector value
public boolean overlaps(objects.EuObject other)
overlaps in class EuObjectother - the object being compared to the present one
EuRadius
public double closestParameter(double x,
double y)
x - the first coordinate of the pointy - the second coordinate of the point
public double distance(fundamentals.EuVector point)
distance in class EuObjectpoint - the point
public double confusionDistance(objects.EuObject other)
confusionDistance in class EuObjectother - an EuObject value
public char typeName()
typeName in class EuObjectpublic boolean isFull()
isFull in class EuObjectpublic java.lang.String params()
params in class EuObjectpublic java.lang.String toString()
toString in class EuObjectpublic void passArguments(fundamentals.EuArguments args)
passArguments in class EuObjectargs - an EuArguments value
public java.lang.String toNaturalLanguage(int language,
boolean determined)
toNaturalLanguage in class EuObjectlanguage - Globals.DANISH or Globals.ENGLISHdetermined - true for a determined noun (the ..., ...en/..et)
String valuepublic fundamentals.EuVector nameLocation(fundamentals.mouseInfo info)
nameLocation method here. LATER!
nameLocation in class EuObjectinfo - a mouseInfo value
EuVector valuepublic double nameDisplacementAngle(fundamentals.mouseInfo info)
nameDisplacementAngle method here.
nameDisplacementAngle in class EuObjectinfo - a mouseInfo value
double value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||