|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--objects.EuObject
An abstract class from which the concrete EuObject classes are derived.
| Field Summary | |
protected int |
infoHash
The hash code of the last mouseInfo used when
displaying this object |
java.lang.String |
provenience
String describing how the objected was constructed. |
protected static double |
scaledown
Constant value used when choose random points. |
| Constructor Summary | |
EuObject()
Constructor does nothing |
|
| Method Summary | |
abstract boolean |
castIdentical(objects.EuObject other)
Determines whether or not another object is derived from the same full object of th epresent one, i.e. whether they are equal (up to a small error, see EuReal) in
themselves, or
possibly just after being cast to
full circles or full lines |
objects.EuObject |
cloneObject()
Clone the present object |
abstract boolean |
closureContains(fundamentals.EuVector point)
Determines whether or not a given point is contained in the closure of the present object (up to a small error, see EuReal). |
protected abstract objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Compute the visible portion of the object as a collection of arcs, intervals or points. |
abstract 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. |
abstract double |
distance(fundamentals.EuVector point)
Returns the distance from the point on the object closest to a specified point, or Double.POSITIVE_INFINITY if this does not make sense (for instance in case of a EuRadius. |
void |
draw(java.awt.Graphics g,
fundamentals.mouseInfo info)
Describe draw method here. |
boolean |
equals(java.lang.Object other)
Compares EuObjects in a mathematical sense: returns true if they are equal up to a reasonable error (see EuReal).
|
objects.plotCollection |
getClip(fundamentals.mouseInfo info)
Represent the visible portion of the object as a collection of arcs, intervals or points. |
abstract boolean |
interiorContains(fundamentals.EuVector point)
Determines whether or not a given point is contained in the interior the present object (up to a small error, see EuReal). |
abstract boolean |
isFull()
Return true if the item is of type R, L, C, or P |
boolean |
isVisible(fundamentals.mouseInfo info)
Determine if object is currently visible on screen |
boolean |
mouseVicinity(int x,
int y,
fundamentals.mouseInfo info)
Determines whether or not the mouse is close (in a sense determined in mouseVector) to the object's
representation on screen. |
boolean |
mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
Determines whether or not the mouse is close (in a sense determined in mouseVector) to the object's
representation on screen. |
abstract double |
nameDisplacementAngle(fundamentals.mouseInfo info)
Used for locating labels for the object on screen |
abstract fundamentals.EuVector |
nameLocation(fundamentals.mouseInfo info)
Used for locating labels for the object on screen |
abstract boolean |
overlaps(objects.EuObject other)
Determines whether or not another object overlaps nontrivially with the present one, i.e. whether they have an intersection (up to a small error, see EuReal) with infinitely many points. |
java.lang.String |
params()
Generate a mathematical specification of parameters associated to the object. |
abstract void |
passArguments(fundamentals.EuArguments args)
Read off parameters describing the object and add to passed EuArguments instance |
abstract java.lang.String |
toNaturalLanguage(int language,
boolean determined)
Generate a description of the object in a natural language (Danish or English) |
void |
toPs(java.lang.StringBuffer work,
fundamentals.mouseInfo info)
Describe toPs method here. |
abstract java.lang.String |
toString()
Generate a mathematical specification of the object. |
abstract char |
typeName()
One of the letters A, C, H, I, L, P, R describing the type of object |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final double scaledown
public java.lang.String provenience
protected int infoHash
mouseInfo used when
displaying this object
| Constructor Detail |
public EuObject()
| Method Detail |
public boolean equals(java.lang.Object other)
EuReal).
Overrides Object method. Warning: This is not truly an equivalence relation!
It will be reflexive and symmetric, but could fail to be transitive for
roundoff error reasons.
Will compare OWS' to EuObjects as though they were EuObjects.
equals in class java.lang.Objectother - the other EuObject
boolean value
public objects.plotCollection getClip(fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
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 occurs
public void draw(java.awt.Graphics g,
fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
draw method here.
g - a Graphics valueinfo - a mouseInfo value
InternalException - if an error occurs
DesignException - if an error occurs
UserException - if an error occurs
public void toPs(java.lang.StringBuffer work,
fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
toPs method here.
work - a StringBuffer valueinfo - a mouseInfo value
InternalException - if an error occurs
DesignException - if an error occurs
UserException - if an error occurs
protected abstract objects.plotCollection computeClip(fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
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 occurs
public boolean mouseVicinity(fundamentals.mouseVector mouseAt,
fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
mouseVector) to the object's
representation on screen.
mouseAt - The coordinates of the mouse positioninfo - information used in locating the object on screen
InternalException - if an error occurs
DesignException - if an error occurs
UserException - if an error occurs
public boolean mouseVicinity(int x,
int y,
fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
mouseVector) to the object's
representation on screen.
x - The x-coordinate of the mouse positiony - The y-coordinate of the mouse positioninfo - information used in locating the object on screen
InternalException - if an error occurs
DesignException - if an error occurs
UserException - if an error occurspublic abstract boolean castIdentical(objects.EuObject other)
EuReal) in
themselves, or
possibly just after being cast to
full circles or full lines
other - the object being compared to the present one
public abstract boolean interiorContains(fundamentals.EuVector point)
EuReal).
point - the point being compared to the present object
public abstract boolean closureContains(fundamentals.EuVector point)
EuReal).
point - the point being compared to the present object
public abstract boolean overlaps(objects.EuObject other)
EuReal) with infinitely many points.
other - the object being compared to the present one
public abstract double distance(fundamentals.EuVector point)
point - the point
public abstract double confusionDistance(objects.EuObject other)
other - an EuObject value
public abstract char typeName()
public objects.EuObject cloneObject()
public abstract boolean isFull()
public java.lang.String params()
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract void passArguments(fundamentals.EuArguments args)
args - an EuArguments value
public abstract java.lang.String toNaturalLanguage(int language,
boolean determined)
language - Globals.DANISH or Globals.ENGLISHdetermined - true for a determined noun (the line, linjen)
String value
public final boolean isVisible(fundamentals.mouseInfo info)
throws InternalException,
DesignException,
UserException
info - a mouseInfo value
InternalException - if an error occurs
DesignException - if an error occurs
UserException - if an error occurspublic abstract double nameDisplacementAngle(fundamentals.mouseInfo info)
info - a mouseInfo value
double valuepublic abstract fundamentals.EuVector nameLocation(fundamentals.mouseInfo info)
info - a mouseInfo value
EuVector value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||