A C D E G H I K L M O P R S T U V

A

add(Shape) - Method in class uwcse.graphics.AppletGWindow
Add the given shape and paint it onto the screen.
add(Shape) - Method in class uwcse.graphics.GWindow
Add the given shape and paint it onto the screen.
addEventHandler(GWindowEventHandler) - Method in class uwcse.graphics.AppletGWindow
Add the given event handler.
addEventHandler(GWindowEventHandler) - Method in class uwcse.graphics.GWindow
Add the given event handler.
addPoint(int, int) - Method in class uwcse.graphics.PolyShape
Add a new vertex to the polygon.
addTo(GWindow) - Method in interface uwcse.graphics.Shape
Add the shape to the given graphics window, if non-null.
addTo(GWindow) - Method in class uwcse.graphics.ShapeImpl
 
AppletGWindow - class uwcse.graphics.AppletGWindow.
The AppletGWindow class is an abstract class to be extended by clients that are to be run in an applet window within a web page.
AppletGWindow() - Constructor for class uwcse.graphics.AppletGWindow
Create a new interface to an applet.
Arc - class uwcse.graphics.Arc.
An arc shape.
Arc() - Constructor for class uwcse.graphics.Arc
Create an unfilled yellow arc with a default position, size, and angle.
Arc(int, int, int, int, int, int) - Constructor for class uwcse.graphics.Arc
Create an unfilled black arc whose bounding rectangle has the specified upper-left corner and dimensions and with the specified start angle and arc angle.
Arc(int, int, int, int, int, int, Color, boolean) - Constructor for class uwcse.graphics.Arc
Create an arc with the given color and filledness whose bounding rectangle has the specified upper-left corner and dimensions and with the specified start angle and arc angle.

C

currentWindow() - Method in interface uwcse.graphics.Shape
Return the window this shape is currently displayed on, or null if not displayed on any window.
currentWindow() - Method in class uwcse.graphics.ShapeImpl
 
CurvedShape - class uwcse.graphics.CurvedShape.
An abstract class for curved shapes that fit within bounding rectangles.

D

display(Shape) - Method in class uwcse.graphics.AppletGWindow
Simply adds this shape to the to-be-displayed queue.
display(Shape) - Method in class uwcse.graphics.GWindow
Simply adds this shape to the to-be-displayed queue.
dispose() - Method in class uwcse.graphics.AppletGWindow
 
dispose() - Method in class uwcse.graphics.GWindow
Close the window.
doRepaint() - Method in class uwcse.graphics.AppletGWindow
Update the screen, if updates aren't suspended.
doRepaint() - Method in class uwcse.graphics.GWindow
Update the screen, if updates aren't suspended.
down() - Method in class uwcse.graphics.Pen
Set the pen's state to down.

E

erase() - Method in class uwcse.graphics.AppletGWindow
Discards all of the shape objects and clears the screen.
erase() - Method in class uwcse.graphics.GWindow
Discards all of the shape objects and clears the screen.
erase() - Method in class uwcse.graphics.Pen
Erase the window.

G

getBoundingBox() - Method in interface uwcse.graphics.Shape
Return the shape's bounding box (the smallest rectangle enclosing the shape).
getBoundingBox() - Method in class uwcse.graphics.ShapeImpl
 
getCenterX() - Method in interface uwcse.graphics.Shape
Return the X coordinate of the shape's center
getCenterX() - Method in class uwcse.graphics.ShapeImpl
 
getCenterY() - Method in interface uwcse.graphics.Shape
Return the Y coordinate of the shape's center
getCenterY() - Method in class uwcse.graphics.ShapeImpl
 
getColor() - Method in interface uwcse.graphics.Shape
Answer the color of this shape.
getColor() - Method in class uwcse.graphics.ShapeImpl
 
getEventHandler() - Method in class uwcse.graphics.AppletGWindow
Answer the current event handler.
getEventHandler() - Method in class uwcse.graphics.GWindow
Answer the current event handler.
getHeight() - Method in class uwcse.graphics.Rectangle
Return the height of the rectangle
getHeight() - Method in interface uwcse.graphics.Shape
Return the height of the shape's bounding box (the smallest rectangle enclosing the shape).
getHeight() - Method in class uwcse.graphics.ShapeImpl
 
getImageFromFilename(String) - Method in class uwcse.graphics.AppletGWindow
Create and return a new Image, given the filename of the image.
getImageFromFilename(String) - Method in class uwcse.graphics.GWindow
Create and return a new Image, given the filename of the image.
getImageFromURL(String) - Method in class uwcse.graphics.AppletGWindow
Create and return a new Image, given the URL of the image.
getImageFromURL(String) - Method in class uwcse.graphics.GWindow
Create and return a new Image, given the URL of the image.
getKey() - Method in class uwcse.graphics.GWindowEvent
Answer the key that was pressed.
getType() - Method in class uwcse.graphics.GWindowEvent
Answer the type of this event.
getWidth() - Method in class uwcse.graphics.Rectangle
Return the width of the rectangle
getWidth() - Method in interface uwcse.graphics.Shape
Return the width of the shape's bounding box (the smallest rectangle enclosing the shape).
getWidth() - Method in class uwcse.graphics.ShapeImpl
 
getWindowHeight() - Method in class uwcse.graphics.AppletGWindow
Return the height of the drawing area of the window (ignoring title bar, borders, etc.)
getWindowHeight() - Method in class uwcse.graphics.GWindow
Return the height of the drawing area of the window (ignoring title bar, borders, etc.)
getWindowWidth() - Method in class uwcse.graphics.AppletGWindow
Return the width of the drawing area of the window (ignoring title bar, borders, etc.)
getWindowWidth() - Method in class uwcse.graphics.GWindow
Return the width of the drawing area of the window (ignoring title bar, borders, etc.)
getX() - Method in class uwcse.graphics.GWindowEvent
Answer the x position of the mouse click.
getX() - Method in class uwcse.graphics.Rectangle
Return the X coordinate of the rectangle's upper-left corner
getX() - Method in interface uwcse.graphics.Shape
Return the X coordinate of the shape's upper-left corner
getX() - Method in class uwcse.graphics.ShapeImpl
 
getY() - Method in class uwcse.graphics.GWindowEvent
Answer the y position of the mouse click.
getY() - Method in class uwcse.graphics.Rectangle
Return the Y coordinate of the rectangle's upper-left corner
getY() - Method in interface uwcse.graphics.Shape
Return the Y coordinate of the shape's upper-left corner
getY() - Method in class uwcse.graphics.ShapeImpl
 
GWindow - class uwcse.graphics.GWindow.
The GWindow class defines a simple graphics window.
GWindow() - Constructor for class uwcse.graphics.GWindow
Create a new window, with default name and size.
GWindow(AppletGWindow) - Constructor for class uwcse.graphics.GWindow
Create a new window interface to use for an applet
GWindow(int, int) - Constructor for class uwcse.graphics.GWindow
Create a new window of the given dimensions.
GWindow(String) - Constructor for class uwcse.graphics.GWindow
Create a new window of the default size.
GWindow(String, int, int) - Constructor for class uwcse.graphics.GWindow
Create a new window of the given name and dimensions.
GWindowEvent - class uwcse.graphics.GWindowEvent.
This class defines an event object which can be generated in the GWindow world.
GWindowEvent(int, int, char, int) - Constructor for class uwcse.graphics.GWindowEvent
Create a new GWindowEvent.
GWindowEventAdapter - class uwcse.graphics.GWindowEventAdapter.
A basic adapter for GWindow event that defines empty methods for each of the interface's methods.
GWindowEventAdapter() - Constructor for class uwcse.graphics.GWindowEventAdapter
 
GWindowEventHandler - interface uwcse.graphics.GWindowEventHandler.
Any object that wishes to handle GWindowEvents must implement this interface.

H

home() - Method in class uwcse.graphics.Pen
Send the pen to the home position and angle.

I

ImageShape - class uwcse.graphics.ImageShape.
A class for image shapes (e.g.
ImageShape(Image, int, int) - Constructor for class uwcse.graphics.ImageShape
Create a new image of the given size.
init() - Method in class uwcse.graphics.AppletGWindow
Called to initialize the applet.
intersects(Rectangle) - Method in class uwcse.graphics.Rectangle
Return whether the argument rectangle intersects this rectangle
intersects(Shape) - Method in class uwcse.graphics.AppletGWindow
Return the shape that the argument shape intersects with, or null if none.
intersects(Shape) - Method in class uwcse.graphics.GWindow
Return the shape that the argument shape intersects with, or null if none.
intersects(Shape) - Method in interface uwcse.graphics.Shape
Return whether this shape's bounding box intersects with the argument shape's bounding box.
intersects(Shape) - Method in class uwcse.graphics.ShapeImpl
 

K

KEY_PRESSED - Static variable in class uwcse.graphics.GWindowEvent
 
KEY_RELEASED - Static variable in class uwcse.graphics.GWindowEvent
 
keyPressed(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
keyPressed(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 
keyReleased(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
keyReleased(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 

L

Line - class uwcse.graphics.Line.
A line shape.
Line() - Constructor for class uwcse.graphics.Line
Make a new orange line with a default size and position.
Line(int, int, int, int) - Constructor for class uwcse.graphics.Line
Create a new black line between the two given points
Line(int, int, int, int, Color) - Constructor for class uwcse.graphics.Line
Create a new line of the given color between the two given points (lines are never filled, so no filled argument is needed)

M

main(String[]) - Static method in class uwcse.graphics.GWindow
 
main(String[]) - Static method in class uwcse.graphics.Pen
Test the pen with the squiral method.
main(String[]) - Static method in class uwcse.graphics.Polygon
 
MOUSE_DRAGGED - Static variable in class uwcse.graphics.GWindowEvent
 
MOUSE_PRESSED - Static variable in class uwcse.graphics.GWindowEvent
 
MOUSE_RELEASED - Static variable in class uwcse.graphics.GWindowEvent
 
mouseDragged(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
mouseDragged(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 
mousePressed(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
mousePressed(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 
mouseReleased(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
mouseReleased(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 
move(int) - Method in class uwcse.graphics.Pen
Move the pen the given distance.
moveAllBy(int, int) - Method in class uwcse.graphics.AppletGWindow
Translate the position of every object by the given deltas, and repaint the screen.
moveAllBy(int, int) - Method in class uwcse.graphics.GWindow
Translate the position of every object by the given deltas, and repaint the screen.
moveBy(int, int) - Method in interface uwcse.graphics.Shape
Change this shape's position.
moveBy(int, int) - Method in class uwcse.graphics.ShapeImpl
 
moveTo(int, int) - Method in class uwcse.graphics.PolyShape
Move the polygon so that the upper-left corner of its bounding rectangle is the given coordinates.
moveTo(int, int) - Method in class uwcse.graphics.Rectangle
Move the upper-left corner of the rectangle to the given coordinates.
moveTo(int, int) - Method in interface uwcse.graphics.Shape
Change this shape's position.
moveTo(int, int) - Method in class uwcse.graphics.ShapeImpl
 

O

Oval - class uwcse.graphics.Oval.
An oval shape.
Oval() - Constructor for class uwcse.graphics.Oval
Create a filled, green oval with a default position and size.
Oval(int, int, int, int) - Constructor for class uwcse.graphics.Oval
Create an unfilled black oval whose bounding rectangle has the specified upper-left corner and dimensions.
Oval(int, int, int, int, Color, boolean) - Constructor for class uwcse.graphics.Oval
Create an oval of the given color and filledness whose bounding rectangle has the specified upper-left corner and dimensions.

P

paint(Graphics) - Method in class uwcse.graphics.AppletGWindow
Do a paint operation.
paint(Graphics) - Method in class uwcse.graphics.Arc
 
paint(Graphics) - Method in class uwcse.graphics.ImageShape
Paint/draw this image onto the given graphics context.
paint(Graphics) - Method in class uwcse.graphics.Oval
 
paint(Graphics) - Method in class uwcse.graphics.PolyShape
 
paint(Graphics) - Method in class uwcse.graphics.Rectangle
 
paint(Graphics) - Method in interface uwcse.graphics.Shape
Paint this shape onto the given graphics context.
paint(Graphics) - Method in class uwcse.graphics.TextShape
 
Pen - class uwcse.graphics.Pen.
A simple Pen class which implements turtle style graphics.
Pen() - Constructor for class uwcse.graphics.Pen
Create a new Pen and a new window for the pen.
Polygon - class uwcse.graphics.Polygon.
A polygon shape.
Polygon() - Constructor for class uwcse.graphics.Polygon
Create a new orange, filled polygon, initially with no vertices.
Polygon(Color, boolean) - Constructor for class uwcse.graphics.Polygon
Create a new polygon of the given color and filledness, initially with no vertices.
PolyShape - class uwcse.graphics.PolyShape.
An abstract superclass of various polygonal shapes.
PolyShape(Color, boolean) - Constructor for class uwcse.graphics.PolyShape
Create a new polygon of the given color and filledness.
print(String) - Method in class uwcse.graphics.AppletGWindow
Display a dialog message in a pop-up window.
print(String) - Method in class uwcse.graphics.GWindow
Display a dialog message in a pop-up window.

R

recordWindow(InternalGWindow) - Method in interface uwcse.graphics.Shape
Tell the shape that it belongs to the given window.
recordWindow(InternalGWindow) - Method in class uwcse.graphics.ShapeImpl
 
Rectangle - class uwcse.graphics.Rectangle.
A rectangle shape.
Rectangle() - Constructor for class uwcse.graphics.Rectangle
Create a new, filled rectangle, colored red, with a default location and size.
Rectangle(int, int, int, int) - Constructor for class uwcse.graphics.Rectangle
Create a new unfilled, black rectangle with the given position and size.
Rectangle(int, int, int, int, Color, boolean) - Constructor for class uwcse.graphics.Rectangle
Create a new rectangle of the given position, size, color, and filledness.
remove(Shape) - Method in class uwcse.graphics.AppletGWindow
Remove the given shape and repaint the screen.
remove(Shape) - Method in class uwcse.graphics.GWindow
Remove the given shape and repaint the screen.
removeFromWindow() - Method in interface uwcse.graphics.Shape
Remove the shape from its graphics window, if it is added to one.
removeFromWindow() - Method in class uwcse.graphics.ShapeImpl
 
resize(int, int) - Method in class uwcse.graphics.CurvedShape
Change the width and height of the curved shape
resize(int, int) - Method in class uwcse.graphics.PolyShape
Change the width and height of the polygon
resize(int, int) - Method in class uwcse.graphics.Rectangle
Change the width and height of the rectangle
resumeRepaints() - Method in class uwcse.graphics.AppletGWindow
Resume repaints.
resumeRepaints() - Method in class uwcse.graphics.GWindow
Resume repaints.
rotateAround(int, int, double) - Method in class uwcse.graphics.PolyShape
 
rotateAround(int, int, double) - Method in interface uwcse.graphics.Shape
Rotate the shape around the argument coordinates by the given number of degrees, counter-clockwise.
rotateAround(int, int, double) - Method in class uwcse.graphics.ShapeImpl
 

S

setColor(Color) - Method in interface uwcse.graphics.Shape
Set the color of this shape.
setColor(Color) - Method in class uwcse.graphics.ShapeImpl
 
setExitOnClose() - Method in class uwcse.graphics.AppletGWindow
 
setExitOnClose() - Method in class uwcse.graphics.GWindow
If this is called, the application will exit when a GWindow is closed.
setFont(Font) - Method in class uwcse.graphics.TextShape
Change the font.
setImage(Image) - Method in class uwcse.graphics.ImageShape
Change the image
setText(String) - Method in class uwcse.graphics.TextShape
Change the text.
Shape - interface uwcse.graphics.Shape.
All shapes implement this interface.
ShapeImpl - class uwcse.graphics.ShapeImpl.
This is an abstract superclass of all shape objects.
ShapeImpl(Color, boolean) - Constructor for class uwcse.graphics.ShapeImpl
A new shaped, possibly filled with the given color.
showColorTable() - Static method in class uwcse.graphics.GWindow
Opens a color picker application.
squiral(int, int, int) - Method in class uwcse.graphics.Pen
Draw a squiral.
startTimerEvents(int) - Method in class uwcse.graphics.AppletGWindow
Start delivering timer events to the AppletGWindow.
startTimerEvents(int) - Method in class uwcse.graphics.GWindow
Start delivering timer events to the GWindow.
stopTimerEvents() - Method in class uwcse.graphics.AppletGWindow
Stop delivering timer events to the AppletGWindow.
stopTimerEvents() - Method in class uwcse.graphics.GWindow
Stop delivering timer events to the GWindow.
suspendRepaints() - Method in class uwcse.graphics.AppletGWindow
Suspend repaints.
suspendRepaints() - Method in class uwcse.graphics.GWindow
Suspend repaints.

T

testFromFilename(String) - Static method in class uwcse.graphics.ImageShape
 
testFromURL(String) - Static method in class uwcse.graphics.ImageShape
 
TextShape - class uwcse.graphics.TextShape.
TextShape is used for displaying text onto the GWindow.
TextShape(String, int, int) - Constructor for class uwcse.graphics.TextShape
Create a new text shape, in black using the default font
TextShape(String, int, int, Color) - Constructor for class uwcse.graphics.TextShape
Create a new text shape, using the default font
TextShape(String, int, int, Color, Font) - Constructor for class uwcse.graphics.TextShape
Create a new text shape
TextShape(String, int, int, Font) - Constructor for class uwcse.graphics.TextShape
Create a new text shape, in black
TIMER_EXPIRED - Static variable in class uwcse.graphics.GWindowEvent
 
timerExpired(GWindowEvent) - Method in class uwcse.graphics.GWindowEventAdapter
 
timerExpired(GWindowEvent) - Method in interface uwcse.graphics.GWindowEventHandler
 
toString() - Method in class uwcse.graphics.AppletGWindow
 
toString() - Method in class uwcse.graphics.Arc
 
toString() - Method in class uwcse.graphics.GWindow
 
toString() - Method in class uwcse.graphics.GWindowEvent
 
toString() - Method in class uwcse.graphics.ImageShape
 
toString() - Method in class uwcse.graphics.Line
 
toString() - Method in class uwcse.graphics.Oval
 
toString() - Method in class uwcse.graphics.Pen
Return the pen's printed representation.
toString() - Method in class uwcse.graphics.PolyShape
 
toString() - Method in class uwcse.graphics.Polygon
 
toString() - Method in class uwcse.graphics.Rectangle
 
toString() - Method in class uwcse.graphics.ShapeImpl
Answer the printed representation of this shape.
toString() - Method in class uwcse.graphics.TextShape
 
toString() - Method in class uwcse.graphics.Triangle
 
Triangle - class uwcse.graphics.Triangle.
A triangle shape.
Triangle() - Constructor for class uwcse.graphics.Triangle
Create a new blue, filled triangle with default position and size.
Triangle(int, int, int, int, int, int) - Constructor for class uwcse.graphics.Triangle
Create a new black, unfilled triangle between the given three vertices
Triangle(int, int, int, int, int, int, Color, boolean) - Constructor for class uwcse.graphics.Triangle
Create a new triangle of the given color and filledness between the given three vertices
turn(int) - Method in class uwcse.graphics.Pen
Turn the pen this many degrees counter-clockwise.

U

up() - Method in class uwcse.graphics.Pen
Raise the pen.
update(Graphics) - Method in class uwcse.graphics.AppletGWindow
When we update the window, we just do a paint(g).

V

version() - Method in class uwcse.graphics.AppletGWindow
Answer the version number.
version() - Method in class uwcse.graphics.GWindow
Answer the version number.

A C D E G H I K L M O P R S T U V