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

A

actionPerformed(ActionEvent) - Method in class Draw
This method cannot be called directly.
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.
actionPerformed(ActionEvent) - Method in class StdDraw3D
Deprecated. 
addFog(Color, double, double) - Static method in class StdDraw3D
 
addListener(DrawListener) - Method in class Draw
Event-based interactions.
AIRPLANE_MODE - Static variable in class StdDraw3D
 
ambientLight(Color) - Static method in class StdDraw3D
Adds ambient light of color col.
angle(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the smallest angle between this and that vector, in DEGREES.
arc(double, double, double, double, double) - Method in class Draw
Draw an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees).
arc(double, double, double, double, double) - Static method in class StdDraw
Draw an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees).

B

bernoulli(double) - Static method in class StdRandom
Returns true with probability p.
bernoulli() - Static method in class StdRandom
Returns a boolean, which is true with probability 0.5, and false otherwise.
BinaryIn - Class in <Unnamed>
Binary input.
BinaryIn() - Constructor for class BinaryIn
Create a binary input stream from standard input.
BinaryIn(InputStream) - Constructor for class BinaryIn
Create a binary input stream from an InputStream.
BinaryIn(Socket) - Constructor for class BinaryIn
Create a binary input stream from a socket.
BinaryIn(URL) - Constructor for class BinaryIn
Create a binary input stream from a URL.
BinaryIn(String) - Constructor for class BinaryIn
Create a binary input stream from a filename or URL name.
BinaryOut - Class in <Unnamed>
Binary output.
BinaryOut(OutputStream) - Constructor for class BinaryOut
Create a binary output stream from an OutputStream os.
BinaryOut() - Constructor for class BinaryOut
Create a binary output stream from standard output.
BinaryOut(String) - Constructor for class BinaryOut
Create a binary output stream from a filename s.
BinaryOut(Socket) - Constructor for class BinaryOut
Create a binary output stream from a Socket.
BinaryStdIn - Class in <Unnamed>
Binary standard input.
BinaryStdOut - Class in <Unnamed>
Binary standard output.
BLACK - Static variable in class Draw
 
BLACK - Static variable in class StdDraw
 
BLACK - Static variable in class StdDraw3D
 
BLUE - Static variable in class Draw
 
BLUE - Static variable in class StdDraw
 
BLUE - Static variable in class StdDraw3D
 
BOOK_BLUE - Static variable in class Draw
Shade of blue used in Introduction to Programming in Java.
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
 
BOOK_RED - Static variable in class Draw
Shade of red used in Algorithms 4th edition.
BOOK_RED - Static variable in class StdDraw
Shade of red used in Algorithms 4th edition.
box(double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a box at (x, y, z) with dimensions (w, h, d).
box(double, double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a box at (x, y, z) with dimensions (w, h, d) and axial rotations (xA, yA, zA).
box(double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a box at (x, y, z) with dimensions (w, h, d) and a texture from imageURL.
box(double, double, double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a box at (x, y, z) with dimensions (w, h, d), axial rotations (xA, yA, zA), and a texture from imageURL.

C

camera() - Static method in class StdDraw3D
Returns the Camera object.
canResync() - Static method in class StdInTest
 
cauchy() - Static method in class StdRandom
Returns a real number with a Cauchy distribution.
circle(double, double, double) - Method in class Draw
Draw a circle of radius r, centered on (x, y).
circle(double, double, double) - Static method in class StdDraw
Draw a circle of radius r, centered on (x, y).
clear() - Method in class Draw
Clear the screen to the default color (white).
clear(Color) - Method in class Draw
Clear the screen to the given color.
clear() - Static method in class StdDraw
Clear the screen (canvas?) to the default color (white).
clear(Color) - Static method in class StdDraw
Clear the screen (canvas?) to the given color.
clear() - Static method in class StdDraw3D
Clears the entire on the next call of show().
clear(Color) - Static method in class StdDraw3D
 
clear3D() - Static method in class StdDraw3D
Clears the 3D world on the screen for the next call of show();
clearFog() - Static method in class StdDraw3D
 
clearLight() - Static method in class StdDraw3D
Removes all current lighting from the scene.
clearOverlay() - Static method in class StdDraw3D
Clears the 2D overlay for the next call of show();
clearSound() - Static method in class StdDraw3D
 
close() - Method in class BinaryOut
Close and flush the binary output stream.
close() - Static method in class BinaryStdIn
Close this input stream and release any associated system resources.
close() - Static method in class BinaryStdOut
Flush and close standard output.
close() - Method in class In
Close the input stream.
close() - Method in class Out
Close the output stream.
close() - Static method in class StdAudio
Close standard audio.
close() - Static method in class StdOut
Close standard output.
coloredModel(String) - Static method in class StdDraw3D
 
coloredModel(String, boolean) - Static method in class StdDraw3D
 
combine(StdDraw3D.Shape...) - Static method in class StdDraw3D
Combines any number of shapes into one shape and returns it.
componentHidden(ComponentEvent) - Method in class StdDraw3D
Deprecated. 
componentMoved(ComponentEvent) - Method in class StdDraw3D
Deprecated. 
componentResized(ComponentEvent) - Method in class StdDraw3D
Deprecated. 
componentShown(ComponentEvent) - Method in class StdDraw3D
Deprecated. 
cone(double, double, double, double, double) - Static method in class StdDraw3D
Draws a cone at (x, y, z) with radius r and height h.
cone(double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a cone at (x, y, z) with radius r, height h, and axial rotations (xA, yA, zA).
cone(double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a cone at (x, y, z) with radius r, height h, and a texture from imageURL.
cone(double, double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a cone at (x, y, z) with radius r, height h, axial rotations (xA, yA, zA), and a texture from imageURL.
copy(StdDraw3D.Shape) - Static method in class StdDraw3D
Returns an identical copy of a Shape that can be controlled independently.
cross(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the cross product of this vector with that vector.
cube(double, double, double, double) - Static method in class StdDraw3D
Draws a cube at (x, y, z) with radius r.
cube(double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a cube at (x, y, z) with radius r and axial rotations (xA, yA, zA).
cube(double, double, double, double, String) - Static method in class StdDraw3D
Draws a cube at (x, y, z) with radius r and a texture from imageURL.
cube(double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a cube at (x, y, z) with radius r, axial rotations (xA, yA, zA), and a texture from imageURL.
CYAN - Static variable in class Draw
 
CYAN - Static variable in class StdDraw
 
CYAN - Static variable in class StdDraw3D
 
cylinder(double, double, double, double, double) - Static method in class StdDraw3D
Draws a cylinder at (x, y, z) with radius r and height h.
cylinder(double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a cylinder at (x, y, z) with radius r, height h, and axial rotations (xA, yA, zA).
cylinder(double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a cylinder at (x, y, z) with radius r, height h, and a texture from imageURL.
cylinder(double, double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a cylinder at (x, y, z) with radius r, height h, axial rotations (xA, yA, zA), and a texture from imageURL.

D

DARK_GRAY - Static variable in class Draw
 
DARK_GRAY - Static variable in class StdDraw
 
DARK_GRAY - Static variable in class StdDraw3D
 
direction() - Method in class StdDraw3D.Vector3D
Returns the unit vector in the direction of this vector.
directionalLight(StdDraw3D.Vector3D, Color) - Static method in class StdDraw3D
Adds a directional light of color col which appears to come from (x, y, z).
directionalLight(double, double, double, Color) - Static method in class StdDraw3D
Adds a directional light of color col which shines in the direction vector (x, y, z)
discrete(double[]) - Static method in class StdRandom
Returns a number from a discrete distribution: i with probability a[i].
distanceTo(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the Euclidian distance between this and that.
dot(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the dot product of this and that.
Draw - Class in <Unnamed>
 
Draw(String) - Constructor for class Draw
Create an empty drawing object with the given name.
Draw() - Constructor for class Draw
Create an empty drawing object.
draw() - Method in class StdDraw3D.Vector3D
Draws this vector as a point from the origin to StdDraw3D.
DrawListener - Interface in <Unnamed>
 

E

elapsedTime() - Method in class Stopwatch
Return elapsed time (in seconds) since this object was created.
ellipse(double, double, double, double) - Method in class Draw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
ellipse(double, double, double, double) - Static method in class StdDraw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
ellipsoid(double, double, double, double, double, double) - Static method in class StdDraw3D
Draws an ellipsoid at (x, y, z) with dimensions (w, h, d).
ellipsoid(double, double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws an ellipsoid at (x, y, z) with dimensions (w, h, d) and axial rotations (xA, yA, zA).
ellipsoid(double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws an ellipsoid at (x, y, z) with dimensions (w, h, d) and a texture from imageURL.
ellipsoid(double, double, double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws an ellipsoid at (x, y, z) with dimensions (w, h, d), axial rotations (xA, yA, zA), and a texture from imageURL.
equals(Object) - Method in class Picture
Is this Picture equal to obj?
escape(Object) - Static method in class StdInTest
 
exists() - Method in class BinaryIn
Does the binary input stream exist?
exists() - Method in class In
Does the input stream exist?
exp(double) - Static method in class StdRandom
Returns a real number from an exponential distribution with rate lambda.

F

filledCircle(double, double, double) - Method in class Draw
Draw filled circle of radius r, centered on (x, y).
filledCircle(double, double, double) - Static method in class StdDraw
Draw filled circle of radius r, centered on (x, y).
filledEllipse(double, double, double, double) - Method in class Draw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
filledEllipse(double, double, double, double) - Static method in class StdDraw
Draw an ellipse with given semimajor and semiminor axes, centered on (x, y).
filledPolygon(double[], double[]) - Method in class Draw
Draw a filled polygon with the given (x[i], y[i]) coordinates.
filledPolygon(double[], double[]) - Static method in class StdDraw
Draw a filled polygon with the given (x[i], y[i]) coordinates.
filledRectangle(double, double, double, double) - Method in class Draw
Draw a filled rectangle of given half width and half height, centered on (x, y).
filledRectangle(double, double, double, double) - Static method in class StdDraw
Draw a filled rectangle of given half width and half height, centered on (x, y).
filledSquare(double, double, double) - Method in class Draw
Draw a filled square of side length 2r, centered on (x, y).
filledSquare(double, double, double) - Static method in class StdDraw
Draw a filled square of side length 2r, centered on (x, y).
finished() - Static method in class StdDraw3D
Allows for camera navigation of a scene without redrawing.
FIXED_MODE - Static variable in class StdDraw3D
 
flush() - Method in class BinaryOut
Flush the binary output stream, padding 0s if number of bits written so far is not a multiple of 8.
flush() - Static method in class BinaryStdOut
Flush standard output, padding 0s if number of bits written so far is not a multiple of 8.
FPS_MODE - Static variable in class StdDraw3D
 
fullscreen() - Static method in class StdDraw3D
 

G

gaussian() - Static method in class StdRandom
Returns a real number with a standard Gaussian distribution.
gaussian(double, double) - Static method in class StdRandom
Returns a real number from a Gaussian distribution with given mean and stddev.
geometric(double) - Static method in class StdRandom
Returns an integer with a geometric distribution with mean 1/p.
get(int, int) - Method in class Picture
Return the color of pixel (i, j).
getAntiAliasing() - Static method in class StdDraw3D
Returns true if anti-aliasing is enabled.
getCameraDirection() - Static method in class StdDraw3D
 
getCameraMode() - Static method in class StdDraw3D
Gets the current camera mode.
getCameraOrientation() - Static method in class StdDraw3D
 
getCameraPosition() - Static method in class StdDraw3D
 
getFont() - Method in class Draw
Get the current font.
getFont() - Static method in class StdDraw
Get the current font.
getFont() - Static method in class StdDraw3D
Gets the current drawing Font.
getJLabel() - Method in class Picture
Return a JLabel containing this Picture, for embedding in a JPanel, JFrame or other GUI widget.
getNumDivisions() - Static method in class StdDraw3D
Gets the number of triangular divisons of curved objects.
getOrbitCenter() - Static method in class StdDraw3D
 
getPenColor() - Method in class Draw
Get the current pen color.
getPenColor() - Static method in class StdDraw
Get the current pen color.
getPenColor() - Static method in class StdDraw3D
Returns the current pen color.
getPenRadius() - Method in class Draw
Get the current pen radius.
getPenRadius() - Static method in class StdDraw
Get the current pen radius.
getPenRadius() - Static method in class StdDraw3D
Gets the current pen radius.
getSeed() - Static method in class StdRandom
Get the seed of the pseudorandom number generator.
GRAY - Static variable in class Draw
 
GRAY - Static variable in class StdDraw
 
GRAY - Static variable in class StdDraw3D
 
GREEN - Static variable in class Draw
 
GREEN - Static variable in class StdDraw
 
GREEN - Static variable in class StdDraw3D
 

H

hasNextChar() - Method in class In
Is the input empty (including whitespace)? Use this to know whether the next call to In.readChar() will succeed.
hasNextChar() - Static method in class StdIn
Is the input empty (not even whitespace)? Use this to know whether the next call to StdIn.readChar() will succeed.
hasNextKeyTyped() - Method in class Draw
Has the user typed a key?
hasNextKeyTyped() - Static method in class StdDraw
Has the user typed a key?
hasNextKeyTyped() - Static method in class StdDraw3D
Has the user typed a key?
hasNextLine() - Method in class In
Does the input have a next line? Use this to know whether the next call to In.readLine() will succeed.
hasNextLine() - Static method in class StdIn
Does the input have a next line? Use this to know whether the next call to StdIn.readLine() will succeed.
height() - Method in class Picture
Return the height of the picture in pixels.
hide() - Method in class StdDraw3D.Light
 
hide() - Method in class StdDraw3D.Shape
 

I

IMMERSIVE_MODE - Static variable in class StdDraw3D
 
In - Class in <Unnamed>
Input.
In() - Constructor for class In
Create an input stream from standard input.
In(Socket) - Constructor for class In
Create an input stream from a socket.
In(URL) - Constructor for class In
Create an input stream from a URL.
In(File) - Constructor for class In
Create an input stream from a file.
In(String) - Constructor for class In
Create an input stream from a filename or web page name.
In(Scanner) - Constructor for class In
Create an input stream from a given Scanner source; use with new Scanner(String) to read from a string.
isEmpty() - Method in class BinaryIn
Returns true if the binary input stream is empty.
isEmpty() - Static method in class BinaryStdIn
Returns true if standard input is empty.
isEmpty() - Method in class In
Is the input empty (except possibly for whitespace)? Use this to know whether the next call to In.readString(), In.readDouble(), etc will succeed.
isEmpty() - Static method in class StdIn
Is the input empty (except possibly for whitespace)? (A whitespace is a space, or a tab, or a newline, etc.) Use this to know whether the next call to StdIn.readString(), StdIn.readDouble(), etc will succeed.
isKeyPressed(int) - Method in class Draw
Is the keycode currently being pressed? This method takes as an argument the keycode (corresponding to a physical key).
isKeyPressed(int) - Static method in class StdDraw
Is the keycode currently being pressed? This method takes as an argument the keycode (corresponding to a physical key).
isKeyPressed(int) - Static method in class StdDraw3D
Is the given key currently pressed down? The keys correnspond to physical keys, not characters.

K

keyPressed(KeyEvent) - Method in class Draw
This method cannot be called directly.
keyPressed(KeyEvent) - Method in class StdDraw
This method cannot be called directly.
keyPressed(KeyEvent) - Method in class StdDraw3D
Deprecated. 
keyReleased(KeyEvent) - Method in class Draw
This method cannot be called directly.
keyReleased(KeyEvent) - Method in class StdDraw
This method cannot be called directly.
keyReleased(KeyEvent) - Method in class StdDraw3D
Deprecated. 
keyTyped(KeyEvent) - Method in class Draw
This method cannot be called directly.
keyTyped(char) - Method in interface DrawListener
 
keyTyped(KeyEvent) - Method in class StdDraw
This method cannot be called directly.
keyTyped(KeyEvent) - Method in class StdDraw3D
Deprecated. 

L

LIGHT_GRAY - Static variable in class Draw
 
LIGHT_GRAY - Static variable in class StdDraw
 
LIGHT_GRAY - Static variable in class StdDraw3D
 
line(double, double, double, double) - Method in class Draw
Draw a line from (x0, y0) to (x1, y1).
line(double, double, double, double) - Static method in class StdDraw
Draw a line from (x0, y0) to (x1, y1).
line(double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a single line from (x1, y1, z1) to (x2, y2, z2).
lines(double[], double[], double[]) - Static method in class StdDraw3D
Draws a set of connected lines.
lines(double[], double[], double[], Color[]) - Static method in class StdDraw3D
Draws a set of connected lines.
loadScene3D(String) - Static method in class StdDraw3D
 
LOOK_MODE - Static variable in class StdDraw3D
 
loop(String) - Static method in class StdAudio
Loop a sound file (in .wav, .mid, or .au format) in a background thread.

M

mag() - Method in class StdDraw3D.Vector3D
Returns the magnitude of this vector.
MAGENTA - Static variable in class Draw
 
MAGENTA - Static variable in class StdDraw
 
MAGENTA - Static variable in class StdDraw3D
 
main(String[]) - Static method in class BinaryIn
Test client.
main(String[]) - Static method in class BinaryOut
Test client.
main(String[]) - Static method in class BinaryStdIn
Test client.
main(String[]) - Static method in class BinaryStdOut
Test client.
main(String[]) - Static method in class Draw
Test client.
main(String[]) - Static method in class In
Test client.
main(String[]) - Static method in class Out
A test client.
main(String[]) - Static method in class Picture
Test client.
main(String[]) - Static method in class StdArrayIO
Test client.
main(String[]) - Static method in class StdAudio
Test client - play an A major scale to standard audio.
main(String[]) - Static method in class StdDraw
Test client.
main(String[]) - Static method in class StdDraw3D
 
main(String[]) - Static method in class StdIn
Interactive test of basic functionality.
main(String[]) - Static method in class StdInTest
 
main(String[]) - Static method in class StdOut
 
main(String[]) - Static method in class StdRandom
Unit test.
main(String[]) - Static method in class StdStats
Test client.
match(StdDraw3D.Shape) - Method in class StdDraw3D.Camera
 
match(StdDraw3D.Shape) - Method in class StdDraw3D.Light
 
match(StdDraw3D.Camera) - Method in class StdDraw3D.Light
 
match(StdDraw3D.Shape) - Method in class StdDraw3D.Shape
 
match(StdDraw3D.Camera) - Method in class StdDraw3D.Shape
 
max(double[]) - Static method in class StdStats
Returns the maximum value in the array a[].
max(double[], int, int) - Static method in class StdStats
Returns the maximum value in the subarray a[lo..hi].
max(int[]) - Static method in class StdStats
Returns the maximum value in the array a[].
mean(double[]) - Static method in class StdStats
Returns the average value in the array a[].
mean(double[], int, int) - Static method in class StdStats
Returns the average value in the subarray a[lo..hi].
mean(int[]) - Static method in class StdStats
Returns the average value in the array a[].
min(double[]) - Static method in class StdStats
Returns the minimum value in the array a[].
min(double[], int, int) - Static method in class StdStats
Returns the minimum value in the subarray a[lo..hi].
min(int[]) - Static method in class StdStats
Returns the minimum value in the array a[].
minus(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the difference of this and that vector.
minus(double, double, double) - Method in class StdDraw3D.Vector3D
 
model(String) - Static method in class StdDraw3D
 
model(String, boolean) - Static method in class StdDraw3D
 
mouse1Pressed() - Static method in class StdDraw3D
Is the mouse1 button pressed down?
mouse2Pressed() - Static method in class StdDraw3D
Is the mouse2 button pressed down?
mouse3Pressed() - Static method in class StdDraw3D
Is the mouse3 button pressed down?
mouseClicked(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseClicked(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseClicked(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseDragged(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseDragged(double, double) - Method in interface DrawListener
 
mouseDragged(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseDragged(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseEntered(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseEntered(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseEntered(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseExited(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseExited(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseExited(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseMoved(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseMoved(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseMoved(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mousePressed() - Method in class Draw
Is the mouse being pressed?
mousePressed(MouseEvent) - Method in class Draw
This method cannot be called directly.
mousePressed(double, double) - Method in interface DrawListener
 
mousePressed() - Static method in class StdDraw
Is the mouse being pressed?
mousePressed(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mousePressed() - Static method in class StdDraw3D
Is any mouse button pressed?
mousePressed(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseReleased(MouseEvent) - Method in class Draw
This method cannot be called directly.
mouseReleased(double, double) - Method in interface DrawListener
 
mouseReleased(MouseEvent) - Method in class StdDraw
This method cannot be called directly.
mouseReleased(MouseEvent) - Method in class StdDraw3D
Deprecated. 
mouseWheelMoved(MouseWheelEvent) - Method in class StdDraw3D
Deprecated. 
mouseX() - Method in class Draw
What is the x-coordinate of the mouse?
mouseX() - Static method in class StdDraw
What is the x-coordinate of the mouse?
mouseX() - Static method in class StdDraw3D
Where is the mouse?
mouseY() - Method in class Draw
What is the y-coordinate of the mouse?
mouseY() - Static method in class StdDraw
What is the y-coordinate of the mouse?
mouseY() - Static method in class StdDraw3D
Where is the mouse?
moveRelative(StdDraw3D.Vector3D) - Method in class StdDraw3D.Camera
 

N

nextKeyTyped() - Method in class Draw
What is the next key that was typed by the user?
nextKeyTyped() - Static method in class StdDraw
What is the next key that was typed by the user? This method returns a Unicode character corresponding to the key typed (such as 'a' or 'A').
nextKeyTyped() - Static method in class StdDraw3D
What is the next key that was typed by the user?

O

ORANGE - Static variable in class Draw
 
ORANGE - Static variable in class StdDraw
 
ORANGE - Static variable in class StdDraw3D
 
ORBIT_MODE - Static variable in class StdDraw3D
 
Out - Class in <Unnamed>
This class provides methods for writing strings and numbers to various output streams, including standard output, file, and sockets.
Out(OutputStream) - Constructor for class Out
Create an Out object using an OutputStream.
Out() - Constructor for class Out
Create an Out object using standard output.
Out(Socket) - Constructor for class Out
Create an Out object using a Socket.
Out(String) - Constructor for class Out
Create an Out object using a file specified by the given name.
overlayArc(double, double, double, double, double) - Static method in class StdDraw3D
Draws an arc of radius r, centered on (x, y), from angle1 to angle2 (in degrees).
overlayCircle(double, double, double) - Static method in class StdDraw3D
Draws a circle of radius r, centered on (x, y).
overlayEllipse(double, double, double, double) - Static method in class StdDraw3D
Draws an ellipse with given semimajor and semiminor axes, centered on (x, y).
overlayFilledCircle(double, double, double) - Static method in class StdDraw3D
Draws a filled circle of radius r, centered on (x, y).
overlayFilledEllipse(double, double, double, double) - Static method in class StdDraw3D
Draws a filled ellipse with given semimajor and semiminor axes, centered on (x, y).
overlayFilledPolygon(double[], double[]) - Static method in class StdDraw3D
Draws a filled polygon with the given (x[i], y[i]) coordinates.
overlayFilledRectangle(double, double, double, double) - Static method in class StdDraw3D
Draws a filled rectangle of given half width and half height, centered on (x, y).
overlayFilledSquare(double, double, double) - Static method in class StdDraw3D
Draws a filled square of side length 2r, centered on (x, y).
overlayLine(double, double, double, double) - Static method in class StdDraw3D
Draws a line from (x0, y0) to (x1, y1).
overlayPicture(double, double, String) - Static method in class StdDraw3D
Draws a picture (gif, jpg, or png) centered on (x, y).
overlayPicture(double, double, String, double) - Static method in class StdDraw3D
Draws a picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees.
overlayPicture(double, double, String, double, double) - Static method in class StdDraw3D
Draw picture (gif, jpg, or png) centered on (x, y), rescaled to w-by-h.
overlayPicture(double, double, String, double, double, double) - Static method in class StdDraw3D
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees, rescaled to w-by-h.
overlayPixel(double, double) - Static method in class StdDraw3D
Draws one pixel at (x, y).
overlayPoint(double, double) - Static method in class StdDraw3D
Draws a point at (x, y).
overlayPolygon(double[], double[]) - Static method in class StdDraw3D
Draws a polygon with the given (x[i], y[i]) coordinates.
overlayRectangle(double, double, double, double) - Static method in class StdDraw3D
Draws a rectangle of given half width and half height, centered on (x, y).
overlaySquare(double, double, double) - Static method in class StdDraw3D
Draws a square of side length 2r, centered on (x, y).
overlayText(double, double, String) - Static method in class StdDraw3D
Draws the given text as stationary on the window at (x, y).
overlayText(double, double, String, double) - Static method in class StdDraw3D
Writes the given text string in the current font, centered on (x, y) and rotated by the specified number of degrees.
overlayTextLeft(double, double, String) - Static method in class StdDraw3D
Write the given text string in the current font, left-aligned at (x, y).
overlayTextRight(double, double, String) - Static method in class StdDraw3D
Write the given text string in the current font, right-aligned at (x, y).

P

pair(StdDraw3D.Shape) - Method in class StdDraw3D.Camera
 
pareto(double) - Static method in class StdRandom
Returns a real number with a Pareto distribution with parameter alpha.
pause(int) - Static method in class StdDraw3D
Pauses for a given amount of milliseconds.
picture(double, double, String) - Method in class Draw
Draw picture (gif, jpg, or png) centered on (x, y).
picture(double, double, String, double) - Method in class Draw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees
picture(double, double, String, double, double) - Method in class Draw
Draw picture (gif, jpg, or png) centered on (x, y), rescaled to w-by-h.
picture(double, double, String, double, double, double) - Method in class Draw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees, rescaled to w-by-h.
Picture - Class in <Unnamed>
This class provides methods for manipulating individual pixels of an image.
Picture(int, int) - Constructor for class Picture
Create a blank w-by-h picture, where each pixel is black.
Picture(Picture) - Constructor for class Picture
Copy constructor.
Picture(String) - Constructor for class Picture
Create a picture by reading in a .png, .gif, or .jpg from the given filename or URL name.
Picture(File) - Constructor for class Picture
Create a picture by reading in a .png, .gif, or .jpg from a File.
picture(double, double, String) - Static method in class StdDraw
Draw picture (gif, jpg, or png) centered on (x, y).
picture(double, double, String, double) - Static method in class StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees
picture(double, double, String, double, double) - Static method in class StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rescaled to w-by-h.
picture(double, double, String, double, double, double) - Static method in class StdDraw
Draw picture (gif, jpg, or png) centered on (x, y), rotated given number of degrees, rescaled to w-by-h.
PINK - Static variable in class Draw
 
PINK - Static variable in class StdDraw
 
PINK - Static variable in class StdDraw3D
 
play(double) - Static method in class StdAudio
Write one sample (between -1.0 and +1.0) to standard audio.
play(double[]) - Static method in class StdAudio
Write an array of samples (between -1.0 and +1.0) to standard audio.
play(String) - Static method in class StdAudio
Play a sound file (in .wav, .mid, or .au format) in a background thread.
playAmbientSound(String) - Static method in class StdDraw3D
 
playAmbientSound(String, boolean) - Static method in class StdDraw3D
 
plotBars(double[]) - Static method in class StdStats
Plots bars (i, a[i]) to standard draw, for i in 0..N-1, where N is the length of a[].
plotLines(double[]) - Static method in class StdStats
Plots line segments connecting points (i, a[i]) to standard draw.
plotPoints(double[]) - Static method in class StdStats
Plots the points (i, a[i]) to standard draw.
plus(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the sum of this and that vector.
plus(double, double, double) - Method in class StdDraw3D.Vector3D
 
point(double, double) - Method in class Draw
Draw a point at (x, y).
point(double, double) - Static method in class StdDraw
Draw a point at (x, y).
point(double, double, double) - Static method in class StdDraw3D
Draws a single point at (x, y, z).
pointLight(StdDraw3D.Vector3D, Color) - Static method in class StdDraw3D
 
pointLight(double, double, double, Color) - Static method in class StdDraw3D
 
pointLight(StdDraw3D.Vector3D, Color, double) - Static method in class StdDraw3D
 
pointLight(double, double, double, Color, double) - Static method in class StdDraw3D
 
points(double[], double[], double[]) - Static method in class StdDraw3D
Draws a set of points at the given coordinates.
points(double[], double[], double[], Color[]) - Static method in class StdDraw3D
Draws a set of points at the given coordinates with the given colors.
poisson(double) - Static method in class StdRandom
Returns an integer with a Poisson distribution with mean lambda > 0.
polygon(double[], double[]) - Method in class Draw
Draw a polygon with the given (x[i], y[i]) coordinates.
polygon(double[], double[]) - Static method in class StdDraw
Draw a polygon with the given (x[i], y[i]) coordinates.
polygon(double[], double[], double[]) - Static method in class StdDraw3D
Draws a filled polygon with the given vertices.
print() - Method in class Out
Flush the output stream.
print(Object) - Method in class Out
Print an object and then flush the output stream.
print(boolean) - Method in class Out
Print an boolean and then flush the output stream.
print(char) - Method in class Out
Print an char and then flush the output stream.
print(double) - Method in class Out
Print an double and then flush the output stream.
print(float) - Method in class Out
Print a float and then flush the output stream.
print(int) - Method in class Out
Print an int and then flush the output stream.
print(long) - Method in class Out
Print a long and then flush the output stream.
print(byte) - Method in class Out
Print a byte and then flush the output stream.
print(double[]) - Static method in class StdArrayIO
Print an array of doubles to standard output.
print(double[][]) - Static method in class StdArrayIO
Print the M-by-N array of doubles to standard output.
print(int[]) - Static method in class StdArrayIO
Print an array of ints to standard output.
print(int[][]) - Static method in class StdArrayIO
Print the M-by-N array of ints to standard output.
print(boolean[]) - Static method in class StdArrayIO
Print an array of booleans to standard output.
print(boolean[][]) - Static method in class StdArrayIO
Print the M-by-N array of booleans to standard output.
print() - Static method in class StdOut
Flush standard output.
print(Object) - Static method in class StdOut
Print an Object to standard output and flush standard output.
print(boolean) - Static method in class StdOut
Print a boolean to standard output and flush standard output.
print(char) - Static method in class StdOut
Print a char to standard output and flush standard output.
print(double) - Static method in class StdOut
Print a double to standard output and flush standard output.
print(float) - Static method in class StdOut
Print a float to standard output and flush standard output.
print(int) - Static method in class StdOut
Print an int to standard output and flush standard output.
print(long) - Static method in class StdOut
Print a long to standard output and flush standard output.
print(short) - Static method in class StdOut
Print a short to standard output and flush standard output.
print(byte) - Static method in class StdOut
Print a byte to standard output and flush standard output.
printf(String, Object...) - Method in class Out
Print a formatted string using the specified format string and arguments, and then flush the output stream.
printf(Locale, String, Object...) - Method in class Out
Print a formatted string using the specified locale, format string and arguments, and then flush the output stream.
printf(String, Object...) - Static method in class StdOut
Print a formatted string to standard output using the specified format string and arguments, and flush standard output.
printf(Locale, String, Object...) - Static method in class StdOut
Print a formatted string to standard output using the specified locale, format string, and arguments, and flush standard output.
println() - Method in class Out
Terminate the line.
println(Object) - Method in class Out
Print an object and then terminate the line.
println(boolean) - Method in class Out
Print a boolean and then terminate the line.
println(char) - Method in class Out
Print a char and then terminate the line.
println(double) - Method in class Out
Print an double and then terminate the line.
println(float) - Method in class Out
Print a float and then terminate the line.
println(int) - Method in class Out
Print an int and then terminate the line.
println(long) - Method in class Out
Print a long and then terminate the line.
println(byte) - Method in class Out
Print a byte and then terminate the line.
println() - Static method in class StdOut
Terminate the current line by printing the line separator string.
println(Object) - Static method in class StdOut
Print an object to standard output and then terminate the line.
println(boolean) - Static method in class StdOut
Print a boolean to standard output and then terminate the line.
println(char) - Static method in class StdOut
Print a char to standard output and then terminate the line.
println(double) - Static method in class StdOut
Print a double to standard output and then terminate the line.
println(float) - Static method in class StdOut
Print a float to standard output and then terminate the line.
println(int) - Static method in class StdOut
Print an int to standard output and then terminate the line.
println(long) - Static method in class StdOut
Print a long to standard output and then terminate the line.
println(short) - Static method in class StdOut
Print a short to standard output and then terminate the line.
println(byte) - Static method in class StdOut
Print a byte to standard output and then terminate the line.
proj(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Returns the projection of this onto the given line.

R

random() - Static method in class StdRandom
Returns real number uniformly in [0, 1).
randomColor() - Static method in class StdDraw3D
Returns a randomly generated color.
randomDirection() - Static method in class StdDraw3D
Returns a randomly generated normalized Vector3D.
randomRainbowColor() - Static method in class StdDraw3D
Returns a randomly generated color on the rainbow.
read(String) - Static method in class StdAudio
Read audio samples from a file (in .wav or .au format) and return them as a double array with values between -1.0 and +1.0.
readAll() - Method in class In
Read and return the remainder of the input as a string.
readAll() - Static method in class StdIn
Read and return the remainder of the input as a string.
readAllDoubles() - Method in class In
Read all doubles until the end of input is reached, and return them.
readAllDoubles() - Static method in class StdIn
Read all doubles until the end of input is reached, and return them.
readAllInts() - Method in class In
Read all ints until the end of input is reached, and return them.
readAllInts() - Static method in class StdIn
Read all ints until the end of input is reached, and return them.
readAllStrings() - Method in class In
Read all strings (separated by whitespace) until the end of input is reached, and return them as an array of strings.
readAllStrings() - Static method in class StdIn
Read all strings until the end of input is reached, and return them.
readBoolean() - Method in class BinaryIn
Read the next bit of data from the binary input stream and return as a boolean.
readBoolean() - Static method in class BinaryStdIn
Read the next bit of data from standard input and return as a boolean.
readBoolean() - Method in class In
Read and return the next boolean, allowing case-insensitive "true" or "1" for true, and "false" or "0" for false.
readBoolean() - Static method in class StdIn
Read and return the next boolean, allowing case-insensitive "true" or "1" for true, and "false" or "0" for false.
readBoolean1D() - Static method in class StdArrayIO
Read in and return an array of booleans from standard input.
readBoolean2D() - Static method in class StdArrayIO
Read in and return an M-by-N array of booleans from standard input.
readByte() - Method in class BinaryIn
Read the next 8 bits from the binary input stream and return as an 8-bit byte.
readByte() - Static method in class BinaryStdIn
Read the next 8 bits from standard input and return as an 8-bit byte.
readByte() - Method in class In
Read and return the next byte.
readByte() - Static method in class StdIn
Lê e devolve o próximo byte.
readChar() - Method in class BinaryIn
Read the next 8 bits from the binary input stream and return as an 8-bit char.
readChar(int) - Method in class BinaryIn
Read the next r bits from the binary input stream and return as an r-bit character.
readChar() - Static method in class BinaryStdIn
Read the next 8 bits from standard input and return as an 8-bit char.
readChar(int) - Static method in class BinaryStdIn
Read the next r bits from standard input and return as an r-bit character.
readChar() - Method in class In
Read and return the next character.
readChar() - Static method in class StdIn
Read and return the next character.
readDouble() - Method in class BinaryIn
Read the next 64 bits from the binary input stream and return as a 64-bit double.
readDouble() - Static method in class BinaryStdIn
Read the next 64 bits from standard input and return as a 64-bit double.
readDouble() - Method in class In
Read and return the next double (delimited by whitespace).
readDouble() - Static method in class StdIn
Lê e devolve o próximo double.
readDouble1D() - Static method in class StdArrayIO
Read in and return an array of doubles from standard input.
readDouble2D() - Static method in class StdArrayIO
Read in and return an M-by-N array of doubles from standard input.
readDoubles(String) - Static method in class In
Deprecated.
Clearer to use new In(filename).In.readAllDoubles()
readDoubles() - Static method in class In
Deprecated.
Clearer to use StdIn.readAllDoubles()
readDoubles() - Static method in class StdIn
Deprecated.
For more consistency, use StdIn.readAllDoubles()
readFloat() - Method in class BinaryIn
Read the next 32 bits from standard input and return as a 32-bit float.
readFloat() - Static method in class BinaryStdIn
Read the next 32 bits from standard input and return as a 32-bit float.
readFloat() - Method in class In
Read and return the next float (delimited by whitespace).
readFloat() - Static method in class StdIn
Lê e devolve o próximo float.
readInt() - Method in class BinaryIn
Read the next 32 bits from the binary input stream and return as a 32-bit int.
readInt(int) - Method in class BinaryIn
Read the next r bits from the binary input stream return as an r-bit int.
readInt() - Static method in class BinaryStdIn
Read the next 32 bits from standard input and return as a 32-bit int.
readInt(int) - Static method in class BinaryStdIn
Read the next r bits from standard input and return as an r-bit int.
readInt() - Method in class In
Read and return the next int (delimited by whitespace).
readInt() - Static method in class StdIn
Read and return the next int.
readInt1D() - Static method in class StdArrayIO
Read in and return an array of ints from standard input.
readInt2D() - Static method in class StdArrayIO
Read in and return an M-by-N array of ints from standard input.
readInts(String) - Static method in class In
Deprecated.
Clearer to use new In(filename).In.readAllInts()
readInts() - Static method in class In
Deprecated.
Clearer to use StdIn.readAllInts()
readInts() - Static method in class StdIn
DEPRECATED: For more consistency, use readAllInts().
readLine() - Method in class In
Read and return the next line.
readLine() - Static method in class StdIn
Read and return the next line.
readLong() - Method in class BinaryIn
Read the next 64 bits from the binary input stream and return as a 64-bit long.
readLong() - Static method in class BinaryStdIn
Read the next 64 bits from standard input and return as a 64-bit long.
readLong() - Method in class In
Read and return the next long (delimited by whitespace).
readLong() - Static method in class StdIn
Lê e devolve o próximo long.
readShort() - Method in class BinaryIn
Read the next 16 bits from the binary input stream and return as a 16-bit short.
readShort() - Static method in class BinaryStdIn
Read the next 16 bits from standard input and return as a 16-bit short.
readShort() - Method in class In
Read and return the next short (delimited by whitespace).
readShort() - Static method in class StdIn
Lê e devolve o próximo short.
readString() - Method in class BinaryIn
Read the remaining bytes of data from the binary input stream and return as a string.
readString() - Static method in class BinaryStdIn
Read the remaining bytes of data from standard input and return as a string.
readString() - Method in class In
Read and return the next string (delimited by whitespace).
readString() - Static method in class StdIn
Read and return the next string.
readStrings(String) - Static method in class In
Deprecated.
Clearer to use new In(filename).In.readAllStrings()
readStrings() - Static method in class In
Deprecated.
Clearer to use StdIn.readAllStrings()
readStrings() - Static method in class StdIn
Deprecated.
For more consistency, use StdIn.readAllStrings()
rectangle(double, double, double, double) - Method in class Draw
Draw a rectangle of given half width and half height, centered on (x, y).
rectangle(double, double, double, double) - Static method in class StdDraw
Draw a rectangle of given half width and half height, centered on (x, y).
RED - Static variable in class Draw
 
RED - Static variable in class StdDraw
 
RED - Static variable in class StdDraw3D
 
reflect(StdDraw3D.Vector3D) - Method in class StdDraw3D.Vector3D
Reflects this vector across the direction given by line.
resyncMethod - Static variable in class StdInTest
 
rotateFPS(StdDraw3D.Vector3D) - Method in class StdDraw3D.Camera
 
rotateFPS(double, double, double) - Method in class StdDraw3D.Camera
 

S

SAMPLE_RATE - Static variable in class StdAudio
The sample rate - 44,100 Hz for CD quality audio.
save(String) - Method in class Draw
Save to file - suffix must be png, jpg, or gif.
save(String) - Method in class Picture
Save the picture to a file in a standard image format.
save(File) - Method in class Picture
Save the picture to a file in a standard image format.
save(String, double[]) - Static method in class StdAudio
Save the double array as a sound file (using .wav or .au format).
save(String) - Static method in class StdDraw
Save onscreen image to file - suffix must be png, jpg, or gif.
save(String) - Static method in class StdDraw3D
Saves to file - suffix must be png, jpg, or gif.
saveScene3D(String) - Static method in class StdDraw3D
 
scale(double) - Method in class StdDraw3D.Shape
 
scalePower(double) - Method in class StdDraw3D.Light
 
set(int, int, Color) - Method in class Picture
Set the color of pixel (i, j) to c.
setAntiAliasing(boolean) - Static method in class StdDraw3D
Sets anti-aliasing on or off.
setBackground(Color) - Static method in class StdDraw3D
Sets the background color to the given color.
setBackground(String) - Static method in class StdDraw3D
Sets the background image to the given filename, scaled to fit the window.
setBackgroundSphere(String) - Static method in class StdDraw3D
Sets the background to the given image file.
setCamera(double, double, double, double, double, double) - Static method in class StdDraw3D
 
setCamera(StdDraw3D.Vector3D, StdDraw3D.Vector3D) - Static method in class StdDraw3D
 
setCameraDirection(double, double, double) - Static method in class StdDraw3D
 
setCameraDirection(StdDraw3D.Vector3D) - Static method in class StdDraw3D
 
setCameraMode(int) - Static method in class StdDraw3D
Sets the current camera mode.
setCameraMode() - Static method in class StdDraw3D
Sets the default camera mode.
setCameraOrientation(double, double, double) - Static method in class StdDraw3D
 
setCameraOrientation(StdDraw3D.Vector3D) - Static method in class StdDraw3D
 
setCameraPosition(double, double, double) - Static method in class StdDraw3D
 
setCameraPosition(StdDraw3D.Vector3D) - Static method in class StdDraw3D
 
setCanvasSize(int, int) - Method in class Draw
Set the window size to w-by-h pixels.
setCanvasSize() - Static method in class StdDraw
Set the window size to the default size 512-by-512 pixels.
setCanvasSize(int, int) - Static method in class StdDraw
Set the window size to w-by-h pixels.
setCanvasSize(int, int) - Static method in class StdDraw3D
Sets the window size to w-by-h pixels.
setColor(Color) - Method in class StdDraw3D.Light
 
setColor(Color) - Method in class StdDraw3D.Shape
 
setColor(Color, int) - Method in class StdDraw3D.Shape
 
setDefaultLight() - Static method in class StdDraw3D
Adds the default lighting to the scene, called automatically at startup.
setFont() - Method in class Draw
Set the font to the default font (sans serif, 16 point).
setFont(Font) - Method in class Draw
Set the font to the given value.
setFont() - Static method in class StdDraw
Set the font to the default font (sans serif, 16 point).
setFont(Font) - Static method in class StdDraw
Set the font to the given value.
setFont() - Static method in class StdDraw3D
Sets the default font.
setFont(Font) - Static method in class StdDraw3D
Sets the font to draw text with.
setInfoDisplay(boolean) - Static method in class StdDraw3D
 
setLocationOnScreen(int, int) - Method in class Draw
Set the upper-left hand corner of the drawing window to be (x, y), where (0, 0) is upper left.
setNumDivisions(int) - Static method in class StdDraw3D
Sets the number of triangular divisons of curved objects.
setOrbitCenter(double, double, double) - Static method in class StdDraw3D
Sets the center of rotation for the camera mode ORBIT_MODE.
setOrbitCenter(StdDraw3D.Vector3D) - Static method in class StdDraw3D
Sets the center of rotation for the camera mode ORBIT_MODE.
setOriginLowerLeft() - Method in class Picture
Set the origin to be the lower left pixel.
setOriginUpperLeft() - Method in class Picture
Set the origin to be the upper left pixel.
setParallelProjection() - Static method in class StdDraw3D
Sets the projection mode to orthographic projection.
setPenColor() - Method in class Draw
Set the pen color to the default color (black).
setPenColor(Color) - Method in class Draw
Set the pen color to the given color.
setPenColor(int, int, int) - Method in class Draw
Set the pen color to the given RGB color.
setPenColor() - Static method in class StdDraw
Set the pen color to the default color (black).
setPenColor(Color) - Static method in class StdDraw
Set the pen color to the given color.
setPenColor(int, int, int) - Static method in class StdDraw
Set the pen color to the given RGB color.
setPenColor(Color, int) - Static method in class StdDraw3D
Sets the pen color to the given color and transparency.
setPenColor() - Static method in class StdDraw3D
Sets the pen color to the default.
setPenColor(Color) - Static method in class StdDraw3D
Sets the pen color to the given color.
setPenColor(int, int, int) - Static method in class StdDraw3D
 
setPenRadius() - Method in class Draw
Set the pen size to the default (.002).
setPenRadius(double) - Method in class Draw
Set the radius of the pen to the given size.
setPenRadius() - Static method in class StdDraw
Set the pen size to the default (.002).
setPenRadius(double) - Static method in class StdDraw
Set the radius of the pen to the given size.
setPenRadius() - Static method in class StdDraw3D
Sets the pen radius to the default value.
setPenRadius(double) - Static method in class StdDraw3D
Sets the pen radius to the given value.
setPerspectiveProjection() - Static method in class StdDraw3D
Sets the projection mode to perspective projection with a default field of view.
setPerspectiveProjection(double) - Static method in class StdDraw3D
Sets the projection mode to perspective projection with the given field of view.
setScale(double, double) - Static method in class StdDraw
Set the x-scale and y-scale (a 10% border is added to the values)
setScale() - Static method in class StdDraw3D
Sets the default scale for all three dimensions.
setScale(double, double) - Static method in class StdDraw3D
Sets the scale for all three dimensions.
setSeed(long) - Static method in class StdRandom
Define a semente do gerador de números pseudoaleatórios.
setXscale() - Method in class Draw
Set the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Method in class Draw
Set the x-scale (a 10% border is added to the values)
setXscale() - Static method in class StdDraw
Set the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Static method in class StdDraw
Set the x-scale (a 10% border is added to the values)
setYscale() - Method in class Draw
Set the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Method in class Draw
Set the y-scale (a 10% border is added to the values).
setYscale() - Static method in class StdDraw
Set the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Static method in class StdDraw
Set the y-scale (a 10% border is added to the values).
show(int) - Method in class Draw
Display on screen, pause for t milliseconds, and turn on animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will not be displayed on screen until the next call to show().
show() - Method in class Draw
Display on-screen and turn off animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will be displayed on screen when called.
show() - Method in class Picture
Display the picture in a window on the screen.
show(int) - Static method in class StdDraw
Display on screen, pause for t milliseconds, and turn on animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will not be displayed on screen until the next call to show().
show() - Static method in class StdDraw
Display on-screen and turn off animation mode: subsequent calls to drawing methods such as line(), circle(), and square() will be displayed on screen when called.
show() - Static method in class StdDraw3D
Renders to the screen, but does not pause.
show(int) - Static method in class StdDraw3D
Renders drawn 3D objects to the screen and draws the 2D overlay, then pauses for the given time.
show3D() - Static method in class StdDraw3D
 
show3D(int) - Static method in class StdDraw3D
Renders the drawn 3D objects to the screen, but not the overlay.
showOverlay() - Static method in class StdDraw3D
 
showOverlay(int) - Static method in class StdDraw3D
Displays the drawn overlay onto the screen.
shuffle(Object[]) - Static method in class StdRandom
Rearrange the elements of an array in random order.
shuffle(double[]) - Static method in class StdRandom
Rearrange the elements of a double array in random order.
shuffle(int[]) - Static method in class StdRandom
Rearrange the elements of an int array in random order.
shuffle(Object[], int, int) - Static method in class StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
shuffle(double[], int, int) - Static method in class StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
shuffle(int[], int, int) - Static method in class StdRandom
Rearrange the elements of the subarray a[lo..hi] in random order.
sphere(double, double, double, double) - Static method in class StdDraw3D
Draws a sphere at (x, y, z) with radius r.
sphere(double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a sphere at (x, y, z) with radius r and axial rotations (xA, yA, zA).
sphere(double, double, double, double, String) - Static method in class StdDraw3D
Draws a sphere at (x, y, z) with radius r and a texture from imageURL.
sphere(double, double, double, double, double, double, double, String) - Static method in class StdDraw3D
Draws a sphere at (x, y, z) with radius r, axial rotations (xA, yA, zA), and a texture from imageURL.
square(double, double, double) - Method in class Draw
Draw a square of side length 2r, centered on (x, y).
square(double, double, double) - Static method in class StdDraw
Draw a square of side length 2r, centered on (x, y).
stateChanged(ChangeEvent) - Method in class StdDraw3D
 
StdArrayIO - Class in <Unnamed>
Standard array IO.
StdAudio - Class in <Unnamed>
Standard audio.
stddev(double[]) - Static method in class StdStats
Returns the sample standard deviation in the array a[].
stddev(double[], int, int) - Static method in class StdStats
Returns the sample standard deviation in the subarray a[lo..hi].
stddev(int[]) - Static method in class StdStats
Returns the sample standard deviation in the array a[].
stddevp(double[]) - Static method in class StdStats
Returns the population standard deviation in the array a[].
stddevp(double[], int, int) - Static method in class StdStats
Returns the population standard deviation in the subarray a[lo..hi].
StdDraw - Class in <Unnamed>
Standard draw.
StdDraw3D - Class in <Unnamed>
Standard Draw 3D is a Java library with the express goal of making it simple to create three-dimensional models, simulations, and games.
StdDraw3D.Camera - Class in <Unnamed>
The camera can be controlled with the static functions already listed in this reference.
StdDraw3D.Light - Class in <Unnamed>
When you create a light in StdDraw3D, it returns a Light object.
StdDraw3D.Shape - Class in <Unnamed>
Everything three-dimensional you draw in your scene from spheres to points to 3D text is actually a Shape object.
StdDraw3D.Vector3D - Class in <Unnamed>
An immutable three-dimensional vector class with useful vector operations.
StdDraw3D.Vector3D() - Constructor for class StdDraw3D.Vector3D
Initializes to zero vector.
StdDraw3D.Vector3D(double, double, double) - Constructor for class StdDraw3D.Vector3D
Initializes to the given coordinates.
StdDraw3D.Vector3D(double[]) - Constructor for class StdDraw3D.Vector3D
Initializes to the given coordinates.
StdIn - Class in <Unnamed>
Standard input.
StdInTest - Class in <Unnamed>
 
StdInTest() - Constructor for class StdInTest
 
StdOut - Class in <Unnamed>
Standard output.
StdRandom - Class in <Unnamed>
Standard random.
StdStats - Class in <Unnamed>
Standard statistics (library of statistical functions).
Stopwatch - Class in <Unnamed>
Stopwatch.
Stopwatch() - Constructor for class Stopwatch
Create a stopwatch object.
sum(double[]) - Static method in class StdStats
Returns the sum of all values in the array a[].
sum(double[], int, int) - Static method in class StdStats
Returns the sum of all values in the subarray a[lo..hi].
sum(int[]) - Static method in class StdStats
Returns the sum of all values in the array a[].

T

test(String, Object[][]) - Static method in class StdInTest
In the two methods below, each Object[] of "steps" is a length-2 array: the first is a String holding a method name, the second is the expected return value when that method is called in sequence.
test(String, Object[][], boolean) - Static method in class StdInTest
 
testCount - Static variable in class StdInTest
 
testStdIn - Static variable in class StdInTest
 
text(double, double, String) - Method in class Draw
Write the given text string in the current font, centered on (x, y).
text(double, double, String, double) - Method in class Draw
Write the given text string in the current font, centered on (x, y) and rotated by the specified number of degrees
text(double, double, String) - Static method in class StdDraw
Write the given text string in the current font, centered on (x, y).
text(double, double, String, double) - Static method in class StdDraw
Write the given text string in the current font, centered on (x, y) and rotated by the specified number of degrees
text3D(double, double, double, String) - Static method in class StdDraw3D
Draws a 3D text object at (x, y, z).
text3D(double, double, double, String, double, double, double) - Static method in class StdDraw3D
Draws a 3D text object at (x, y, z) with Euler rotation angles (xA, yA, zA).
textLeft(double, double, String) - Method in class Draw
Write the given text string in the current font, left-aligned at (x, y).
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).
times(double) - Method in class StdDraw3D.Vector3D
Returns the product of this vector and the scalar k.
times(double, double, double) - Method in class StdDraw3D.Vector3D
Returns the result (this.x * a, this.y * b, this.z * c).
toString() - Method in class StdDraw3D.Vector3D
Returns a string representation of this vector.
triangles(double[][]) - Static method in class StdDraw3D
Draws triangles which are defined by x1=points[i][0], y1=points[i][1], z1=points[i][2], x2=points[i][3], etc.
triangles(double[][], Color[]) - Static method in class StdDraw3D
Draws a set of triangles, each with the specified color.
tube(double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a cylindrical tube of radius r from vertex (x1, y1, z1) to vertex (x2, y2, z2).
tubes(double[], double[], double[], double) - Static method in class StdDraw3D
Draws a series of cylindrical tubes of radius r, with vertices (x, y, z).
tubes(double[], double[], double[], double, Color[]) - Static method in class StdDraw3D
Draws a series of cylindrical tubes of radius r, with vertices (x, y, z) and the given colors.

U

unhide() - Method in class StdDraw3D.Light
 
unhide() - Method in class StdDraw3D.Shape
 
uniform() - Static method in class StdRandom
Returns a random real in [0,1).
uniform(int) - Static method in class StdRandom
Random integer in 0..N-1.
uniform(int, int) - Static method in class StdRandom
Inteiro aleatório em a..b-1.
uniform(double, double) - Static method in class StdRandom
Returns real number uniformly in [a, b).
unpair() - Method in class StdDraw3D.Camera
 

V

var(double[]) - Static method in class StdStats
Returns the sample variance in the array a[].
var(double[], int, int) - Static method in class StdStats
Returns the sample variance in the subarray a[lo..hi].
var(int[]) - Static method in class StdStats
Returns the sample variance in the array a[].
varp(double[]) - Static method in class StdStats
Returns the population variance in the array a[].
varp(double[], int, int) - Static method in class StdStats
Returns the population variance in the subarray a[lo..hi].

W

WHITE - Static variable in class Draw
 
WHITE - Static variable in class StdDraw
 
WHITE - Static variable in class StdDraw3D
 
width() - Method in class Picture
Return the width of the picture in pixels.
windowGainedFocus(WindowEvent) - Method in class StdDraw3D
Deprecated. 
windowLostFocus(WindowEvent) - Method in class StdDraw3D
Deprecated. 
wireBox(double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe box at (x, y, z) with dimensions (w, h, d).
wireBox(double, double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe box at (x, y, z) with dimensions (w, h, d) and axial rotations (xA, yA, zA).
wireCone(double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cone at (x, y, z) with radius r and height h.
wireCone(double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cone at (x, y, z) with radius r, height h, and axial rotations (xA, yA, zA).
wireCube(double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cube at (x, y, z) with radius r and axial rotations (xA, yA, zA).
wireCube(double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cube at (x, y, z) with radius r.
wireCylinder(double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cylinder at (x, y, z) with radius r and height h.
wireCylinder(double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe cylinder at (x, y, z) with radius r, height h, and axial rotations (xA, yA, zA).
wireEllipsoid(double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe ellipsoid at (x, y, z) with dimensions (w, h, d).
wireEllipsoid(double, double, double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe ellipsoid at (x, y, z) with dimensions (w, h, d) and axial rotations (xA, yA, zA).
wirePolygon(double[], double[], double[]) - Static method in class StdDraw3D
Draws the triangulated outline of a polygon with the given vertices.
wireSphere(double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe sphere at (x, y, z) with radius r.
wireSphere(double, double, double, double, double, double, double) - Static method in class StdDraw3D
Draws a wireframe sphere at (x, y, z) with radius r and axial rotations (xA, yA, zA).
wireTriangles(double[][]) - Static method in class StdDraw3D
 
wireTriangles(double[][], Color[]) - Static method in class StdDraw3D
Draws a set of wireframetriangles, each with the specified color.
write(boolean) - Method in class BinaryOut
Write the bit specified by x to the binary output stream.
write(byte) - Method in class BinaryOut
Write the 8-bit byte x to the binary output stream.
write(int) - Method in class BinaryOut
Write the 32-bit int x to the binary output stream.
write(int, int) - Method in class BinaryOut
Write the r-bit int x to the binary output stream.
write(double) - Method in class BinaryOut
Write the 64-bit double x to the binary output stream.
write(long) - Method in class BinaryOut
Write the 64-bit long x to the binary output stream.
write(float) - Method in class BinaryOut
Write the 32-bit float x to the binary output stream.
write(short) - Method in class BinaryOut
Write the 16-bit int x to the binary output stream.
write(char) - Method in class BinaryOut
Write the 8-bit char x to the binary output stream.
write(char, int) - Method in class BinaryOut
Write the r-bit char x to the binary output stream.
write(String) - Method in class BinaryOut
Write the string s of 8-bit characters to the binary output stream.
write(String, int) - Method in class BinaryOut
Write the String s of r-bit characters to the binary output stream.
write(boolean) - Static method in class BinaryStdOut
Write the specified bit to standard output.
write(byte) - Static method in class BinaryStdOut
Write the 8-bit byte to standard output.
write(int) - Static method in class BinaryStdOut
Write the 32-bit int to standard output.
write(int, int) - Static method in class BinaryStdOut
Write the r-bit int to standard output.
write(double) - Static method in class BinaryStdOut
Write the 64-bit double to standard output.
write(long) - Static method in class BinaryStdOut
Write the 64-bit long to standard output.
write(float) - Static method in class BinaryStdOut
Write the 32-bit float to standard output.
write(short) - Static method in class BinaryStdOut
Write the 16-bit int to standard output.
write(char) - Static method in class BinaryStdOut
Write the 8-bit char to standard output.
write(char, int) - Static method in class BinaryStdOut
Write the r-bit char to standard output.
write(String) - Static method in class BinaryStdOut
Write the string of 8-bit characters to standard output.
write(String, int) - Static method in class BinaryStdOut
Write the String of r-bit characters to standard output.

X

x - Variable in class StdDraw3D.Vector3D
X-coordinate - immutable but directly accessible.
xorOff() - Method in class Draw
 
xorOn() - Method in class Draw
 

Y

y - Variable in class StdDraw3D.Vector3D
Y-coordinate - immutable but directly accessible.
YELLOW - Static variable in class Draw
 
YELLOW - Static variable in class StdDraw
 
YELLOW - Static variable in class StdDraw3D
 

Z

z - Variable in class StdDraw3D.Vector3D
Z-coordinate - immutable but directly accessible.
A B C D E F G H I K L M N O P R S T U V W X Y Z