A B C D E F G H I J K L M N O P R S T U V W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- actionPerformed(ActionEvent) - Method in class Picture
-
Opens a save dialog box when the user selects "Save As" from the menu.
- actionPerformed(ActionEvent) - Method in class StdDraw
-
This method cannot be called directly.
- addConverter(ClassConverter) - Static method in class Autograder
-
Method to add a user written converter to the autograder.
- addError(AuditEvent) - Method in class GatewayCheckstyleListener
- addException(AuditEvent, Throwable) - Method in class GatewayCheckstyleListener
- addTestResult(String, boolean, String) - Method in class Autograder
-
Method to add a seperately made test to the results.
- addTestResult(TestResult) - Method in class Autograder
-
Method to add a seperately made test to the results.
- allResults() - Method in class JunitListener
-
Method to reutn the test created by the junits.
- 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).
- auditFinished(AuditEvent) - Method in class GatewayCheckstyleListener
- auditStarted(AuditEvent) - Method in class GatewayCheckstyleListener
- Autograder - Class in <Unnamed>
-
Classs representing an autograder.
- Autograder() - Constructor for class Autograder
-
The Autograder class constructor.
- Autograder(int, double) - Constructor for class Autograder
-
The Autograder class constructor.
- Autograder.CallableMethod - Class in <Unnamed>
-
A Class representing a method that can be called.
- Autograder.StopExitSecurityManager - Class in <Unnamed>
- AutograderMain - Class in <Unnamed>
- AutograderMain() - Constructor for class AutograderMain
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
- call() - Method in class Autograder.CallableMethod
-
The call that gets run when the method is run.
- CallableMethod(Method, Object, Object...) - Constructor for class Autograder.CallableMethod
-
The constructor of CallableMethod Class.
- checkCompiles(Autograder, String) - Static method in class AutograderMain
- checkExit(int) - Method in class Autograder.StopExitSecurityManager
- checkPermission(Permission) - Method in class Autograder.StopExitSecurityManager
- CHECKSTYLE_JAR - Static variable in class Autograder
-
The location of the checkstyle Jar.
- CHECKSTYLE_LISTEN_XML - Static variable in class Autograder
- CHECKSTYLE_XML - Static variable in class Autograder
-
The location of the checkstyle xml.
- circle(double, double, double) - Static method in class StdDraw
-
Draws a circle of the specified radius, centered at (x, y).
- classDoesNotHaveMultipleScanners(String) - Method in class Autograder
-
Runs a test to make sure that the student code does not use multiple Scanners..
- classDoesNotUseArrayList(String) - Method in class Autograder
-
Runs a test to make sure that the student code does not use ArrayLists.
- classDoesNotUsePackages(String) - Method in class Autograder
-
Runs a test to make sure that the student code does not use package declarations.
- 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.
- clearMoveList() - Static method in class StdDraw
-
Method to clear the list of moves made.
- compare(Picture, int) - Method in class Picture
- comparisonTest(String, String, Object) - Method in class Autograder
-
Runs a single test comparing the output of a method..
- comparisonTests(String, int, Object) - Method in class Autograder
-
Runs all the comparison tests for a specific file.
- compile(String) - Method in class Autograder
-
Method to compile a java file for you.
- compTest(String, Method, boolean, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, char, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, double, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, float, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, int, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, long, Object, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- compTest(String, Method, Object, Object, String, Object...) - Method in class Autograder
-
Method to do a test comparing the ouptut of the students method against an expected value.
- currentScore() - Method in class Autograder
-
A method to get the current single test score.
- CYAN - Static variable in class StdDraw
-
The color cyan.
D
- DARK_GRAY - Static variable in class StdDraw
-
The color dark gray.
- diffFiles(String, String) - Method in class Autograder
-
Test to compare two files.
- diffNum - Variable in class Autograder
-
The current test number we are on.
- disableDoubleBuffering() - Static method in class StdDraw
-
Disable double buffering.
- DrawingAutograder - Class in <Unnamed>
-
Example child class of the Autograder.
- DrawingAutograder() - Constructor for class DrawingAutograder
-
The constructor of a drawing Autograder.
- drawingContainsTest(String, DummyShape, String) - Method in class DrawingAutograder
-
Test to check whether the students code draws an expected shape.
- drawingDiffTest(String, boolean, boolean, String) - Method in class DrawingAutograder
-
Test to check whether the students code draws all expected shapes.
- drawingDiffTest(String, ArrayList<DummyShape>, boolean, boolean, String) - Method in class DrawingAutograder
-
Test to check whether the students code draws all expected shapes.
- drawingShapeCountTest(String, int, String) - Method in class DrawingAutograder
-
Test to check whether the students code draws at least an expected number of shapes.
- drawingSizeTest(String, int, int, String) - Method in class DrawingAutograder
-
Test to check whether the students code sets the stddraw canvas to the expected size.
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.
- equals(Object) - Method in class Picture
- exists() - Method in class Program
-
returns whether the file exists.
F
- fileFinished(AuditEvent) - Method in class GatewayCheckstyleListener
- fileStarted(AuditEvent) - Method in class GatewayCheckstyleListener
- filledArc(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).
- 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), ..., (xn1, yn1).
- 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).
- filledTriangle(double, double, double, double, double, double) - Static method in class StdDraw
-
Draws a filled triangle with the specified corner locations.
G
- GatewayCheckstyleListener - Class in <Unnamed>
-
This is a listener for checkstyle.
- GatewayCheckstyleListener() - Constructor for class GatewayCheckstyleListener
-
The constructor of the listener.
- get(int, int) - Method in class Picture
-
Returns the color of pixel (
col,row) as aColor. - getClasses(String[]) - Static method in class Autograder
-
Method to convert the string paramaters to Class<?>[].
- getFont() - Static method in class StdDraw
-
Returns the current font.
- getJLabel() - Method in class Picture
-
Returns a
JLabelcontaining this picture, for embedding in aJPanel,JFrameor other GUI widget. - getMethod(String, String, Class<?>...) - Static method in class Autograder
-
Method to get a method.
- getMethod(String, String, String[]) - Static method in class Autograder
-
Method to get a method.
- getModifiers(String[]) - Static method in class Autograder
-
Method to take a list of string modifiers and turn them into a representative integer.
- getMoveList() - Static method in class StdDraw
-
Method to get the list of moves made.
- getPenColor() - Static method in class StdDraw
-
Returns the current pen color.
- getPenRadius() - Static method in class StdDraw
-
Returns the current pen radius.
- getPreviousMgr() - Method in class Autograder.StopExitSecurityManager
- getResults() - Static method in class GatewayCheckstyleListener
-
A method to return all the tests run from an audit.
- getRGB(int, int) - Method in class Picture
-
Returns the color of pixel (
col,row) as anint. - getVisibility() - Method in class Autograder
-
A method to get the current visibility.
- GRAY - Static variable in class StdDraw
-
The color gray.
- GREEN - Static variable in class StdDraw
-
The color green.
H
- hasConstructorTest(String, Class<?>[], int, boolean) - Method in class Autograder
-
Method to test whether a specific constructor exists.
- hasConstructorTest(String, String[], String[], boolean) - Method in class Autograder
-
Method to test whether a specific constructor exists.
- hasFieldTest(String, String, Class<?>, int, boolean) - Method in class Autograder
-
Runs a test to make sure that the student has an expected field..
- hasFieldTest(String, String, String, String[], boolean) - Method in class Autograder
-
Runs a test to make sure that the student has an expected field..
- hashCode() - Method in class Picture
-
This operation is not supported because pictures are mutable.
- hasJunits() - Method in class Program
-
Method to check if the file has junits attacked.
- hasMethodsTest(String, String, boolean) - Method in class Autograder
-
Test to check whether a class complies with an interface.
- hasMethodTest(String, String, Class<?>[], Class<?>, boolean, int, boolean) - Method in class Autograder
-
Method to test whether a method exists.
- hasMethodTest(String, String, String[], String, boolean, String[], boolean) - Method in class Autograder
-
Method to test whether a method exists.
- hasNextKeyTyped() - Static method in class StdDraw
-
Returns true if the user has typed a key (that has not yet been processed).
- hasOverriddenMethodTest(String, String, Class<?>[], Class<?>, boolean, int, boolean) - Method in class Autograder
-
Method to test whether a overriden method exists.
- hasOverriddenMethodTest(String, String, String[], String, boolean, String[], boolean) - Method in class Autograder
-
Method to test whether an overriden method exists.
- height() - Method in class Picture
-
Returns the height of the picture.
I
- isKeyPressed(int) - Static method in class StdDraw
-
Returns true if the given key is being pressed.
- isMousePressed() - Static method in class StdDraw
-
Returns true if the mouse is being pressed.
J
- JunitListener - Class in <Unnamed>
-
A custom built Junit listener to work with the autograder.
- JunitListener(double, int, String, String) - Constructor for class JunitListener
-
The constructor of the listener.
- junitTests(String) - Method in class Autograder
-
This is a method to run a set of junit tests on a class.
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
- 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).
- logFileDiffTest(String, String, String, String, boolean) - Method in class Autograder
-
Runs a diff test for a specific java program comparing resulting file output.
- logFileDiffTests(String, int, int, String, String, boolean) - Method in class Autograder
-
Runs all the diff tests for a specific java program comparing resulting file output.
- logFileDiffTests(String, int, String, String, boolean) - Method in class Autograder
-
Runs all the diff tests for a specific java program comparing resulting file output.
M
- MAGENTA - Static variable in class StdDraw
-
The color magenta.
- main(String[]) - Static method in class AutograderMain
-
Main method of the autograder.
- main(String[]) - Static method in class Picture
-
Unit tests this
Picturedata type. - main(String[]) - Static method in class StdDraw
-
Test client.
- maxScore - Variable in class Autograder
-
The value of each test.
- 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
-
Deprecated.replaced by
isMousePressed() - 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.
N
- name() - Method in class Program
-
Getter for the name.
- nextKeyTyped() - Static method in class StdDraw
-
Returns the next key that was typed by the user (that your program has not already processed).
O
P
- pause(int) - Static method in class StdDraw
-
Pause for t milliseconds.
- 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.
- Picture - Class in <Unnamed>
-
This class provides methods for manipulating individual pixels of an image using the RGB color format.
- Picture(int, int) - Constructor for class Picture
-
Creates a
width-by-heightpicture, withwidthcolumns andheightrows, where each pixel is black. - Picture(File) - Constructor for class Picture
-
Creates a picture by reading the image from a PNG, GIF, or JPEG file.
- Picture(String) - Constructor for class Picture
-
Creates a picture by reading an image from a file or URL.
- Picture(Picture) - Constructor for class Picture
-
Creates a new picture that is a deep copy of the argument picture.
- PictureAutograder - Class in <Unnamed>
-
Example child class of the Autograder.
- PictureAutograder() - Constructor for class PictureAutograder
-
The constructor of a picture Autograder.
- pictureDiffTest(String, String, double, double) - Method in class PictureAutograder
-
Runs a picture diff tests for a specific file.
- 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), ..., (xn1, yn1).
- PRINCETON_ORANGE - Static variable in class StdDraw
-
Shade of orange used in Princeton University's identity.
- Program - Class in <Unnamed>
-
Small class representing a Java program.
R
- rectangle(double, double, double, double) - Static method in class StdDraw
-
Draws a rectangle of the specified size, centered at (x, y).
- RED - Static variable in class StdDraw
-
The color red.
- runMethodWithTimeout(Method, Object, Object...) - Method in class Autograder
S
- save(File) - Method in class Picture
-
Saves the picture to a file in a PNG or JPEG image format.
- save(String) - Method in class Picture
-
Saves the picture to a file in either PNG or JPEG format.
- save(String) - Static method in class StdDraw
-
Saves the drawing to using the specified filename.
- scale(int) - Method in class Picture
-
Scale the picture up by a factor, resulting in larger pixelated image.
- set(int, int, Color) - Method in class Picture
-
Sets the color of pixel (
col,row) to given color. - 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.
- setDefaultValues(double, double, String, boolean) - Static method in class GatewayCheckstyleListener
-
Sets the values for the score and visibility of checkstyle tests.
- setExists(boolean) - Method in class Program
-
Set whether a submission file exists.
- setFilename(String) - Method in class Picture
-
Sets the filename.
- 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.
- setOriginLowerLeft() - Method in class Picture
-
Sets the origin to be the lower left pixel.
- setOriginUpperLeft() - Method in class Picture
-
Sets the origin to be the upper left pixel.
- setPenColor() - Static method in class StdDraw
-
Set the pen color to the default color (black).
- setPenColor(int, int, int) - Static method in class StdDraw
-
Sets the pen color to the specified RGB color.
- setPenColor(Color) - Static method in class StdDraw
-
Sets the pen color to the specified 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.
- setRGB(int, int, int) - Method in class Picture
-
Sets the color of pixel (
col,row) to given color. - 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.
- setScore(double) - Method in class Autograder
-
A method to set the point value of the tests.
- setTimeout(long) - Method in class Autograder
-
Setter for the amount of time to wait before timing out while running student code.
- setVisibility(int) - Method in class Autograder
-
Setter of the visibility of the tests.
- 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() - Method in class Picture
-
Displays the picture in a window on the screen.
- show() - Static method in class StdDraw
-
Copies offscreen buffer to onscreen buffer.
- show(int) - Static method in class StdDraw
-
Deprecated.
- square(double, double, double) - Static method in class StdDraw
-
Draws a square of side length 2r, centered at (x, y).
- stackTraceToString(Exception) - Static method in class Autograder
- StdDraw - Class in <Unnamed>
-
The
StdDrawclass provides a basic capability for creating drawings with your programs. - stdOutDiffTest(String, String, boolean, boolean) - Method in class Autograder
-
Runs a diff test on the std output of a specific java program.
- stdOutDiffTests(String, int, boolean, boolean) - Method in class Autograder
-
Runs all the diff tests for a specific file.
- stdOutDiffTests(String, int, boolean, boolean, int) - Method in class Autograder
-
Runs all the diff tests for a specific file.
- StopExitSecurityManager() - Constructor for class Autograder.StopExitSecurityManager
T
- testAssumptionFailure(Failure) - Method in class JunitListener
- testCheckstyle(String) - Method in class Autograder
-
Checks if checkstyle passed.
- testCompiles(String) - Method in class Autograder
-
Function to test if a class compiles.
- testConstructorCount(String, Integer) - Method in class Autograder
-
Runs a test to make sure that the student submitted enough constructors.
- testCount() - Method in class Program
-
Getter for the test count.
- testFailure(Failure) - Method in class JunitListener
- testFinished(Description) - Method in class JunitListener
- testMethodCount(String, Integer, int, boolean, boolean) - Method in class Autograder
-
Runs a test to make sure that the student submitted enough methods.
- testPublicInstanceVariables(String) - Method in class Autograder
-
Runs a test to make sure that the student code has no public instace variables.
- testRunFinished() - Method in class Autograder
-
This is the wrap-up code of the autograder.
- testRunFinished(String) - Method in class Autograder
-
This is the wrap-up code of the autograder.
- testSortedCheckstyle(String, double, boolean) - Method in class Autograder
-
A test that runs a checkstyle test sorting the output.
- testSourceExists(String) - Method in class Autograder
-
Test to check if source file exists.
- testStarted(Description) - Method in class JunitListener
- 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 Picture
-
Returns a string representation of this picture.
- triangle(double, double, double, double, double, double) - Static method in class StdDraw
-
Draws a triangle with the specified corner locations.
U
- unitCount() - Method in class Program
-
Getter for the unitCount.
- unitNum() - Method in class JunitListener
-
Method to get the current unit test number.
- userWritten() - Method in class Program
-
Metho to check who wrote the java file.
V
- visibility - Variable in class Autograder
-
The visibilty for the current gradescope test.
W
- WHITE - Static variable in class StdDraw
-
The color white.
- width() - Method in class Picture
-
Returns the width of the picture.
Y
A B C D E F G H I J K L M N O P R S T U V W YAll Classes All Packages