Skip navigation links

CSU CS165

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

A

actionPerformed(ActionEvent) - Method in class StdDraw
This method cannot be called directly.
arc(double, double, double, double, double) - Static method in class StdDraw
Draws a circular arc of the specified radius, centered at (x, y), from angle1 to angle2 (in degrees).

B

BLACK - Static variable in class StdDraw
The color black.
BLUE - Static variable in class StdDraw
The color blue.
BOOK_BLUE - Static variable in class StdDraw
Shade of blue used in Introduction to Programming in Java.
BOOK_LIGHT_BLUE - Static variable in class StdDraw
Shade of light blue used in Introduction to Programming in Java.
BOOK_RED - Static variable in class StdDraw
Shade of red used in Algorithms, 4th edition.

C

circle(double, double, double) - Static method in class StdDraw
Draws a circle of the specified radius, centered at (x, y).
clear() - Method in class MyStack
Removes all the elements from the Stack.
clear() - Static method in class StdDraw
Clears the screen to the default color (white).
clear(Color) - Static method in class StdDraw
Clears the screen to the specified color.
contains(Object) - Method in class MyStack
Returns true if this stack contains the specified element.
CYAN - Static variable in class StdDraw
The color cyan.

D

DARK_GRAY - Static variable in class StdDraw
The color dark gray.
disableDoubleBuffering() - Static method in class StdDraw
Disable double buffering.
draw(MyStack<Integer>, MyStack<Integer>, MyStack<Integer>) - Method in class UserInterface
a method that draws the current state of each pole.

E

ellipse(double, double, double, double) - Static method in class StdDraw
Draws an ellipse with the specified semimajor and semiminor axes, centered at (x, y).
enableDoubleBuffering() - Static method in class StdDraw
Enable double buffering.

F

filledCircle(double, double, double) - Static method in class StdDraw
Draws a filled circle of the specified radius, centered at (x, y).
filledEllipse(double, double, double, double) - Static method in class StdDraw
Draws an ellipse with the specified semimajor and semiminor axes, centered at (x, y).
filledPolygon(double[], double[]) - Static method in class StdDraw
Draws a polygon with the vertices (x0, y0), (x1, y1), ..., (xn–1, yn–1).
filledRectangle(double, double, double, double) - Static method in class StdDraw
Draws a filled rectangle of the specified size, centered at (x, y).
filledSquare(double, double, double) - Static method in class StdDraw
Draws a filled square of the specified size, centered at (x, y).

G

get(int) - Method in class MyStack
Returns the element at the specified position in this list.
getFont() - Static method in class StdDraw
Returns the current font.
getPenColor() - Static method in class StdDraw
Returns the current pen color.
getPenRadius() - Static method in class StdDraw
Returns the current pen radius.
GRAY - Static variable in class StdDraw
The color gray.
GREEN - Static variable in class StdDraw
The color green.

H

hasNextKeyTyped() - Static method in class StdDraw
Returns true if the user has typed a key (that has not yet been processed).

I

indexOf(Object) - Method in class MyStack
Returns the index of the first occurrence of the specified element in this stack, or -1 if this ArrayList does not contain the element.
isEmpty() - Method in class MyStack
Test if Stack is empty
isKeyPressed(int) - Static method in class StdDraw
Returns true if the given key is being pressed.
iterativeHanoi(int, int, int, int) - Static method in class TowersOfHanoi
Iterative solution using stack.

K

keyPressed(KeyEvent) - Method in class StdDraw
This method cannot be called directly.
keyReleased(KeyEvent) - Method in class StdDraw
This method cannot be called directly.
keyTyped(KeyEvent) - Method in class StdDraw
This method cannot be called directly.

L

lastIndexOf(Object) - Method in class MyStack
Returns the index of the last occurrence of the specified element in this stack, or -1 if this ArrayList does not contain the element.
LIGHT_GRAY - Static variable in class StdDraw
The color light gray.
line(double, double, double, double) - Static method in class StdDraw
Draws a line segment between (x0, y0) and (x1, y1).

M

MAGENTA - Static variable in class StdDraw
The color magenta.
main(String[]) - Static method in class MyStackTestProgram
 
main(String[]) - Static method in class StdDraw
Test client.
main(String[]) - Static method in class TowersOfHanoi
 
mouseClicked(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseDragged(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseEntered(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseExited(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseMoved(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mousePressed() - Static method in class StdDraw
Returns true if the mouse is being pressed.
mousePressed(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseReleased(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseX() - Static method in class StdDraw
Returns the x-coordinate of the mouse.
mouseY() - Static method in class StdDraw
Returns the y-coordinate of the mouse.
move(int, int, int) - Static method in class TowersOfHanoi
Method to report and move a disc.
Move(int, int, int, int, boolean) - Constructor for class TowersOfHanoi.Move
 
MyStack<E> - Class in <Unnamed>
The MyStack class represents a last-in-first-out (LIFO) stack of objects.
MyStack() - Constructor for class MyStack
 
MyStackTestProgram - Class in <Unnamed>
 
MyStackTestProgram() - Constructor for class MyStackTestProgram
 

N

nextKeyTyped() - Static method in class StdDraw
Returns the next key that was typed by the user (that your program has not already processed).

O

ORANGE - Static variable in class StdDraw
The color orange.

P

pause(int) - Static method in class StdDraw
Pause for t milliseconds.
peek() - Method in class MyStack
Looks at the object at the top of this stack without removing it from the stack.
picture(double, double, String) - Static method in class StdDraw
Draws the specified image centered at (x, y).
picture(double, double, String, double) - Static method in class StdDraw
Draws the specified image centered at (x, y), rotated given number of degrees.
picture(double, double, String, double, double) - Static method in class StdDraw
Draws the specified image centered at (x, y), rescaled to the specified bounding box.
picture(double, double, String, double, double, double) - Static method in class StdDraw
Draws the specified image centered at (x, y), rotated given number of degrees, and rescaled to the specified bounding box.
PINK - Static variable in class StdDraw
The color pink.
point(double, double) - Static method in class StdDraw
Draws a point centered at (x, y).
polygon(double[], double[]) - Static method in class StdDraw
Draws a polygon with the vertices (x0, y0), (x1, y1), ..., (xn–1, yn–1).
pop() - Method in class MyStack
Removes the object at the top of this stack and returns that object as the value of this function.
push(E) - Method in class MyStack
Pushes item onto the top of this stack

R

rectangle(double, double, double, double) - Static method in class StdDraw
Draws a rectangle of the specified size, centered at (x, y).
recursiveHanoi(int, int, int, int) - Static method in class TowersOfHanoi
The recursive solution for Towers of Hanoi.
RED - Static variable in class StdDraw
The color red.

S

save(String) - Static method in class StdDraw
Saves the drawing to using the specified filename.
search(Object) - Method in class MyStack
Returns the 1-based position where an object is on this stack.
setCanvasSize() - Static method in class StdDraw
Sets the canvas (drawing area) to be 512-by-512 pixels.
setCanvasSize(int, int) - Static method in class StdDraw
Sets the canvas (drawing area) to be width-by-height pixels.
setFont() - Static method in class StdDraw
Sets the font to the default font (sans serif, 16 point).
setFont(Font) - Static method in class StdDraw
Sets the font to the specified value.
setPenColor() - Static method in class StdDraw
Set the pen color to the default color (black).
setPenColor(Color) - Static method in class StdDraw
Sets the pen color to the specified color.
setPenColor(int, int, int) - Static method in class StdDraw
Sets the pen color to the specified RGB color.
setPenRadius() - Static method in class StdDraw
Sets the pen size to the default size (0.002).
setPenRadius(double) - Static method in class StdDraw
Sets the radius of the pen to the specified size.
setScale() - Static method in class StdDraw
Sets the x-scale and y-scale to be the default (between 0.0 and 1.0).
setScale(double, double) - Static method in class StdDraw
Sets both the x-scale and y-scale to the (same) specified range.
setXscale() - Static method in class StdDraw
Sets the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Static method in class StdDraw
Sets the x-scale to the specified range.
setYscale() - Static method in class StdDraw
Sets the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Static method in class StdDraw
Sets the y-scale to the specified range.
show(int) - Static method in class StdDraw
show() - Static method in class StdDraw
Copies offscreen buffer to onscreen buffer.
size() - Method in class MyStack
Returns the number of items in the stack
square(double, double, double) - Static method in class StdDraw
Draws a square of side length 2r, centered at (x, y).
StdDraw - Class in <Unnamed>
The StdDraw class provides a basic capability for creating drawings with your programs.

T

testClear(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testContains(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testFirstIndex(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testIsEmpty(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testLastIndex(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testPeek(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testPop(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testPush(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testSearch(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
testSize(Stack<String>, MyStack<String>) - Static method in class MyStackTestProgram
 
text(double, double, String) - Static method in class StdDraw
Write the given text string in the current font, centered at (x, y).
text(double, double, String, double) - Static method in class StdDraw
Write the given text string in the current font, centered at (x, y) and rotated by the specified number of degrees.
textLeft(double, double, String) - Static method in class StdDraw
Write the given text string in the current font, left-aligned at (x, y).
textRight(double, double, String) - Static method in class StdDraw
Write the given text string in the current font, right-aligned at (x, y).
toString() - Method in class MyStack
String representation of a stack.
toString() - Method in class TowersOfHanoi.Move
a string for debugging purposes.
TowersOfHanoi - Class in <Unnamed>
ACKNOWLEDGEMENTS: This assignment was heavily copied from the wonderfully competent faculty at Princeton University.
TowersOfHanoi() - Constructor for class TowersOfHanoi
 
TowersOfHanoi.Move - Class in <Unnamed>
The Move class represents the action of moving one disc between pegs.

U

UserInterface - Class in <Unnamed>
Draws the Tower of Hanoi puzzle with poles and discs.
UserInterface(int) - Constructor for class UserInterface
Create user interface

W

WHITE - Static variable in class StdDraw
The color white.

Y

YELLOW - Static variable in class StdDraw
The color yellow.
A B C D E F G H I K L M N O P R S T U W Y 
Skip navigation links

CSU CS165