Introduction to OOP: Chapter 19 : A Case Study: The LAF [next] [previous] [audio] [real] [text]

Methods in class Application

Function Purpose
run Begin execution for application
quit Halt application
update Schedule window for updating
clearAndUpdate Clear window, schedule for updating
paint Redisplay screen
mouseButtonDown Respond to mouse-down event
keyPressed Respond to character key being pressed
top Return coordinate of top of window
bottom Coordinate of bottom of window
left Coordinate of left of window
right Coordinate of right of window
height Return height of window
width Return width of window
circle Draw circle centered at x,y with radius r
point Draw point (small filled circle)
line Draw line from point to point
rectangle Draw rectangle
print Print text at given position
setPen Set pen characteristics
Intro OOP, Chapter 19, Slide 7