Skip navigation links
A B C D E F G H I J K L M N O P R S T V W Y 

S

save(String) - Static method in class princeton.introcs.StdDraw
Save to file - suffix must be png, jpg, or gif.
SBlock - Class in eecs2030.lab4
The standard 3x3 S-shaped Tetris block.
SBlock(Point2, Color) - Constructor for class eecs2030.lab4.SBlock
Create an S-block tetrimino at the given position and the given color.
set(int, int) - Method in class eecs2030.lab4.BlockGrid
Sets a grid location.
set(double, double) - Method in class eecs2030.lab4.Point2
Sets the x-coordinate and y-coordinate of this point to newX and newY, respectively.
set(double, double) - Method in class eecs2030.lab4.Vector2
Sets the x and y component of the vector.
setCanvasSize() - Static method in class princeton.introcs.StdDraw
Set the window size to the default size 512-by-512 pixels.
setCanvasSize(int, int) - Static method in class princeton.introcs.StdDraw
Set the window size to w-by-h pixels.
setFont() - Static method in class princeton.introcs.StdDraw
Set the font to the default font (sans serif, 16 point).
setFont(Font) - Static method in class princeton.introcs.StdDraw
Set the font to the given value.
setPenColor() - Static method in class princeton.introcs.StdDraw
Set the pen color to the default color (black).
setPenColor(Color) - Static method in class princeton.introcs.StdDraw
Set the pen color to the given color.
setPenRadius() - Static method in class princeton.introcs.StdDraw
Set the pen size to the default (.002).
setPenRadius(double) - Static method in class princeton.introcs.StdDraw
Set the radius of the pen to the given size.
setScale(double, double) - Static method in class princeton.introcs.StdDraw
Set the x-scale and y-scale (a 10% border is added to the values)
setX(double) - Method in class eecs2030.lab4.Point2
Sets the x-coordinate of this point to newX.
setX(double) - Method in class eecs2030.lab4.Vector2
Sets the x component of the vector.
setXscale() - Static method in class princeton.introcs.StdDraw
Set the x-scale to be the default (between 0.0 and 1.0).
setXscale(double, double) - Static method in class princeton.introcs.StdDraw
Set the x-scale (a 10% border is added to the values)
setY(double) - Method in class eecs2030.lab4.Point2
Sets the y-coordinate of this point to newY.
setY(double) - Method in class eecs2030.lab4.Vector2
Sets the y component of the vector.
setYscale() - Static method in class princeton.introcs.StdDraw
Set the y-scale to be the default (between 0.0 and 1.0).
setYscale(double, double) - Static method in class princeton.introcs.StdDraw
Set the y-scale (a 10% border is added to the values).
show(int) - Static method in class princeton.introcs.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 princeton.introcs.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.
similarTo(Point2, double) - Method in class eecs2030.lab4.Point2
Determines if two points are almost equal (similar).
similarTo(Vector2, double) - Method in class eecs2030.lab4.Vector2
Determines if two vectors are almost equal (similar).
size() - Method in class eecs2030.lab4.BlockGrid
Get the grid size.
spinLeft() - Method in class eecs2030.lab4.Block
Spin the object to the left (counter clockwise) about its center of rotation.
spinLeft() - Method in class eecs2030.lab4.IBlock
Spins the block to the left (counter clockwise) by 90 degrees about its center of rotation.
spinLeft() - Method in class eecs2030.lab4.JBlock
Spins the block to the left (counter clockwise) by 90 degrees about its center of rotation.
spinLeft() - Method in class eecs2030.lab4.SBlock
Spins the block to the left (counter clockwise) by 90 degrees about its center of rotation.
spinRight() - Method in class eecs2030.lab4.Block
Spin the object to the right (clockwise) about its center of rotation.
spinRight() - Method in class eecs2030.lab4.IBlock
Spins the block to the right (clockwise) by 90 degrees about its center of rotation.
spinRight() - Method in class eecs2030.lab4.JBlock
Spins the block to the right (clockwise) by 90 degrees about its center of rotation.
spinRight() - Method in class eecs2030.lab4.SBlock
Spins the block to the right (clockwise) by 90 degrees about its center of rotation.
square(double, double, double) - Static method in class princeton.introcs.StdDraw
Draw a square of side length 2r, centered on (x, y).
StdDraw - Class in princeton.introcs
Standard draw.
subtract(Point2, Point2) - Static method in class eecs2030.lab4.Point2
Returns a new Point2 equal to a - b.
subtract(Vector2) - Method in class eecs2030.lab4.Vector2
Subtract a vector from this vector changing the components of this vector.
subtract(Vector2, Vector2) - Static method in class eecs2030.lab4.Vector2
Returns a new Vector2D equal to a - b.
A B C D E F G H I J K L M N O P R S T V W Y 
Skip navigation links