|
||||||||
PREV NEXT | FRAMES NO FRAMES |
x
, y
).
GCompound
.
x
, y
).
x
, y
).
x
, y
).
x
, y
).
GRectangle
so that it contains
the rectangle represented by the argument.
ActionListener
to every button in
the structure that does not have a listener already.
dx
and dy
from the last vertex.
Edit
menu.
Edit
items to the specified menu.
exit
method in the
specified object before exiting.
File
menu.
File
items to the specified menu.
KeyListener
to the canvas.
KeyListener
to the canvas.
MouseListener
and MouseMotionListener
to the canvas.
MouseListener
and/or
MouseMotionListener
, as appropriate, to the canvas.
x
, y
) relative to the polygon origin.
x
, y
).
x0
, y0
) and
(x1
, y1
).
Thread
to provide several features that make it
easier to build animations.Animator
object.
Serif
,
SansSerif
, and Monospaced
) are available.
"call"
action, as if the Call
button
is pushed.
CancelledException
.
Animator
has been asked
to terminate.
v1
and v2
and returns -1, 0, or +1 depending on whether v1
is earlier
than, equal to, or later than v2
.
Program
that installs a console in the window.true
if the GRectangle
contains the specified point.
true
if the GRectangle
contains the specified point.
angle
is expressed in degrees.
MenuBar
that has the same effect as the
specified JMenuBar
.
ProgramMenuBar
.
Font.decode
.
Font.decode
.
Program
that takes its input from a IODialog
object.x
, y
).
x0
, y0
)
and (x1
, y1
).
double
value.
double
value.
double
value,
which is constrained to be within the specified range.
double
value,
which is constrained to be within the specified range.
dx
and dy
.
ErrorException
using an existing exception.
ErrorException
with the specified message.
run
method.
G3DRect
class is used to represent a rectangle whose
borders are drawn to create a three-dimensional effect.true
.
GArc
class is a graphical object whose appearance consists
of an arc.GArc
object consisting of an elliptical arc
located at the point (0, 0).
GArc
object consisting of an elliptical arc
inscribed in a rectangle located at the point (x
, y
)
with the specified width and height.
GCanvas
class is a lightweight component that also
serves as a container for graphical objects.GCanvas
that contains no objects.
GCompound
object with no internal components.
GObject
.Dimension
class
in java.awt
.GDimension
object from an AWT Dimension
.
GDimension
object from an existing one.
anchor
field from the constraint.
setAutoRepaintFlag
.
GRectangle
whose bounds are the same as this one.
GRectangle
that specifies the bounding box for the string.
null
if the polygon is empty.
setDirection
.
double
value associated with key
in the option table, or 0.0 if no such value exists.
double
value associated with key
in the option table or the specified default value if no such binding
exists.
x
, y
), or null
if no such
object exists.
x
, y
), or null
if no such
object exists.
x
, y
), or null
if no such
object exists.
x
, y
), or null
if no such
object exists.
null
if no such object exists.
null
if no such object exists.
null
if no such object exists.
null
if no such object exists.
GCanvas
.
GCanvas
.
GCanvas
.
GPoint
object.
fill
field from the constraint.
GLabel
is displayed.
null
if no format has been set.
null
if no format has been set.
GRectangle
in which this arc is inscribed.
GCanvas
object used by this program.
gridheight
field from the constraint.
gridwidth
field from the constraint.
gridx
field from the constraint.
gridy
field from the constraint.
GDimension
.
GDimension
.
height
field from the constraint.
hex
,
in which the elements consist of continuous bytes of hex data.
GImage
.
imageObserver
.
IOModel
used for program input, which will
typically be either the default IOConsole
or IODialog
object.
IOModel
used for program input.
insets
field from the constraint.
RandomGenerator
instance that can
be shared among several classes.
key
in the option
table, or 0 if no such value exists.
key
in the option
table or the specified default value if no such binding exists.
ipadx
field from the constraint.
ipady
field from the constraint.
GPoint
with the location of the rectangle.
GPoint
.
GPoint
whose coordinates are the same as this one.
setNativeArcFlag
.
key
in the option
table, or null
if no such value exists.
key
in the option
table or the specified default value if no such binding exists.
IOModel
used for program output, which will
typically be either the default IOConsole
or IODialog
object.
IOModel
used for program output.
setPenVisible
has been
called.
BufferedReader
object that can be used to read
from the console.
BufferedReader
whose input comes from the console.
GDimension
object with the size of the GRectangle
.
GDimension
.
GDimension
.
GDimension
object equal to this one.
GDimension
.
GArc
object.
GArc
object.
double
.
int
.
weightx
field from the constraint.
weighty
field from the constraint.
GDimension
.
GDimension
.
width
field from the constraint.
PrintWriter
object that can be used to send
output to the console.
PrintWriter
whose output is directed to the console.
GRectangle
.
GPoint
.
GRectangle
.
GPoint
.
GImage
class is a graphical object whose appearance is
defined by an image.GImage
object at the origin that displays
the specified image.
GImage
object at the specified coordinates.
GImage
object by looking for an image with that
name.
GImage
object at the specified coordinates.
GLabel
class is a graphical object whose appearance consists
of a text string.GLabel
object initialized to contain the specified string.
GLabel
object with its baseline origin at the
specified position.
GLine
class is a graphical object whose appearance consists
of a line segment.acm.graphics
package.GCanvas
.GOval
class is a graphical object whose appearance consists
of an oval.GPen
class simulates a pen drawing on a canvas.GPen
object with an empty path.
GPen
object with an empty path, initially
positioned at the point (x
, y
).
Point
class
in java.awt
.GPoint
at the origin (0, 0).
GPoint
with the specified coordinates.
GPoint
from an existing one.
GPoint
from an existing AWT Point
.
GPolygon
class is a graphical object whose appearance consists
of a polygon.x
, y
).
GPoint
objects.
Program
whose principal window is used for drawing graphics.GRect
class is a graphical object whose appearance consists
of a rectangular box.Rectangle
class
in java.awt
.GRectangle
.
GRectangle
at the origin with the specified width and height.
GRectangle
with the specified coordinates and size.
GRectangle
at the origin with the specified size.
GRectangle
at the specified location.
GRectangle
with the specified location and size.
GRectangle
from an existing one.
setSize
and setBounds
methods.GRoundRect
class is a graphical object whose appearance consists
of a rounded rectangle.dx
and dy
offsets along each of its borders.
scale
method.GTurtle
class simulates a turtle moving on a canvas.GTurtle
object.
GPen
positioned at the point
(x
, y
).
TablePanel
with a single row.HPanel
.
HPanel
with the specified hgap
and vgap
parameters, which specify the padding between
elements.
r1
and r2
.
true
if r1
and r2
have a nonempty
intersection.
int
value.
int
value.
int
value,
which is constrained to be within the specified range.
int
value,
which is constrained to be within the specified range.
IOConsole
class makes it easier to interact with
the user using text-based input and output in the style of a
traditional console.IOConsole
object.
IODialog
class provides a simple, dialog-based mechanism
for interacting with the user.IOModel
interface defines the input and output methods
supported by both the IOConsole
and IODialog
classes.true
if the supplied thread is an anonymous
one created automatically by the system.
setCachingEnabled
.
true
if the rectangle is empty.
setPenDown
.
sun.audio
package is available.
Iterator
that cycles through the elements within
this container in the default direction, which is from back to front.
Iterator
that cycles through the elements within
this container in the default direction, which is from back to front.
Iterator
that cycles through the elements within
this container in the default direction, which is from back to front.
Iterator
that cycles through the elements
within this container in the specified direction, which must be one
of the constants GContainer.FRONT_TO_BACK
or GContainer.BACK_TO_FRONT
.
Iterator
that cycles through the elements
within this container in the specified direction, which must be one
of the constants GContainer.FRONT_TO_BACK
or GContainer.BACK_TO_FRONT
.
Iterator
that cycles through the elements
within this container in the specified direction, which must be one
of the constants FRONT_TO_BACK
or BACK_TO_FRONT
from the GContainer
interface.
AudioClip
.
Image
.
GTurtle
to be run under the control
of a GraphicsProgram
object.
MyClass
is the name of the program class:
markAsComplete() -
Method in class acm.graphics.GCompound
Calling this method makes it illegal to add or remove elements from the
compound object.
MediaTools - class acm.util.MediaTools.
This class implements a standard mechanism for loading images and sounds.
MediaTools() -
Constructor for class acm.util.MediaTools
menuAction(String) -
Method in class acm.program.Program
Called whenever an action event is detected in the menu bar.
mouseClicked(MouseEvent) -
Method in class acm.program.Program
Called when the mouse is clicked.
mouseDragged(MouseEvent) -
Method in class acm.program.Program
Called when the mouse is dragged with the button down.
mouseEntered(MouseEvent) -
Method in class acm.program.Program
Called when the mouse enters the source (which may be
either a component or a GObject
).
mouseExited(MouseEvent) -
Method in class acm.program.Program
Called when the mouse exits the source (which may be
either a component or a GObject
).
mouseMoved(MouseEvent) -
Method in class acm.program.Program
Called when the mouse is moved.
mousePressed(MouseEvent) -
Method in class acm.program.Program
Called when the mouse button is pressed.
mouseReleased(MouseEvent) -
Method in class acm.program.Program
Called when the mouse button is released.
move(double, double) -
Method in class acm.graphics.GObject
Moves the object on the screen using the displacements dx
and dy
.
movePolar(double, double) -
Method in class acm.graphics.GObject
Moves the object using displacements given in polar coordinates.
N
- nextBoolean(double) -
Method in class acm.util.RandomGenerator
- Returns a random
boolean
value with the specified probability.
- nextColor() -
Method in class acm.util.RandomGenerator
- Returns a random opaque
Color
whose components are chosen uniformly
in the 0-255 range.
- nextDouble(double, double) -
Method in class acm.util.RandomGenerator
- Returns the next random real number in the specified range.
- nextInt(int, int) -
Method in class acm.util.RandomGenerator
- Returns the next random integer in the specified range.
- NONE -
Static variable in class acm.gui.TablePanel
- Do not resize component
- NONE -
Static variable in class acm.gui.TableLayout
- Do not resize component
- NORTH -
Static variable in class acm.program.Program
- Constant specifying the north edge of the container
O
- OptionTable - class acm.util.OptionTable.
-
- OptionTable(Map) -
Constructor for class acm.util.OptionTable
- Creates a new
OptionTable
from an existing map.
- OptionTable(String) -
Constructor for class acm.util.OptionTable
- Creates a new
OptionTable
and initializes it
from the specified string.
- OptionTable(String, String[]) -
Constructor for class acm.util.OptionTable
- Creates a new
OptionTable
from the specified string,
checking to make sure that all keys exist in the string array
keys
.
P
- paint(Graphics) -
Method in class acm.graphics.GObject
- All subclasses of
GObject
must define a paint
method which allows the object to draw itself on the Graphics
context passed in as the parameter g
.
- pause(double) -
Method in class acm.graphics.GObject
- Delays the calling thread for the specified time, which is expressed in
milliseconds.
- pause(double) -
Method in class acm.program.Program
- Delays the calling thread for the specified time, which is expressed in
milliseconds.
- pause(double) -
Static method in class acm.util.JTFTools
- Delays the calling thread for the specified time, which is expressed in
milliseconds.
- pause(double) -
Method in class acm.util.Animator
- Delays this thread for the specified time, which is expressed in
milliseconds.
- penDown() -
Method in class acm.graphics.GTurtle
- Lowers the pen.
- penUp() -
Method in class acm.graphics.GTurtle
- Raises the pen.
- Platform - class acm.util.Platform.
- This class contains methods to support platform-specific code.
- Platform() -
Constructor for class acm.util.Platform
-
- print(String) -
Method in interface acm.io.IOModel
- Displays the argument value, allowing for the possibility of more
output on the same line.
- print(String) -
Method in class acm.io.IOConsole
- Displays the argument value on the console, leaving the cursor at the end of
the output.
- print(String) -
Method in class acm.io.IODialog
- Displays the argument value, allowing for the possibility of more
output in the same dialog.
- print(String) -
Method in class acm.program.Program
- Displays the argument value on the console, leaving the cursor at the end of
the output.
- println() -
Method in interface acm.io.IOModel
- Completes the output line.
- println() -
Method in class acm.io.IOConsole
- Advances the console cursor to the beginning of the next line.
- println() -
Method in class acm.io.IODialog
- Completes the output line and displays the dialog.
- println() -
Method in class acm.program.Program
- Advances the console cursor to the beginning of the next line.
- println(String) -
Method in interface acm.io.IOModel
- Displays the value and then completes the line.
- println(String) -
Method in class acm.io.IOConsole
- Displays the argument value on the console and then advances the cursor
to the beginning of the next line.
- println(String) -
Method in class acm.io.IODialog
- Adds the value to the current output line and then displays the dialog.
- println(String) -
Method in class acm.program.Program
- Displays the argument value on the console and then advances the cursor
to the beginning of the next line.
- Program - class acm.program.Program.
- This class is the superclass for all executable
programs in the
acm.program
package. - ProgramMenuBar - class acm.program.ProgramMenuBar.
- This class standardizes the menu bars used in the ACM program package.
- ProgramMenuBar() -
Constructor for class acm.program.ProgramMenuBar
- Creates a
ProgramMenuBar
with no menus.
R
- RandomGenerator - class acm.util.RandomGenerator.
- This class implements a simple random number generator that allows
clients to generate pseudorandom integers, doubles, booleans, and
colors.
- RandomGenerator() -
Constructor for class acm.util.RandomGenerator
- Creates a new random generator initialized to an unpredictable starting
point.
- readBoolean() -
Method in interface acm.io.IOModel
- Reads and returns a boolean value from the user, which must match
either
true
or false
, ignoring case.
- readBoolean() -
Method in class acm.io.IOConsole
- Reads and returns a boolean value from the user, which must match
either
true
or false
, ignoring case.
- readBoolean() -
Method in class acm.io.IODialog
- Reads and returns a boolean value from the user, which must match
either
true
or false
, ignoring case.
- readBoolean() -
Method in class acm.program.Program
- Reads and returns a boolean value (
true
or false
).
- readBoolean(String) -
Method in interface acm.io.IOModel
- Prompts the user to enter a boolean value, which is then returned as
the value of this method.
- readBoolean(String) -
Method in class acm.io.IOConsole
- Prompts the user to enter a boolean value, which is then returned as
the value of this method.
- readBoolean(String) -
Method in class acm.io.IODialog
- Prompts the user to enter a boolean value, which is then returned as
the value of this method.
- readBoolean(String) -
Method in class acm.program.Program
- Prompts the user to enter a boolean value, which is returned as
the value of this method.
- readBoolean(String, String, String) -
Method in interface acm.io.IOModel
- Prompts the user to enter a value, which is interpreted as a boolean value
by matching it against the
trueLabel
and falseLabel
parameters.
- readBoolean(String, String, String) -
Method in class acm.io.IOConsole
- Prompts the user to enter a value, which is interpreted as a boolean value
by matching it against the
trueLabel
and falseLabel
parameters.
- readBoolean(String, String, String) -
Method in class acm.io.IODialog
- Prompts the user to enter a value, which is interpreted as a boolean value
by matching it against the
trueLabel
and falseLabel
parameters.
- readBoolean(String, String, String) -
Method in class acm.program.Program
- Prompts the user to enter a boolean value, which is matched against the
labels provided.
- readDouble() -
Method in interface acm.io.IOModel
- Reads and returns a double-precision value from the user.
- readDouble() -
Method in class acm.io.IOConsole
- Reads and returns a double-precision value from the user.
- readDouble() -
Method in class acm.io.IODialog
- Reads and returns a double-precision value from the user.
- readDouble() -
Method in class acm.program.Program
- Reads and returns a double-precision value from the user.
- readDouble(double, double) -
Method in interface acm.io.IOModel
- Reads and returns a double-precision value from the user, which is
constrained to be within the specified inclusive range.
- readDouble(double, double) -
Method in class acm.io.IOConsole
- Reads and returns a double-precision value from the user, which is
constrained to be within the specified inclusive range.
- readDouble(double, double) -
Method in class acm.io.IODialog
- Reads and returns a double-precision value from the user, which is
constrained to be within the specified inclusive range.
- readDouble(double, double) -
Method in class acm.program.Program
- Reads and returns a double-precision value from the user, which is
constrained to be within the specified inclusive range.
- readDouble(String) -
Method in interface acm.io.IOModel
- Prompts the user to enter an double-precision number, which is then
returned as the value of this method.
- readDouble(String) -
Method in class acm.io.IOConsole
- Prompts the user to enter an double-precision number, which is then
returned as the value of this method.
- readDouble(String) -
Method in class acm.io.IODialog
- Prompts the user to enter an double-precision number, which is then
returned as the value of this method.
- readDouble(String) -
Method in class acm.program.Program
- Prompts the user to enter an double-precision number, which is then
returned as the value of this method.
- readDouble(String, double, double) -
Method in interface acm.io.IOModel
- Prompts the user to enter an double-precision number, which is then returned
as the value of this method.
- readDouble(String, double, double) -
Method in class acm.io.IOConsole
- Prompts the user to enter an double-precision number, which is then returned
as the value of this method.
- readDouble(String, double, double) -
Method in class acm.io.IODialog
- Prompts the user to enter an double-precision number, which is then returned
as the value of this method.
- readDouble(String, double, double) -
Method in class acm.program.Program
- Prompts the user to enter an double-precision number, which is then returned
as the value of this method.
- readInt() -
Method in interface acm.io.IOModel
- Reads and returns an integer value from the user.
- readInt() -
Method in class acm.io.IOConsole
- Reads and returns an integer value from the user.
- readInt() -
Method in class acm.io.IODialog
- Reads and returns an integer value from the user.
- readInt() -
Method in class acm.program.Program
- Reads and returns an integer value from the user.
- readInt(int, int) -
Method in interface acm.io.IOModel
- Reads and returns an integer value from the user, which is constrained to
be within the specified inclusive range.
- readInt(int, int) -
Method in class acm.io.IOConsole
- Reads and returns an integer value from the user, which is constrained to
be within the specified inclusive range.
- readInt(int, int) -
Method in class acm.io.IODialog
- Reads and returns an integer value from the user, which is constrained to
be within the specified inclusive range.
- readInt(int, int) -
Method in class acm.program.Program
- Reads and returns an integer value from the user, which is constrained to
be within the specified inclusive range.
- readInt(String) -
Method in interface acm.io.IOModel
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String) -
Method in class acm.io.IOConsole
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String) -
Method in class acm.io.IODialog
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String) -
Method in class acm.program.Program
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String, int, int) -
Method in interface acm.io.IOModel
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String, int, int) -
Method in class acm.io.IOConsole
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String, int, int) -
Method in class acm.io.IODialog
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readInt(String, int, int) -
Method in class acm.program.Program
- Prompts the user to enter an integer, which is then returned as the value
of this method.
- readLine() -
Method in interface acm.io.IOModel
- Reads and returns a line of input, without including the end-of-line
characters that terminate the input.
- readLine() -
Method in class acm.io.IOConsole
- Reads and returns a line of input from the console, without
including the end-of-line characters that terminate the input.
- readLine() -
Method in class acm.io.IODialog
- Reads and returns a line of input from the dialog, without
including the end-of-line characters that terminate the input.
- readLine() -
Method in class acm.program.Program
- Reads and returns a line of input from the console.
- readLine(String) -
Method in interface acm.io.IOModel
- Prompts the user to enter a line of text, which is then returned
as the value of this method.
- readLine(String) -
Method in class acm.io.IOConsole
- Prompts the user to enter a line of text, which is then returned
as the value of this method.
- readLine(String) -
Method in class acm.io.IODialog
- Prompts the user to enter a single character, which is then returned
as the value of this method.
- readLine(String) -
Method in class acm.program.Program
- Prompts the user for a line of input.
- recenter() -
Method in class acm.graphics.GPolygon
- Recalculates the vertices of the polygon so that they are positioned
relative to the geometric center of the object.
- registerApplet(Applet) -
Static method in class acm.util.JTFTools
- Adds this applet to a table indexed by the current thread.
- registerApplet(Applet, Thread) -
Static method in class acm.util.JTFTools
- Adds this applet to a table indexed by the specified thread.
- registerSpeedBar(JScrollBar) -
Method in class acm.util.Animator
- Registers the specified scroll bar as the delay controller for the animator.
- registerSpeedBar(JSlider) -
Method in class acm.util.Animator
- Registers the specified slider as the delay controller for the animator.
- remove(Component) -
Method in class acm.graphics.GCanvas
- Removes the component from the canvas.
- remove(GObject) -
Method in class acm.graphics.GCanvas
- Removes a graphical object from this
GCanvas
.
- remove(GObject) -
Method in interface acm.graphics.GContainer
- Removes a graphical object from this container.
- remove(GObject) -
Method in class acm.graphics.GCompound
- Removes a graphical object from this
GCompound
.
- remove(GObject) -
Method in class acm.program.GraphicsProgram
- Removes a graphical object from this container.
- removeActionListener(ActionListener) -
Method in class acm.graphics.GObject
- Removes an action listener from this graphical object.
- removeAll() -
Method in class acm.graphics.GCanvas
- Removes all graphical objects from this
GCanvas
.
- removeAll() -
Method in interface acm.graphics.GContainer
- Removes all graphical objects from this container.
- removeAll() -
Method in class acm.graphics.GCompound
- Removes all graphical objects from this
GCompound
.
- removeAll() -
Method in class acm.program.GraphicsProgram
- Removes all graphical objects from this container.
- removeMouseListener(MouseListener) -
Method in class acm.graphics.GObject
- Removes a mouse listener from this graphical object.
- removeMouseMotionListener(MouseMotionListener) -
Method in class acm.graphics.GObject
- Removes a mouse motion listener from this graphical object.
- requestTermination() -
Method in class acm.util.Animator
- Signals the
Animator
that it should stop running at the
next available opportunity, which is when the client next calls
pause
or checkForTermination
.
- RIGHT -
Static variable in class acm.gui.TablePanel
- Align table horizontally at the right of its container
- RIGHT -
Static variable in class acm.gui.TableLayout
- Align table horizontally at the right of its container
- right(double) -
Method in class acm.graphics.GTurtle
- Changes the direction of the turtle so that it moves the specified number
of degrees to the right.
- rotate(double) -
Method in class acm.graphics.GPolygon
- Rotates the polygon around its origin by the angle theta, measured in degrees.
- round(double) -
Static method in class acm.graphics.GMath
- Rounds a
double
value to the nearest int
.
- run() -
Method in class acm.program.Program
- Contains the code to be executed for each specific program subclass.
- run() -
Method in class acm.program.DialogProgram
- Contains the code to be executed for each specific program subclass.
- run() -
Method in class acm.program.ConsoleProgram
- Contains the code to be executed for each specific program subclass.
- run() -
Method in class acm.program.GraphicsProgram
- Contains the code to be executed for each specific program subclass.
- run() -
Method in class acm.util.Animator
- Specifies the code for the animator.
- RUNNING -
Static variable in class acm.util.Animator
- Constant indicating that the animator is running.
S
- scale(double) -
Method in class acm.graphics.GPolygon
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GRect
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GOval
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GArc
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GCompound
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in interface acm.graphics.GScalable
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GLine
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double) -
Method in class acm.graphics.GImage
- Scales the object on the screen by the scale factor
sf
, which applies
in both dimensions.
- scale(double, double) -
Method in class acm.graphics.GPen
- Sets the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GPolygon
- Scales the polygon by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GRect
- Scales the object on the screen by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GOval
- Scales the object on the screen by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GArc
- Scales the object on the screen by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GCompound
- Scales every object contained in this compound by the scale factors
sx
and sy
.
- scale(double, double) -
Method in interface acm.graphics.GScalable
- Scales the object on the screen by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GLine
- Scales the line on the screen by the scale factors
sx
and sy
.
- scale(double, double) -
Method in class acm.graphics.GImage
- Scales the object on the screen by the scale factors
sx
and sy
.
- sendBackward() -
Method in class acm.graphics.GObject
- Moves this object one step toward the back in the z dimension.
- sendForward() -
Method in class acm.graphics.GObject
- Moves this object one step toward the front in the z dimension.
- sendToBack() -
Method in class acm.graphics.GObject
- Moves this object to the back of the display in the z dimension.
- sendToFront() -
Method in class acm.graphics.GObject
- Moves this object to the front of the display in the z dimension.
- setAllowCancel(boolean) -
Method in class acm.io.IODialog
- Sets the cancellation mode of the dialog as specified by the
flag
parameter.
- setAutoRepaintFlag(boolean) -
Method in class acm.graphics.GCanvas
- Changes the setting of the auto-repaint flag.
- setBackground(Color) -
Method in class acm.io.IOConsole
- Sets the background color used for the console.
- setBounds(double, double, double, double) -
Method in class acm.graphics.GRectangle
- Sets the components of a
GRectangle
from the specified values.
- setBounds(double, double, double, double) -
Method in interface acm.graphics.GResizable
- Changes the bounds of this object to the specified values.
- setBounds(double, double, double, double) -
Method in class acm.graphics.GRect
- Changes the bounds of this object to the specified values.
- setBounds(double, double, double, double) -
Method in class acm.graphics.GOval
- Changes the bounds of this object to the specified values.
- setBounds(double, double, double, double) -
Method in class acm.graphics.GImage
- Changes the bounds of this object to the specified values.
- setBounds(GPoint, GDimension) -
Method in class acm.graphics.GRectangle
- Sets the components of a
GRectangle
from the specified location and size.
- setBounds(GRectangle) -
Method in class acm.graphics.GRectangle
- Sets the bounds of one
GRectangle
equal to that of another.
- setBounds(GRectangle) -
Method in interface acm.graphics.GResizable
- Changes the bounds of this object to the values from the specified
GRectangle
.
- setBounds(GRectangle) -
Method in class acm.graphics.GRect
- Changes the bounds of this object to the values from the specified
GRectangle
.
- setBounds(GRectangle) -
Method in class acm.graphics.GOval
- Changes the bounds of this object to the values from the specified
Rectangle
.
- setBounds(GRectangle) -
Method in class acm.graphics.GImage
- Changes the bounds of this object to the values from the specified
GRectangle
.
- setCachingEnabled(boolean) -
Static method in class acm.util.MediaTools
- This method sets an internal flag in the
MediaTools
package to indicate
whether images and audio clips are cached internally by name.
- setColor(Color) -
Method in class acm.graphics.GObject
- Sets the color used to display this object.
- setColor(Color) -
Method in class acm.graphics.GPen
- Sets the color of the pen.
- setColor(Color) -
Method in class acm.graphics.GTurtle
- Sets the color of the turtle's pen.
- setColumnCount(int) -
Method in class acm.gui.TableLayout
- Resets the number of columns in the table.
- setConsole(IOConsole) -
Method in class acm.program.ProgramMenuBar
- Sets the console associated with the menu bar.
- setConsole(IOConsole) -
Method in class acm.program.Program
- Sets the console associated with this program.
- setConstraints(Component, GridBagConstraints) -
Method in class acm.gui.TableLayout
- Sets the constraints for the component to a copy of the supplied
constraints.
- setConstraints(Component, String) -
Method in class acm.gui.TableLayout
- Sets the constraints for the component to the constraints
specified by the string.
- setDefaultFill(int) -
Method in class acm.gui.TablePanel
- Sets the default fill parameter for components in the table.
- setDefaultFill(int) -
Method in class acm.gui.TableLayout
- Sets the default fill parameter for components in the table.
- setDirection(double) -
Method in class acm.graphics.GTurtle
- Sets the direction in which the turtle is moving.
- setEnabled(String, boolean) -
Method in class acm.program.ProgramMenuBar
- Enables or disables the menu item that generates the specified action
command.
- setEndPoint(double, double) -
Method in class acm.graphics.GLine
- Sets the end point of the line to the point (
x
, y
).
- setExceptionOnError(boolean) -
Method in class acm.gui.DoubleField
- Sets the error-handling mode of this interactor as specified by the
flag
parameter.
- setExceptionOnError(boolean) -
Method in class acm.gui.IntField
- Sets the error-handling mode of this interactor as specified by the
flag
parameter.
- setExceptionOnError(boolean) -
Method in class acm.io.IOConsole
- Sets the error-handling mode of the console as specified by the
flag
parameter.
- setExceptionOnError(boolean) -
Method in class acm.io.IODialog
- Sets the error-handling mode of the dialog as specified by the
flag
parameter.
- setFileTypeAndCreator(File, String, String) -
Static method in class acm.util.Platform
- Sets the Macintosh file type and creator.
- setFileTypeAndCreator(String, String, String) -
Static method in class acm.util.Platform
- Sets the Macintosh file type and creator.
- setFillColor(Color) -
Method in class acm.graphics.GPen
- Sets the color used to fill a region.
- setFillColor(Color) -
Method in interface acm.graphics.GFillable
- Sets the color used to display the filled region of this object.
- setFillColor(Color) -
Method in class acm.graphics.GPolygon
- Sets the color used to display the filled region of this object.
- setFillColor(Color) -
Method in class acm.graphics.GRect
- Sets the color used to display the filled region of this object.
- setFillColor(Color) -
Method in class acm.graphics.GOval
- Sets the color used to display the filled region of this object.
- setFillColor(Color) -
Method in class acm.graphics.GArc
- Sets the color used to display the filled region of this object.
- setFilled(boolean) -
Method in interface acm.graphics.GFillable
- Sets whether this object is filled.
- setFilled(boolean) -
Method in class acm.graphics.GPolygon
- Sets whether this object is filled.
- setFilled(boolean) -
Method in class acm.graphics.GRect
- Sets whether this object is filled.
- setFilled(boolean) -
Method in class acm.graphics.GOval
- Sets whether this object is filled.
- setFilled(boolean) -
Method in class acm.graphics.GArc
- Sets whether this object is filled.
- setFont(Font) -
Method in class acm.graphics.GLabel
- Changes the font used to display the
GLabel
.
- setFont(Font) -
Method in class acm.io.IOConsole
- Sets the font for the console.
- setFont(Font) -
Method in class acm.program.ConsoleProgram
- Sets the font for the console.
- setFont(String) -
Method in class acm.graphics.GLabel
- Changes the font used to display the
GLabel
as specified by
the string str
, which is interpreted in the style of
Font.decode
.
- setFont(String) -
Method in class acm.io.IOConsole
- Sets the font used for the console as specified by
the string
str
, which is interpreted in the style of
Font.decode
.
- setFont(String) -
Method in class acm.program.ConsoleProgram
- Sets the font used for the console as specified by
the string
str
, which is interpreted in the style of
Font.decode
.
- setForeground(Color) -
Method in class acm.io.IOConsole
- Sets the foreground color used for the output text.
- setFormat(String) -
Method in class acm.gui.DoubleField
- Sets the format used for the field.
- setFormat(String) -
Method in class acm.gui.IntField
- Sets the format used for the field.
- setFrameRectangle(double, double, double, double) -
Method in class acm.graphics.GArc
- Changes the arc bounds to the specified values.
- setFrameRectangle(GRectangle) -
Method in class acm.graphics.GArc
- Changes the arc bounds to the values from the specified
GRectangle
.
- setHgap(int) -
Method in class acm.gui.TablePanel
- Sets the horizontal gap between components.
- setHgap(int) -
Method in class acm.gui.TableLayout
- Sets the horizontal gap between components.
- setHorizontalAlignment(int) -
Method in class acm.gui.TablePanel
- Sets the horizontal alignment for the table.
- setHorizontalAlignment(int) -
Method in class acm.gui.TableLayout
- Sets the horizontal alignment for the table.
- setImage(Image) -
Method in class acm.graphics.GImage
- Resets the image used by this
GImage
object to the new image
specified as an argument.
- setImage(String) -
Method in class acm.graphics.GImage
- Resets the image used by this
GImage
object to the one identified
by the argument name
, which is processed exactly as described
in the constructors.
- setLabel(String) -
Method in class acm.graphics.GLabel
- Changes the string stored within the
GLabel
object, so that
a new text string appears on the display.
- setLocation(double, double) -
Method in class acm.graphics.GRectangle
- Sets the location of the
GRectangle
to the specified x
and y
values.
- setLocation(double, double) -
Method in class acm.graphics.GObject
- Sets the location of this object to the point (
x
, y
).
- setLocation(double, double) -
Method in class acm.graphics.GPen
- Moves the pen to the point (
x
, y
) without drawing a line.
- setLocation(double, double) -
Method in class acm.graphics.GPoint
- Sets the location of the
GPoint
to the specified x
and y
values.
- setLocation(double, double) -
Method in class acm.graphics.GTurtle
- Moves the turtle to the point (
x
, y
) without drawing a line.
- setLocation(GPoint) -
Method in class acm.graphics.GRectangle
- Sets the location of the
GRectangle
to the specified point.
- setLocation(GPoint) -
Method in class acm.graphics.GPoint
- Sets the location of the
GPoint
to that of an existing one.
- setNativeArcFlag(boolean) -
Method in class acm.graphics.GCanvas
- Sets whether the redering code for
GArc
and GOval
should use
Java arcs.
- setPenImage(Image) -
Method in class acm.graphics.GPen
- Sets the image of the pen to be the specified image.
- setRaised(boolean) -
Method in class acm.graphics.G3DRect
- Sets whether this object appears raised.
- setRowCount(int) -
Method in class acm.gui.TableLayout
- Resets the number of rows in the table.
- setSize(double, double) -
Method in class acm.graphics.GRectangle
- Sets the size of the
GRectangle
to the specified values.
- setSize(double, double) -
Method in interface acm.graphics.GResizable
- Changes the size of this object to the specified width and height.
- setSize(double, double) -
Method in class acm.graphics.GRect
- Changes the size of this object to the specified width and height.
- setSize(double, double) -
Method in class acm.graphics.GOval
- Changes the size of this object to the specified width and height.
- setSize(double, double) -
Method in class acm.graphics.GDimension
- Sets the components of the dimension object from the specified parameters.
- setSize(double, double) -
Method in class acm.graphics.GImage
- Changes the size of this object to the specified width and height.
- setSize(GDimension) -
Method in class acm.graphics.GRectangle
- Sets the size of the
GRectangle
to the specified dimension.
- setSize(GDimension) -
Method in interface acm.graphics.GResizable
- Changes the size of this object as specified by the
GDimension
object.
- setSize(GDimension) -
Method in class acm.graphics.GDimension
- Sets the width and height of one
GDimension
object equal to that of another.
- setSize(int) -
Method in class acm.graphics.GTurtle
- Sets the size of the turtle.
- setSpeed(double) -
Method in class acm.graphics.GPen
- Sets the speed of the pen, which must be a number between 0 (slowest)
and 1 (fastest).
- setSpeed(double) -
Method in class acm.graphics.GTurtle
- Sets the speed of the turtle, which must be a number between 0 (slowest)
and 1 (fastest).
- setSpeed(double) -
Method in class acm.util.Animator
- Sets the speed parameter for the animator.
- setStartAngle(double) -
Method in class acm.graphics.GArc
- Sets the starting angle for this
GArc
object.
- setStartPoint(double, double) -
Method in class acm.graphics.GLine
- Sets the initial point in the line to (
x
, y
),
leaving the end point unchanged.
- setSweepAngle(double) -
Method in class acm.graphics.GArc
- Sets the sweep angle for this
GArc
object.
- setTitle(String) -
Method in class acm.program.Program
- Sets the title of this program.
- setValue(double) -
Method in class acm.gui.DoubleField
- Sets the value of a field.
- setValue(int) -
Method in class acm.gui.IntField
- Sets the value of a field.
- setVerticalAlignment(int) -
Method in class acm.gui.TablePanel
- Sets the vertical alignment for the table.
- setVerticalAlignment(int) -
Method in class acm.gui.TableLayout
- Sets the vertical alignment for the table.
- setVgap(int) -
Method in class acm.gui.TablePanel
- Sets the vertical gap between components.
- setVgap(int) -
Method in class acm.gui.TableLayout
- Sets the vertical gap between components.
- setVisible(boolean) -
Method in class acm.graphics.GObject
- Sets whether this object is visible.
- showErrorMessage(String) -
Method in interface acm.io.IOModel
- Displays the error message.
- showErrorMessage(String) -
Method in class acm.io.IOConsole
- Displays the error message on the console.
- showErrorMessage(String) -
Method in class acm.io.IODialog
- Displays the error message in an error dialog.
- showErrorMessage(String) -
Method in class acm.program.Program
- Displays the error message in the standard output model.
- showPen() -
Method in class acm.graphics.GPen
- Makes the pen itself visible.
- showTurtle() -
Method in class acm.graphics.GTurtle
- Makes the turtle visible.
- sinDegrees(double) -
Static method in class acm.graphics.GMath
- Returns the trigonometric sine of its argument where
angle
is expressed in degrees.
- SOUTH -
Static variable in class acm.program.Program
- Constant specifying the south edge of the container
- start() -
Method in class acm.util.Animator
- Starts the thread.
- start(String[]) -
Method in class acm.program.Program
- Starts the program using the specified argument list.
- startAction() -
Method in class acm.util.Animator
- Triggers a
"start"
action, as if the Start
button
is pushed.
- startFilledRegion() -
Method in class acm.graphics.GPen
- Starts defining a region that will be filled with the current color.
- stepAction() -
Method in class acm.util.Animator
- Triggers a
"step"
action, as if the Step
button
is pushed.
- STEPPING -
Static variable in class acm.util.Animator
- Constant indicating that the animator is running in single-step mode.
- stopAction() -
Method in class acm.util.Animator
- Triggers a
"stop"
action, as if the Stop
button
is pushed.
- STOPPED -
Static variable in class acm.util.Animator
- Constant indicating that the animator is suspended waiting for restart.
- STOPPING -
Static variable in class acm.util.Animator
- Constant indicating that the animator should stop at the next trace point.
- SwingTimer - class acm.util.SwingTimer.
- This class is equivalent to
javax.swing.Timer
and
exists only to avoid the ambiguity that arises because there is
also a Timer
class in java.util
. - SwingTimer(int, ActionListener) -
Constructor for class acm.util.SwingTimer
- Creates a new timer that ticks at the specified rate.
- SYSTEM_CONSOLE -
Static variable in class acm.io.IOConsole
- This constant is an object that offers the functionality of the
IOConsole
class, but which does so using the standard
I/O streams System.in
and System.out
.
T
- TableConstraints - class acm.gui.TableConstraints.
- This class specifies a set of constraints appropriate to a
TableLayout
or GridBagLayout
. - TableConstraints() -
Constructor for class acm.gui.TableConstraints
- Creates a new
TableConstraints
object with default
values for each of the fields
Usage:
TableConstraints constraints = new TableConstraints();
- TableConstraints(String) -
Constructor for class acm.gui.TableConstraints
- Creates a new
TableConstraints
object whose components
are initialized according from the specified string.
- TableLayout - class acm.gui.TableLayout.
-
- TableLayout() -
Constructor for class acm.gui.TableLayout
- Creates a new
TableLayout
object with no limits
on the number of rows and columns.
- TableLayout(int, int) -
Constructor for class acm.gui.TableLayout
- Creates a new
TableLayout
object with the specified
number of rows and columns.
- TableLayout(int, int, int, int) -
Constructor for class acm.gui.TableLayout
- Creates a new
TableLayout
object with the specified
row count, column count, alignment, horizontal gap, and vertical gap.
- TablePanel - class acm.gui.TablePanel.
- This class represents a simple
JPanel
that uses
TableLayout
as its layout manager. - TablePanel(int, int) -
Constructor for class acm.gui.TablePanel
- Creates a new
TablePanel
whose layout manager supports the
specified number of rows and columns.
- TablePanel(int, int, int, int) -
Constructor for class acm.gui.TablePanel
- Creates a new
TablePanel
with the specified number
of rows and columns and the supplied values for the horizontal and
vertical gap.
- tanDegrees(double) -
Static method in class acm.graphics.GMath
- Returns the trigonometric sine of its argument where
angle
is expressed in degrees.
- terminateAppletThreads(Applet) -
Static method in class acm.util.JTFTools
- Terminates all of the threads that are registered as belonging to the
specified applet.
- TERMINATING -
Static variable in class acm.util.Animator
- Constant indicating that the animator has been asked to terminate.
- toDegrees(double) -
Static method in class acm.graphics.GMath
- Converts an angle from radians to degrees.
- toDimension() -
Method in class acm.graphics.GDimension
- Converts this
GDimension
to the nearest integer-based
Dimension
.
- TOP -
Static variable in class acm.gui.TablePanel
- Align table vertically at the top of its container
- TOP -
Static variable in class acm.gui.TableLayout
- Align table vertically at the top of its container
- toPoint() -
Method in class acm.graphics.GPoint
- Converts this
GPoint
to the nearest integer-based Point
.
- toRadians(double) -
Static method in class acm.graphics.GMath
- Converts an angle from degrees to radians.
- toRectangle() -
Method in class acm.graphics.GRectangle
- Converts this
GRectangle
to the nearest integer-based Rectangle
.
- trace() -
Method in class acm.util.Animator
- Checks the state of the animator and executes any actions have been requested.
- trace(int) -
Method in class acm.util.Animator
- Checks the state of the animator and executes any actions have been requested
to occur at the specified call stack depth.
- translate(double, double) -
Method in class acm.graphics.GRectangle
- Adjusts the coordinates of a rectangle by the specified
dx
and
dy
offsets.
- translate(double, double) -
Method in class acm.graphics.GPoint
- Adjusts the coordinates of a point by the specified
dx
and
dy
offsets.
U
- union(GRectangle) -
Method in class acm.graphics.GRectangle
- Returns the smallest rectangle that contains both
r1
and r2
.
- UNIX -
Static variable in class acm.util.Platform
- Indicates that the system is some variety of Unix or Linux.
- UNKNOWN -
Static variable in class acm.util.Platform
- Indicates that the type of system cannot be determined.
V
- VERTICAL -
Static variable in class acm.gui.TablePanel
- Resize component in vertical direction only
- VERTICAL -
Static variable in class acm.gui.TableLayout
- Resize component in vertical direction only
- VPanel - class acm.gui.VPanel.
- This class represents a vertical
TablePanel
with a single column. - VPanel() -
Constructor for class acm.gui.VPanel
- Creates a new
VPanel
.
- VPanel(int, int) -
Constructor for class acm.gui.VPanel
- Creates a new
VPanel
with the specified hgap
and vgap
parameters, which specify the padding between
elements.
W
- waitForClick() -
Method in class acm.program.GraphicsProgram
- Waits for a mouse click in the window before proceeding.
- WEST -
Static variable in class acm.program.Program
- Constant specifying the west edge of the container
- width -
Variable in class acm.gui.TableConstraints
- Specifies the desired width of this cell.
- WINDOWS -
Static variable in class acm.util.Platform
- Indicates that the system is some variety of Microsoft Windows.
A B C D E F G H I J K L M N O P R S T U V W
Overview
Package
Class
Tree
Index
Help
PREV
NEXT
FRAMES
NO FRAMES