All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

a. Variable in class FLine
action(Event, Object). Method in class Hausdorff
add(FVector). Method in class FVector
Return the addition of the vector with v.
addPoint(FPoint). Method in class FConvexPoly
Takes a point and adds it to the polygon if this point keeps the polygon convex.
animator. Variable in class PolyArea
The thread used to perform the animation
area. Variable in class Hausdorff

B

b. Variable in class FLine
band. Variable in class PolyArea
A boolean that indicates if the current yellow region is a band.
bestLength. Variable in class PolyArea
The length of the longest distance so far.
bestV1. Variable in class PolyArea
The point on the green polygon of the longest distance so far.
bestV2. Variable in class PolyArea
The point on the red polygon of the longest distance so far.
boundVector(). Method in class FConvexPoly
Returns the vector between the first and last vertices.

C

c. Variable in class FLine
The line is under the form ax+by=c
closed. Variable in class FConvexPoly
comment. Variable in class Hausdorff
comment. Variable in class PolyArea
control. Variable in class Hausdorff
currentRegBase. Variable in class PolyArea
The index on the red polygon of the current yellow region during the algorithm.
currentRegion. Variable in class PolyArea
A Polygon used to draw the current yellow region
currentV1. Variable in class PolyArea
An index that indicates the current point of the green polygon during the algorithm.
currentV2. Variable in class PolyArea
The point on the red polygon of current distance in the algorithm.

D

div(int, int). Static method in class MesMath
This function takes two integers and return the division of a by b with respect to rounding toward minus inifinity.
dot(FVector). Method in class FVector
Returns the dot product of the vector with v.
draw(Graphics). Method in class FConvexPoly
Draw the outline of the polygon on the given graphics.

E

EPSILON. Static variable in class FPoint
This is the distance within which a point is considered equal to another one when the equals() method is called.
equals(FPoint). Method in class FPoint
Returns true if the point is equal to p, within distance EPSILON.

F

FConvexPoly(Color). Constructor for class FConvexPoly
Creates a new empty polygon
fill(Graphics). Method in class FConvexPoly
Draw the filled polygon on the given graphics.
firstVector(). Method in class FConvexPoly
Returns the first vector of the polygonal chain.
FLine(FPoint, FPoint). Constructor for class FLine
Creates a new FLine that goes through both a and b.
FLine(FPoint, FVector). Constructor for class FLine
Creates a new FLine that goes through p and is supported by v.
FPoint(double, double). Constructor for class FPoint
Creates a point with the x and y coordinates.
FPoint(int, int). Constructor for class FPoint
Creates a point with the x and y integer coordinates.
FPoint(Point). Constructor for class FPoint
Creates a point equal to the given point.
FVector(double, double). Constructor for class FVector
Initializes the vector with the x and y coordinates
FVector(FPoint, FPoint). Constructor for class FVector
Creates a vector that goes from a to b.

G

getFPoint(int). Method in class FConvexPoly
Returns the FPoint indexed by i.
getInsets(). Method in class Hausdorff
getPoint(). Method in class FPoint
Returns a integer Point
getPoint(int). Method in class FConvexPoly
Returns the Point indexed by i.

H

handleEvent(Event). Method in class PolyArea
This handles the mouse clicks, adds the points to the green then the red polygon and starts the algorithm when both are closed.
Hausdorff(). Constructor for class Hausdorff

I

infiniteRegion(FPoint, FVector, FPoint, FVector). Static method in class FConvexPoly
This method returns a Polygon that will look infinite when drawn by the Graphics methods.
init(). Method in class Hausdorff
intersect(FLine). Method in class FLine
The methode computes the intersection point of two lines.
isClosed(). Method in class FConvexPoly
Returns true if the polygon is closed.
isNextOK(FPoint). Method in class FConvexPoly
Returns true iff the given point would keep the polygon convex if addded.
isTrigo(). Method in class FConvexPoly
Returns true if the polygon has been drawn in counter clockwise order.
isTrigo(FVector). Method in class FVector
Return true if v makes an angle with the vector in the trigonometric direction (a left turn).

L

lastVector(). Method in class FConvexPoly
Returns the last vector of the polygonal chain.
length(). Method in class FVector
Returns the length of the vector.

M

makeRegion(). Method in class PolyArea
This method is called in the algorithm to make the new yellow polygon that corresponds to the sweeping yellow region.
makeV2(). Method in class PolyArea
This method creates the new end of the current smallest distance that's on the red polygon.
MesMath(). Constructor for class MesMath
mod(int, int). Static method in class MesMath
This function is the remainder counterpart to the div function above.
mult(double). Method in class FVector
Return the multiplication of the vector by a.

N

nextStep. Variable in class PolyArea
The step of the algorithm to execute at the next frame of animation or when the user clicks on the step button.
normal(). Method in class FVector
Returns the vector normal to this vector.

O

offDimension. Variable in class PolyArea
offGraphics. Variable in class PolyArea
offImage. Variable in class PolyArea

P

paint(Graphics). Method in class Hausdorff
paint(Graphics). Method in class PolyArea
The paint method draws the current state of the algorithm in the given Graphics, including the two polygons, the yellow region and the important points.
poly1. Variable in class PolyArea
poly2. Variable in class PolyArea
Our two polygons.
PolyArea(TextField). Constructor for class PolyArea
This constructor creates the two polygons and resets the algorithm variables.
polyColor. Variable in class FConvexPoly

R

run(). Method in class PolyArea
The run method is called by the virtual machine to perform the automated animation of the algorithm.
running. Variable in class Hausdorff
runStop. Variable in class Hausdorff

S

start(). Method in class Hausdorff
startAnim(). Method in class Hausdorff
stepAlgo(). Method in class PolyArea
This method performs a step in the algorithm.
stop(). Method in class Hausdorff
stopAnim(). Method in class Hausdorff

T

trigo. Variable in class FConvexPoly
Indicates if the polygon has been drawn in counter-clockwise order
trigo. Variable in class PolyArea
A boolean that tell the algortihm in which direction the yellow band should move to find the next vertex of the green polygon.

U

update(Graphics). Method in class PolyArea
When called by the AWT, the update method clears its offscreen buffer, calls paint() to draw in it, and then copies the buffer to the screen.

V

v. Variable in class FConvexPoly
The vector used to store the polygon vertices

X

x. Variable in class FPoint
x. Variable in class FVector

Y

y. Variable in class FPoint
y. Variable in class FVector