|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objects.EuObject | +--objects.EuParametrized | +--objects.EuLine | +--objects.EuInterval
An instance of this class represents an interval,
represented as a line using EuLine
, along with two endpoints.
Field Summary | |
protected boolean |
degenerate
Describe variable degenerate here. |
fundamentals.EuReal |
inParameter
The incoming parameter for the interval. |
fundamentals.EuReal |
outParameter
The outgoing parameter for the interval. |
Fields inherited from class objects.EuLine |
generator |
Fields inherited from class objects.EuParametrized |
anchor |
Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
Constructor Summary | |
EuInterval()
Contructor for dummy object |
|
EuInterval(double x,
double y,
double deltax,
double deltay,
double s,
double t)
The constructor does initialization. |
|
EuInterval(objects.EuPoint p1,
objects.EuPoint p2)
The interval is instantiated with endpoints at the two given points |
Method Summary | |
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 interval.. |
protected fundamentals.EuVector |
invisibleRandomPoint(fundamentals.mouseInfo info,
java.util.Random croupier)
Chooses a sensible point on the interval when the interval is invisible. |
boolean |
isFull()
Describe isFull method here. |
double |
nameDisplacementAngle(fundamentals.mouseInfo info)
Describe nameDisplacementAngle method here. |
double |
nameParameter(fundamentals.mouseInfo info)
Describe nameParameter method here. |
boolean |
overlaps(objects.EuObject other)
See if objects overlap. |
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.EuLine |
atParameter, cloneMe, closestParameterOnLine, confusionDistance, onSameLine, 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.EuReal inParameter
public fundamentals.EuReal outParameter
protected boolean degenerate
degenerate
here.
Constructor Detail |
public EuInterval(double x, double y, double deltax, double deltay, double s, double t) throws UserException
x
- the first coordinate of anchory
- the second coordinate of anchordeltax
- the first coordinate of generatordeltay
- the second coordinate of generators
- the parameter of one endpointt
- the parameter of other endpoint
UserException
- if an error occurspublic EuInterval()
public EuInterval(objects.EuPoint p1, objects.EuPoint p2) throws UserException
p1
- an EuPoint
valuep2
- an EuPoint
value
UserException
- if an error occursMethod Detail |
public fundamentals.EuVector atInEnd()
atInEnd
method here.
public fundamentals.EuVector atOutEnd()
atOutEnd
method here.
public objects.plotCollection computeClip(fundamentals.mouseInfo info) throws UserException
computeClip
in class EuLine
info
- information used in scaling and positioning the object
plotCollection
value
UserException
- if an error occursprotected fundamentals.EuVector invisibleRandomPoint(fundamentals.mouseInfo info, java.util.Random croupier) throws UserException
invisibleRandomPoint
in class EuLine
info
- a mouseInfo
valuecroupier
- a Random
value
EuVector
value
UserException
- if an error occurspublic boolean castIdentical(objects.EuObject other)
castIdentical
in class EuLine
other
- an EuObject
value
EuInterval
which is
identical to this one @param other the object being compared to
the present onepublic boolean overlaps(objects.EuObject other)
overlaps
in class EuLine
other
- the
object being compared to the present one
EuLine
, EuHalf
or
EuInterval
which overlaps with this onepublic boolean interiorContains(fundamentals.EuVector point)
interiorContains
in class EuParametrized
point
- an EuVector
value
public double closestParameter(double x, double y)
closestParameter
in class EuLine
x
- The first coordinate of the given pointy
- The second coordinate of the given point
public char typeName()
typeName
method here.
typeName
in class EuLine
public boolean isFull()
isFull
method here.
isFull
in class EuLine
public java.lang.String params()
params
method here.
params
in class EuLine
public java.lang.String toString()
toString
method here.
toString
in class EuLine
public void passArguments(fundamentals.EuArguments args)
passArguments
method here.
passArguments
in class EuLine
args
- an EuArguments
valuepublic java.lang.String toNaturalLanguage(int language, boolean determined)
toNaturalLanguage
method here.
toNaturalLanguage
in class EuLine
language
- an int
valuedetermined
- a boolean
value
String
valuepublic double nameParameter(fundamentals.mouseInfo info)
nameParameter
method here.
nameParameter
in class EuLine
info
- a mouseInfo
value
double
valuepublic double nameDisplacementAngle(fundamentals.mouseInfo info)
nameDisplacementAngle
method here.
nameDisplacementAngle
in class EuLine
info
- a mouseInfo
value
double
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |