Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
W
X
Y
A
angle
- Variable in class element.
Arc
The span of the arc, increasing counter-clockwize from the start angle.
angle()
- Method in class element.
Arc
Return the span of the arc.
angle(int)
- Method in class element.
Arc
Set the span or sweep of the arc.
Arc
- class element.
Arc
.
An object that describes a portion of an oval.
Arc()
- Constructor for class element.
Arc
Construct a trivial arc located at the origin.
Arc(Arc)
- Constructor for class element.
Arc
Constructs a copy of an arc from another.
Arc(int, int, int, int)
- Constructor for class element.
Arc
Construct an oval bounded by the rectangle specified by (x,y,w,h).
Arc(int, int, int, int, int, int)
- Constructor for class element.
Arc
Construct an arc bounded by the rectangle specified by (x,y,w,h), starting at strt, and sweeping for angl degrees.
Arc(Pt, Pt)
- Constructor for class element.
Arc
Construct an oval determined by two points: p and q.
Arc(Rect, int, int)
- Constructor for class element.
Arc
Construct an arc bounded by rectangle r with specified start and sweep.
author
- Static variable in class element.
Version
awaitKey()
- Method in class element.
DrawingWindow
Wait for a key to be pressed.
awaitMouseClick()
- Method in class element.
DrawingWindow
post: blocks until mouse is released
returns point of press
awaitMousePress()
- Method in class element.
DrawingWindow
Waits for the mouse to be pressed.
awaitMouseRelease()
- Method in class element.
DrawingWindow
Waits for the mouse to be released.
B
between(char, char, char)
- Static method in class element.
Util
bottom()
- Method in class element.
Rect
Returns the bottom coordinate of the rectangle
bottom()
- Method in interface element.
Drawable
Return the bottom coordinate of the bounding box of the object
bottom()
- Method in class element.
Pt
bottom()
- Method in class element.
Line
Return the bottom-most coordinate of the segment.
bottom()
- Method in class element.
Text
bottom(int)
- Method in class element.
Rect
Sets the bottom side of rectangle.
bottom(int)
- Method in class element.
Pt
bottom(int)
- Method in class element.
Line
Move the line segment so that bottom is at y.
bottom(int)
- Method in class element.
Text
bounds()
- Method in class element.
DrawingWindow
Determine the current size of the drawing window's canvas.
C
canonical(int)
- Static method in class element.
Arc
turn an angle into one that is between 0 and 359.
center()
- Method in class element.
Rect
Returns the center point of the rectangle.
center()
- Method in interface element.
Drawable
Return the center of the object
center()
- Method in class element.
Pt
center()
- Method in class element.
Line
Determine the midpoint of the line segment.
center()
- Method in class element.
Text
center(Pt)
- Method in class element.
Rect
Sets the center point of the rectangle.
center(Pt)
- Method in interface element.
Drawable
Reset the center of the object to be at point p.
center(Pt)
- Method in class element.
Pt
center(Pt)
- Method in class element.
Line
Adjust line so that midpoint falls at p.
center(Pt)
- Method in class element.
Text
Circle
- class element.
Circle
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
Circle()
- Constructor for class element.
Circle
post: constructs a trivial circle at origin
Circle(Drawable)
- Constructor for class element.
Circle
post: constructs a Circle from a drawable
Circle(int, int, int)
- Constructor for class element.
Circle
pre: r >= 0
post: constructs circle with center at (x,y), radius r
Circle(Pt, int)
- Constructor for class element.
Circle
pre: r >= 0 post: constructs circle with center p, radius r
clear(Drawable)
- Method in class element.
DrawingWindow
Erases a general drawable object.
clearArc(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Erase a portion of an oval.
clearCircle(int, int, int)
- Method in class element.
DrawingWindow
Erase the circle described by (x,y,radius)
clearLine(int, int, int, int)
- Method in class element.
DrawingWindow
Erases a line from (x0,y0) to (x1,y1).
clearLine(Pt, Pt)
- Method in class element.
DrawingWindow
Erases a line from (x0, y0) to (x1, y1)
clearOn(DrawingWindow)
- Method in class element.
Rect
Erase rectangle from the drawing window d.
clearOn(DrawingWindow)
- Method in class element.
Oval
Erase oval from the drawing window d.
clearOn(DrawingWindow)
- Method in class element.
Arc
Erase arc from the drawing window d.
clearOn(DrawingWindow)
- Method in interface element.
Drawable
Erase a filled version of this object (in the current mode) on a drawing window
clearOn(DrawingWindow)
- Method in class element.
RoundRect
clearOn(DrawingWindow)
- Method in class element.
Pt
clearOn(DrawingWindow)
- Method in class element.
Circle
clearOn(DrawingWindow)
- Method in class element.
Line
Erase the line from the drawing window d in current mode.
clearOn(DrawingWindow)
- Method in class element.
Text
clearOval(int, int, int, int)
- Method in class element.
DrawingWindow
Erase the oval described by the rectangle (x,y,width,height)
clearPt(int, int)
- Method in class element.
DrawingWindow
Erases the point at (x,y).
clearRect(int, int, int, int)
- Method in class element.
DrawingWindow
Erase the rectangle described by (x,y,width,height).
clearRoundRect(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Erase a rounded rectangle.
clearText(Text)
- Method in class element.
DrawingWindow
Erases a positioned text element on the screen.
clone()
- Method in class element.
Rect
return a distinct copy of this rectangle
clone()
- Method in class element.
Oval
return a distinct copy of this oval
clone()
- Method in class element.
Arc
return a distinct copy of this arc
clone()
- Method in class element.
RoundRect
post: returns a distinct copy of the Object
clone()
- Method in class element.
Pt
clone()
- Method in class element.
Circle
post: returns a distinct copy of the Object
clone()
- Method in class element.
Line
Return a copy of this line segment.
clone()
- Method in class element.
Text
post: returns a distinct copy of the Object
ConsoleException
- exception element.
ConsoleException
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
ConsoleException(String)
- Constructor for class element.
ConsoleException
ConsoleWindow
- class element.
ConsoleWindow
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
ConsoleWindow()
- Constructor for class element.
ConsoleWindow
ConsoleWindow(Container)
- Constructor for class element.
ConsoleWindow
ConsoleWindow(int, int, String)
- Constructor for class element.
ConsoleWindow
ConsoleWindow(int, int, String, Font, Container)
- Constructor for class element.
ConsoleWindow
contains(Pt)
- Method in class element.
Rect
Returns true if p is contained within rectangle
contains(Pt)
- Method in class element.
Oval
Returns true if p is contained within oval.
contains(Pt)
- Method in class element.
Arc
Determine if a point p is within an arc.
contains(Pt)
- Method in class element.
RoundRect
contains(Pt)
- Method in class element.
Pt
contains(Pt)
- Method in class element.
Circle
post: return true iff point p is within this circle
contains(Pt)
- Method in class element.
Line
Return true if the point p is close to the line segment
contains(Pt)
- Method in class element.
Text
cornerHeight
- Variable in class element.
RoundRect
cornerHeight()
- Method in class element.
RoundRect
cornerHeight(int)
- Method in class element.
RoundRect
cornerWidth
- Variable in class element.
RoundRect
cornerWidth()
- Method in class element.
RoundRect
cornerWidth(int)
- Method in class element.
RoundRect
D
draw(Drawable)
- Method in class element.
DrawingWindow
Draws a general drawable object.
Drawable
- interface element.
Drawable
.
The interface describing graphic objects that can be drawn in a drawing window.
drawArc(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Draw (or invert) a portion of an oval.
drawCircle(int, int, int)
- Method in class element.
DrawingWindow
Draw the circle described by (x,y,radius)
DrawingWindow
- class element.
DrawingWindow
.
A simple drawing window class.
DrawingWindow()
- Constructor for class element.
DrawingWindow
Constructs a 200x200 standalone drawing window.
DrawingWindow(Container)
- Constructor for class element.
DrawingWindow
Construct a 200x200 drawing window within another container.
DrawingWindow(int, int)
- Constructor for class element.
DrawingWindow
Construct a free-standing drawing window of a particular size.
DrawingWindow(int, int, Container)
- Constructor for class element.
DrawingWindow
Construct a contained drawing window of a particular size.
DrawingWindow(int, int, String)
- Constructor for class element.
DrawingWindow
Construct a drawing window with a paritcular dimension and title
drawLine(int, int, int, int)
- Method in class element.
DrawingWindow
Draws a line from (x0,y0) to (x1,y1).
drawLine(Pt, Pt)
- Method in class element.
DrawingWindow
Draws a line from src to dest.
drawOn(DrawingWindow)
- Method in class element.
Rect
Draw (in the current mode) the rectangle on the drawing window
drawOn(DrawingWindow)
- Method in class element.
Oval
Draw (in the current mode) the oval on the drawing window
drawOn(DrawingWindow)
- Method in class element.
Arc
Draw (in the current mode) the arc on the drawing window.
drawOn(DrawingWindow)
- Method in interface element.
Drawable
Draw this object (in the current mode) on a drawing window
drawOn(DrawingWindow)
- Method in class element.
RoundRect
drawOn(DrawingWindow)
- Method in class element.
Pt
drawOn(DrawingWindow)
- Method in class element.
Circle
drawOn(DrawingWindow)
- Method in class element.
Line
Draw the line on the drawing window d in current mode.
drawOn(DrawingWindow)
- Method in class element.
Text
drawOval(int, int, int, int)
- Method in class element.
DrawingWindow
Draw the oval described by the rectangle (x,y,width,height)
drawPt(int, int)
- Method in class element.
DrawingWindow
Draw a single point at (x,y).
drawRect(int, int, int, int)
- Method in class element.
DrawingWindow
Draw the rectangle described by (x,y,width,height)
drawRoundRect(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Draw (or invert) the rounded rectangle.
drawString(String, int, int)
- Method in class element.
DrawingWindow
Draws a text string at the point (x,y)
drawText(Text)
- Method in class element.
DrawingWindow
Draws a positioned text element on the screen.
E
element
- package element
equals(Object)
- Method in class element.
Rect
Return true iff this rectangle equals the other
equals(Object)
- Method in class element.
Oval
Return true iff this oval equals the other
equals(Object)
- Method in class element.
Arc
Return true iff this arc equals the other
equals(Object)
- Method in class element.
RoundRect
post: returns true if two round rects are equal
equals(Object)
- Method in class element.
Pt
equals(Object)
- Method in class element.
Circle
post: returns true if two rects are equal
equals(Object)
- Method in class element.
Line
Returns true if two line segments are equal
equals(Object)
- Method in class element.
Text
post: returns true if two texts are equal
exampleContext
- Static variable in class element.
DrawingWindow
A context for finding out information about fonts on this device.
extend(int, int)
- Method in class element.
Rect
Moves the sides of the rectangle outward by dx and dy.
F
fill(Drawable)
- Method in class element.
DrawingWindow
Fills in a general drawable object.
fillArc(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Fill (or invert) a solid portion of an oval.
fillCircle(int, int, int)
- Method in class element.
DrawingWindow
Fill in (or invert) the circle described by (x,y,radius)
fillLine(int, int, int, int)
- Method in class element.
DrawingWindow
Fills the line from src to dest.
fillLine(Pt, Pt)
- Method in class element.
DrawingWindow
Draws a line from src to dest.
fillOn(DrawingWindow)
- Method in class element.
Rect
Draw a filled rectangle (in the current mode) on drawing window d.
fillOn(DrawingWindow)
- Method in class element.
Oval
Draw a filled oval (in the current mode) on drawing window d.
fillOn(DrawingWindow)
- Method in class element.
Arc
Draw this arc on the specified drawing window.
fillOn(DrawingWindow)
- Method in interface element.
Drawable
Draw a filled version of this object (in the current mode) on a drawing window
fillOn(DrawingWindow)
- Method in class element.
RoundRect
fillOn(DrawingWindow)
- Method in class element.
Pt
fillOn(DrawingWindow)
- Method in class element.
Circle
fillOn(DrawingWindow)
- Method in class element.
Line
Draw the line on the drawing window d in current mode.
fillOn(DrawingWindow)
- Method in class element.
Text
fillOval(int, int, int, int)
- Method in class element.
DrawingWindow
Fill the oval described by the rectangle (x,y,width,height)
fillPt(int, int)
- Method in class element.
DrawingWindow
Fills the point at (x,y).
fillRect(int, int, int, int)
- Method in class element.
DrawingWindow
Fill in the rectangle described by (x,y,width,height).
fillRoundRect(int, int, int, int, int, int)
- Method in class element.
DrawingWindow
Fill (or invert) the rounded rectangle.
fillText(Text)
- Method in class element.
DrawingWindow
Draws a positioned text element on the screen.
font()
- Method in class element.
Text
G
getMouse()
- Method in class element.
DrawingWindow
Get the current mouse position as a Pt.
H
hashCode()
- Method in class element.
Rect
Return an integer for use as a hash code
hashCode()
- Method in class element.
Oval
Return an integer for use as a hash code
hashCode()
- Method in class element.
Arc
Return an integer for use as a hash code.
hashCode()
- Method in class element.
RoundRect
post: returns suitable hash code
hashCode()
- Method in class element.
Pt
hashCode()
- Method in class element.
Circle
post: returns suitable hash code
hashCode()
- Method in class element.
Line
Returns hash code for the line segment.
hashCode()
- Method in class element.
Text
post: returns suitable hash code
height
- Variable in class element.
Rect
The height of the rectangle.
height()
- Method in class element.
Rect
Returns the height of the rectangle.
height()
- Method in interface element.
Drawable
Return the height of the bounding box of the object
height()
- Method in class element.
Pt
height()
- Method in class element.
Line
Determine the vertical span of the line segment
height()
- Method in class element.
Text
height(int)
- Method in class element.
Rect
Sets the height of the rectangle.
here()
- Method in class element.
Line
Returns one endpoint of the line.
hold()
- Method in class element.
DrawingWindow
Hold the updating process until the matching release.
I
in
- Variable in class element.
ConsoleWindow
info
- Static variable in class element.
Version
input
- Variable in class element.
ConsoleWindow
invertMode()
- Method in class element.
DrawingWindow
Sets the drawing mode to invert the drawings on the screen.
isLower(char)
- Static method in class element.
Util
isUpper(char)
- Static method in class element.
Util
L
left
- Variable in class element.
Rect
The left side of the rectangle.
left()
- Method in class element.
Rect
Return the left coordinate of the rectangle.
left()
- Method in interface element.
Drawable
Return the leftmost coordinate of bounding box of object
left()
- Method in class element.
Pt
left()
- Method in class element.
Line
Return the left-most coordinate of the segment.
left()
- Method in class element.
Text
left(int)
- Method in class element.
Rect
Sets the left side of the rectangle.
left(int)
- Method in class element.
Pt
left(int)
- Method in class element.
Line
Move line segment so that left side is at x.
left(int)
- Method in class element.
Text
Line
- class element.
Line
.
A line segment object.
Line()
- Constructor for class element.
Line
Construct a trivial line segment at the origin.
line(int, int)
- Method in class element.
DrawingWindow
Draws a line relative to the current position.
Line(int, int, int, int)
- Constructor for class element.
Line
Construct a line segment from the explicit points.
Line(Line)
- Constructor for class element.
Line
Construct a line segment from another.
Line(Pt, Pt)
- Constructor for class element.
Line
Construct a line segment from its two endpoints.
Line(Rect)
- Constructor for class element.
Line
Construct a line segment from (left,top) to (right,bottom) of a rectangle.
lineTo(int, int)
- Method in class element.
DrawingWindow
Draws a line from the current position to a point (x,y).
lineTo(Pt)
- Method in class element.
DrawingWindow
Draws a line segment from the current position to p.
M
major
- Static variable in class element.
Version
minor
- Static variable in class element.
Version
mousePressed()
- Method in class element.
DrawingWindow
Return true iff the mouse is currently pressed.
move(int, int)
- Method in class element.
Rect
Moves the rectangle in the direction (dx,dy).
move(int, int)
- Method in class element.
DrawingWindow
Moves to a position relative to the current position.
move(int, int)
- Method in class element.
Pt
moveTo(int, int)
- Method in class element.
Rect
Moves the top-left coordinate of the rectangle to (left,top).
moveTo(int, int)
- Method in class element.
DrawingWindow
Moves the current position to (x,y).
moveTo(int, int)
- Method in class element.
Pt
moveTo(Pt)
- Method in class element.
Rect
Moves the top-left coordinate to point p
moveTo(Pt)
- Method in class element.
DrawingWindow
Moves the current position to p.
moveTo(Pt)
- Method in class element.
Pt
N
name
- Static variable in class element.
Version
O
out
- Variable in class element.
ConsoleWindow
Oval
- class element.
Oval
.
Implements an oval object.
Oval()
- Constructor for class element.
Oval
Constructs a trivial oval at the origin.
Oval(int, int, int, int)
- Constructor for class element.
Oval
Construct an oval bounded by the rectangle with upper-left (x,y), width w, and height h
Oval(Oval)
- Constructor for class element.
Oval
Makes a copy of an existing oval.
Oval(Pt, Pt)
- Constructor for class element.
Oval
Construct an oval within a rectangle defined by two points.
Oval(Rect)
- Constructor for class element.
Oval
Construct an oval bounded by an existing rectangle.
P
paintMode()
- Method in class element.
DrawingWindow
Sets the drawing mode to accumulate drawings on the screen.
Pt
- class element.
Pt
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
Pt()
- Constructor for class element.
Pt
Pt(int, int)
- Constructor for class element.
Pt
Pt(Pt)
- Constructor for class element.
Pt
R
radius()
- Method in class element.
Circle
post: returns radius of circle
radius(int)
- Method in class element.
Circle
pre: r >= 0
post: sets radius of the circle
Rect
- class element.
Rect
.
An implementation of a simple graphics rectangle.
Rect()
- Constructor for class element.
Rect
Constructs a trivial rectangle, about the origin.
Rect(Drawable)
- Constructor for class element.
Rect
Construct a rectangle from the bounding box of another drawable object.
Rect(int, int, int)
- Constructor for class element.
Rect
Construct a square centered about (cx,cy), with radius r.
Rect(int, int, int, int)
- Constructor for class element.
Rect
Construct a rectangle with upper left (x,y) and dimensions (w,h).
Rect(Pt, int)
- Constructor for class element.
Rect
Construct a square with radius r, centered about a point p.
Rect(Pt, Pt)
- Constructor for class element.
Rect
Constructs the rectangle determined by two points, p1 and p2.
Rectangle()
- Method in class element.
Rect
Construct an AWT rectangle from this rect.
release()
- Method in class element.
DrawingWindow
Release the updating process, allowing real-time drawing to the window.
right()
- Method in class element.
Rect
Returns right coordinate of the rectangle
right()
- Method in interface element.
Drawable
Return the rightmost coordinate of the bounding box of the object
right()
- Method in class element.
Pt
right()
- Method in class element.
Line
Return the right-most coordinate of the segment
right()
- Method in class element.
Text
right(int)
- Method in class element.
Rect
Sets the right coordinate of rectangle.
right(int)
- Method in class element.
Pt
right(int)
- Method in class element.
Line
Move line segment so that right side is at x.
right(int)
- Method in class element.
Text
RoundRect
- class element.
RoundRect
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
RoundRect()
- Constructor for class element.
RoundRect
post: constructs a trivial rectangle at origin
RoundRect(int, int, int, int)
- Constructor for class element.
RoundRect
pre: w >= 0, h >= 0
post: constructs rectangle with top left at (x,y)
width w, height h
RoundRect(int, int, int, int, int, int)
- Constructor for class element.
RoundRect
pre: w >= 0, h >= 0
post: constructs rectangle with top left at (x,y)
width w, height h
RoundRect(Pt, Pt)
- Constructor for class element.
RoundRect
RoundRect(Rect, int, int)
- Constructor for class element.
RoundRect
post: constructs a rounded rectangle
RoundRect(RoundRect)
- Constructor for class element.
RoundRect
S
setBackground(Color)
- Method in class element.
DrawingWindow
Sets the background color for the window to c.
setForeground(Color)
- Method in class element.
DrawingWindow
Sets the foreground color for the window to c.
start
- Variable in class element.
Arc
The start angle of the arc.
start()
- Method in class element.
Arc
Return the starting angle of the arc.
start(int)
- Method in class element.
Arc
Set the starting angle of the arc.
string()
- Method in class element.
Text
T
Text
- class element.
Text
.
Copyright (c) 1997 McGraw-Hill All Rights Reserved.
Text(char)
- Constructor for class element.
Text
Text(long)
- Constructor for class element.
Text
Text(Object)
- Constructor for class element.
Text
Text(Object, int, int)
- Constructor for class element.
Text
Text(Object, Pt)
- Constructor for class element.
Text
Text(String)
- Constructor for class element.
Text
Text(String, int, int)
- Constructor for class element.
Text
Text(Text)
- Constructor for class element.
Text
there()
- Method in class element.
Line
Returns other endpoint of the line.
toLower(char)
- Static method in class element.
Util
toLower(String)
- Static method in class element.
Util
top
- Variable in class element.
Rect
The top side of the rectangle.
top()
- Method in class element.
Rect
Returns the top coordinate of the rectangle
top()
- Method in interface element.
Drawable
Return the top coordinate of the bounding box of the object
top()
- Method in class element.
Pt
top()
- Method in class element.
Line
Return the top-most coordinate of the segment.
top()
- Method in class element.
Text
top(int)
- Method in class element.
Rect
Sets the top side of the rectangle.
top(int)
- Method in class element.
Pt
top(int)
- Method in class element.
Line
Move the line segment so that top is at y.
top(int)
- Method in class element.
Text
toString()
- Method in class element.
Rect
Construct a string representation of this rectangle
toString()
- Method in class element.
Oval
Construct a string representation of this oval
toString()
- Method in class element.
Arc
Construct a string representation of this arc
toString()
- Method in class element.
ConsoleWindow
toString()
- Method in class element.
RoundRect
post: returns a string representation of Object
toString()
- Method in class element.
Pt
toString()
- Method in class element.
Circle
post: returns a string representation of Object
toString()
- Method in class element.
Line
Return a string representation of the line segment
toString()
- Method in class element.
Text
post: returns a string representation of Object
toUpper(char)
- Static method in class element.
Util
toUpper(String)
- Static method in class element.
Util
U
Util
- class element.
Util
.
Util()
- Constructor for class element.
Util
V
Version
- class element.
Version
.
Version()
- Constructor for class element.
Version
W
width
- Variable in class element.
Rect
The width of the rectangle.
width()
- Method in class element.
Rect
Returns the width of the rectangle.
width()
- Method in interface element.
Drawable
Return the width of the bounding box of the object
width()
- Method in class element.
Pt
width()
- Method in class element.
Line
Determine the horizontal span of the line segment
width()
- Method in class element.
Text
width(int)
- Method in class element.
Rect
Sets the width of the rectangle.
within(int, int, int)
- Static method in class element.
Line
Determine if a value falls between two others.
X
x()
- Method in class element.
Pt
x(int)
- Method in class element.
Pt
Y
y()
- Method in class element.
Pt
y(int)
- Method in class element.
Pt
year
- Static variable in class element.
Version
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
W
X
Y
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES