A B C D E F G H I L M O P Q R S T U _

A

actionPerformed(ActionEvent) - Method in class support.convexhull.AddPointButton
This method is called when the button is clicked
actionPerformed(ActionEvent) - Method in class support.convexhull.ClearButton
Method called when the button is clicked.
actionPerformed(ActionEvent) - Method in class support.convexhull.LoadButton
This method is called when the button is clicked
actionPerformed(ActionEvent) - Method in class support.convexhull.PointsButton
This method is called when the button is clicked
actionPerformed(ActionEvent) - Method in class support.convexhull.QuitButton
Causes the window to delete itself and the program to exit(0)
actionPerformed(ActionEvent) - Method in class support.convexhull.RobotButton
This method is called when the button is clicked
AddPointButton - Class in support.convexhull
This class adds a new point based on the numbers specificed in the text boxes above it in the GUIPanel
AddPointButton(HullHelper, JTextField, JTextField) - Constructor for class support.convexhull.AddPointButton
Default Constructor
addVertex(HelperHullPoint) - Method in class support.convexhull.HullCanvas
Add an edge to the graph.
addVertex(int, int) - Method in class support.convexhull.HullHelper
Adds a vertex to the screen.
after(Position<Entry<K, V>>) - Method in class support.convexhull.RobotRBTree
This returns the Position<Entry<K,V>> which is right after(bigger in Integer case) the current position.
after(Entry<K, V>) - Method in class support.convexhull.RobotRBTree
This takes an Entry and returns the 'next' Entry

B

before(Position<Entry<K, V>>) - Method in class support.convexhull.RobotRBTree
This returns the Position<Entry<K,V>> which is right before(bigger in Integer case) the current position.
before(Entry<K, V>) - Method in class support.convexhull.RobotRBTree
This takes an Entry and returns the 'previous' Entry
BLUE_POINT_IMAGE - Static variable in interface support.convexhull.ConvexHullConstants
Image file for blue point (Off Hull)
BOTTOM_COLOR - Static variable in interface support.convexhull.ConvexHullConstants
 
bottomChain() - Method in class convexhull.MyHull
 
bottomChain() - Method in interface support.convexhull.ConvexHull
Get an Iterator containing all Entry<Integer, HullPoint> in the bottom chain of the hull.
BOUNDARY_VIOLATION - Static variable in class support.convexhull.RobotRBTree
BOUNDARY_VIOLATION is returned when boundary is violated.

C

c - Static variable in interface support.convexhull.ConvexHullConstants
Class used to get image resources from
CANVAS_HEIGHT - Static variable in interface support.convexhull.ConvexHullConstants
The height of the drawn background
CANVAS_WIDTH - Static variable in interface support.convexhull.ConvexHullConstants
The width of the drawn background
CanvasMouseListener - Class in support.convexhull
Responds to mouse clicks on the Graphical Background
CanvasMouseListener(HullHelper) - Constructor for class support.convexhull.CanvasMouseListener
Default Constructor
chains() - Method in class support.convexhull.HullHelper
This method returns two Iterators containing the points in the top and bottom chains.
clear() - Method in class convexhull.MyHull
When the user clicks on the "Clear" button, the HullHelper class will call this method.
clear() - Method in interface support.convexhull.ConvexHull
When the user clicks on the "Clear" button the HullHelper class will call this method.
clear() - Method in class support.convexhull.HullCanvas
This removes all vertices and edges from the graph.
clear() - Method in class support.convexhull.HullHelper
Clears all points and edges from the screen.
ClearButton - Class in support.convexhull
Causes the student's implementation of ConvexHull to clear its hull and erases the support code's point vector.
ClearButton(HullHelper) - Constructor for class support.convexhull.ClearButton
Default Constructor
closestAfter(K) - Method in class support.convexhull.RobotRBTree
Takes O(logN) time -- traverses the height of the tree once.
closestBefore(K) - Method in class support.convexhull.RobotRBTree
Takes O(logN) time -- traverses the height of the tree once.
connectEndPoints(HullPoint, HullPoint, Graphics) - Method in class support.convexhull.HullCanvas
Draws the edge between two endpoints if they differ from top hull to bottom hull
convexhull - package convexhull
 
ConvexHull - Interface in support.convexhull
This is the top level interface for an implementation of the "online" convexhull algorithm.
ConvexHullConstants - Interface in support.convexhull
This class contains all global constants used by the online convex hull program.

D

DoublePointException - Exception in support.convexhull
Exception class thrown when student codes has the same internal point in both the Top and Bottom Hull in violation of the requirements of the program.
DoublePointException(String) - Constructor for exception support.convexhull.DoublePointException
Default constructor does nothing beyond call super()
drawBottomEdge(HullPoint, HullPoint, Graphics) - Method in class support.convexhull.HullCanvas
Draws the edge between two given points in the bottom of the Hull
drawTopEdge(HullPoint, HullPoint, Graphics) - Method in class support.convexhull.HullCanvas
Draws the edge between two given points in the top of the Hull

E

ERROR_COLOR - Static variable in interface support.convexhull.ConvexHullConstants
Constant used to repesent color of Erroneous Point

F

FIGHTER_MODEL - Static variable in interface support.convexhull.ConvexHullConstants
Model file for fighter
first() - Method in class support.convexhull.RobotRBTree
Takes O(log N) time to traverse the height of the tree where N is the number of locators in the tree and O(logN) is the height of the tree
FRAME_HEIGHT - Static variable in interface support.convexhull.ConvexHullConstants
The height of the frame
FRAME_WIDTH - Static variable in interface support.convexhull.ConvexHullConstants
The width of the frame
FRAME_X - Static variable in interface support.convexhull.ConvexHullConstants
Default initial X location of frame
FRAME_Y - Static variable in interface support.convexhull.ConvexHullConstants
Default initial Y location of frame

G

getBounds() - Method in class support.convexhull.HelperHullPoint
Gets the bounds of this component.
getVertices() - Method in class support.convexhull.HullCanvas
Returns the vector storing all the points, including ones inside the hull.
getX() - Method in class support.convexhull.HullPoint
Gets the X coordinate of this point
getY() - Method in class support.convexhull.HullPoint
Gets the Y coordinate of this point
GUIPanel - Class in support.convexhull
The GUIPanel models the set of buttons and other GUI objects on the right hand side of the visualizer window next to the interactive canvas.
GUIPanel(JFrame, HullHelper) - Constructor for class support.convexhull.GUIPanel
Sets up the layout of the all the components and instantiates them all.

H

HelperHullPoint - Class in support.convexhull
A HelperHullPoint extends the basic HullPoint by adding functionality needed to work correctly in the HullHelper.
HelperHullPoint(HullCanvas) - Constructor for class support.convexhull.HelperHullPoint
Constructs a new hull point.
HULL_CONNECT_COLOR - Static variable in interface support.convexhull.ConvexHullConstants
 
HULL_POINT_RADIUS - Static variable in interface support.convexhull.ConvexHullConstants
The java.awt.Color used to draw the Edges between points
HullCanvas - Class in support.convexhull
This class manages all of the graphical aspects of the GUI.
HullCanvas(HullHelper) - Constructor for class support.convexhull.HullCanvas
Create a new HullCanvas.
HullHelper - Class in support.convexhull
This class is the top level class for the online convex hull.
HullHelper(ConvexHull) - Constructor for class support.convexhull.HullHelper
Constructs a new HullHelper.
HullPoint - Class in support.convexhull
A HullPoint is a point on screen.
HullPoint() - Constructor for class support.convexhull.HullPoint
Default constructor does nothing

I

IMAGE_PATH - Static variable in interface support.convexhull.ConvexHullConstants
Directory in JAR support file to find images
inorderPositions(Position<Entry<K, V>>, PositionList<Position<Entry<K, V>>>) - Method in class support.convexhull.RobotRBTree
takes PositionList and add all elements of the tree in inorder.
insert(HullPoint) - Method in class convexhull.MyHull
This method will be called by the HullHelper when a user clicks on the screen to add a vertex.
insert(HullPoint) - Method in interface support.convexhull.ConvexHull
This method will be called by the HullHelper when a user clicks on the screen to add a vertex.
isError() - Method in class support.convexhull.HelperHullPoint
Identifies if this point was the last point inserted before an exception was thrown.
isOnHull() - Method in class support.convexhull.HelperHullPoint
Gets the state of the on/off hull attributed
iterator() - Method in class support.convexhull.RobotRBTree
 

L

last() - Method in class support.convexhull.RobotRBTree
Takes O(log N) time to traverse the height of the tree where N is the number of locators in the tree and O(logN) is the height of the tree
LoadButton - Class in support.convexhull
Causes the HullHelper to load a file
LoadButton(HullHelper) - Constructor for class support.convexhull.LoadButton
Default Constructor
loadFile() - Method in class support.convexhull.HullHelper
Loads a file.
loadImages() - Static method in class support.convexhull.HelperHullPoint
 

M

main(String[]) - Static method in class convexhull.MyHull
WARNING: Program mainline.
MODEL_PATH - Static variable in interface support.convexhull.ConvexHullConstants
Directory in JAR support file to find models
mouseClicked(MouseEvent) - Method in class support.convexhull.CanvasMouseListener
Method called when the mouse is clicked.
MyHull - Class in convexhull
An implementation of an incremental convex-hull implemented with an ordered dictionary.
MyHull() - Constructor for class convexhull.MyHull
Set up and initialize the instance variables, adding new ones at the top of the file if necessary or desired.

O

OFF_HULL - Static variable in interface support.convexhull.ConvexHullConstants
Constant used to repesent color of Off Hull Point
ON_HULL - Static variable in interface support.convexhull.ConvexHullConstants
Constant used to repesent color of On Hull Point

P

paint(Graphics) - Method in class support.convexhull.HelperHullPoint
Paints this point to the specified graphics object.
paint(Graphics) - Method in class support.convexhull.HullCanvas
Uses double buffering to redraw all the hull points and edges over the background.
PointsButton - Class in support.convexhull
This class prints all the points in both hulls to the shell.
PointsButton(HullHelper) - Constructor for class support.convexhull.PointsButton
Default Constructor
printPoints() - Method in class support.convexhull.HullHelper
This outputs all the points to the shell.
PURPLE_POINT_IMAGE - Static variable in interface support.convexhull.ConvexHullConstants
Image file for purple point (Error)

Q

QuitButton - Class in support.convexhull
Causes the program to stop running and dispose of itself... not necessarily in that order.
QuitButton(JFrame) - Constructor for class support.convexhull.QuitButton
Default Constructor

R

RED_POINT_IMAGE - Static variable in interface support.convexhull.ConvexHullConstants
Image file for red point (On Hull)
ROBOT_MODEL - Static variable in interface support.convexhull.ConvexHullConstants
Model file for robot
RobotButton - Class in support.convexhull
Launches the robot frontend... oooohhhhh.... ahhhh.... wow!!
RobotButton(HullHelper) - Constructor for class support.convexhull.RobotButton
Default Constructor
RobotRBTree<K,V> - Class in support.convexhull
This is a subclass of net.datastructures.RBTree with some additional useful function for implementing Robot.
RobotRBTree() - Constructor for class support.convexhull.RobotRBTree
Simple constructor
RobotRBTree(Comparator<K>) - Constructor for class support.convexhull.RobotRBTree
Simple constructor with a Comparator C.
runRobot() - Method in class support.convexhull.HullHelper
Calls mture's magic 3d shit

S

setError(boolean) - Method in class support.convexhull.HelperHullPoint
Flags that this point caused an error.
setOnHull(boolean) - Method in class support.convexhull.HelperHullPoint
Sets the state of the on/off hull attribute.
setPointText(int, int) - Method in class support.convexhull.GUIPanel
Allows outside code to up date the text in the X and Y text boxes
setPointText(int, int) - Method in class support.convexhull.HullHelper
Sets the values in the texts boxes in the GUIPanel
setX(int) - Method in class support.convexhull.HullPoint
Sets the X coordinate of this point
setY(int) - Method in class support.convexhull.HullPoint
Sets the Y coordinate of this point
support.convexhull - package support.convexhull
 

T

TOP_COLOR - Static variable in interface support.convexhull.ConvexHullConstants
The java.awt.Color used to draw the Edges between points
topChain() - Method in class convexhull.MyHull
 
topChain() - Method in interface support.convexhull.ConvexHull
Get an Iterator containing all Entry<Integer, HullPoint> in the top chain of the hull.

U

updateColor() - Method in class support.convexhull.HelperHullPoint
This updates the color of the current point.

_

_background - Variable in class support.convexhull.HullCanvas
 
_inputX - Variable in class support.convexhull.GUIPanel
 
_inputY - Variable in class support.convexhull.GUIPanel
 
_points - Variable in class support.convexhull.HullCanvas
 

A B C D E F G H I L M O P Q R S T U _