|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objects.EuObject | +--objects.EuPoint
An instance of this class represents a point, represented as a cartesian pair.
Field Summary | |
fundamentals.EuVector |
anchor
The point's coordinates |
Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
Constructor Summary | |
EuPoint()
Contructor for dummy object |
|
EuPoint(double x,
double y)
The constructor does initialization. |
|
EuPoint(fundamentals.EuVector v)
The constructor does initialization. |
|
EuPoint(fundamentals.mouseInfo info,
objects.EuObject other,
java.util.Random croupier)
Construct at random on visible part of given parametric object |
|
EuPoint(fundamentals.mouseInfo info,
java.util.Random croupier)
Construct at random on visible part of canvas |
Method Summary | |
boolean |
castIdentical(objects.EuObject other)
See if passed object is identical to the present one. |
boolean |
closureContains(fundamentals.EuVector point)
See if passed point is identical to the present one. |
protected objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Represent the visible portion of the object as a collection of arcs, intervals or points |
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)
Describe distance method here. |
void |
drawAs(java.awt.Graphics g,
fundamentals.mouseInfo info,
int symbol)
|
boolean |
interiorContains(fundamentals.EuVector point)
Always false |
boolean |
isFull()
Describe isFull method here. |
double |
nameDisplacementAngle(fundamentals.mouseInfo info)
Describe nameDisplacementAngle method here. |
fundamentals.EuVector |
nameLocation(fundamentals.mouseInfo info)
Describe nameLocation method here. |
boolean |
overlaps(objects.EuObject other)
Acts identically to castIdentical () |
java.lang.String |
params()
Describe params method here. |
void |
passArguments(fundamentals.EuArguments args)
Describe passArguments method here. |
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.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.EuVector anchor
Constructor Detail |
public EuPoint(double x, double y) throws UserException
x
- the first coordinatey
- the second coordinate
UserException
- if an overflow error occurspublic EuPoint(fundamentals.EuVector v) throws UserException
v
- the vector
UserException
- if an overflow error occurspublic EuPoint(fundamentals.mouseInfo info, java.util.Random croupier) throws UserException
info
- sizing informationcroupier
- random number generator
UserException
- if an error occurspublic EuPoint(fundamentals.mouseInfo info, objects.EuObject other, java.util.Random croupier) throws InternalException, UserException, DesignException
info
- sizing informationother
- an EuObject
valuecroupier
- random number generator
InternalException
- if an error occurs
UserException
- if an error occurs
DesignException
public EuPoint()
Method Detail |
protected objects.plotCollection computeClip(fundamentals.mouseInfo info)
computeClip
in class EuObject
info
- information used in scaling and positioning the object
plotCollection
valuepublic void drawAs(java.awt.Graphics g, fundamentals.mouseInfo info, int symbol) throws InternalException, DesignException, UserException
InternalException
DesignException
UserException
public boolean castIdentical(objects.EuObject other)
castIdentical
in class EuObject
other
- the object being compared to the present one
EuPoint
with the same coordinates.public boolean overlaps(objects.EuObject other)
castIdentical
()
overlaps
in class EuObject
other
- the object being compared to the
present one
EuPoint
with the same
coordinatespublic boolean interiorContains(fundamentals.EuVector point)
interiorContains
in class EuObject
point
- the point being compared to the present one
public boolean closureContains(fundamentals.EuVector point)
closureContains
in class EuObject
point
- the point being compared to the present one
public double distance(fundamentals.EuVector point)
distance
method here.
distance
in class EuObject
point
- an EuVector
value
double
valuepublic double confusionDistance(objects.EuObject other)
confusionDistance
in class EuObject
other
- an EuObject
value
public char typeName()
typeName
method here.
typeName
in class EuObject
public boolean isFull()
isFull
method here.
isFull
in class EuObject
public java.lang.String params()
params
method here.
params
in class EuObject
public java.lang.String toString()
toString
method here.
toString
in class EuObject
public void passArguments(fundamentals.EuArguments args)
passArguments
method here.
passArguments
in class EuObject
args
- an EuArguments
valuepublic java.lang.String toNaturalLanguage(int language, boolean determined)
toNaturalLanguage
method here.
toNaturalLanguage
in class EuObject
language
- an int
valuedetermined
- a boolean
value
String
valuepublic double nameDisplacementAngle(fundamentals.mouseInfo info)
nameDisplacementAngle
method here.
nameDisplacementAngle
in class EuObject
info
- a mouseInfo
value
double
valuepublic fundamentals.EuVector nameLocation(fundamentals.mouseInfo info)
nameLocation
method here.
nameLocation
in class EuObject
info
- a mouseInfo
value
EuVector
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |