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

A

acm.graphics - package acm.graphics
This package provides a set of classes that support the creation of simple, object-oriented graphical displays.
acm.gui - package acm.gui
This package provides a set of classes that support the creation of simple, interactive programs.
acm.io - package acm.io
This package includes two classes that simplify I/O operations.
acm.program - package acm.program
This package provides a set of classes that simplify the creation of programs.
acm.util - package acm.util
This package includes several classes that are common to the ACM package suite.
actionPerformed(ActionEvent) - Method in class acm.program.Program
Called when a component (typically a button) is activated.
add(Component) - Method in class acm.graphics.GCanvas
Adds the component to this canvas without changing its location.
add(Component, double, double) - Method in class acm.graphics.GCanvas
Adds the component to this canvas and sets its location to the point (xy).
add(Component, GPoint) - Method in class acm.graphics.GCanvas
Adds the component to this canvas and sets its location to the specified point.
add(double, double) - Method in class acm.graphics.GRectangle
Adds the specified point to the rectangle.
add(GObject) - Method in class acm.graphics.GCanvas
Adds the graphical object to this canvas.
add(GObject) - Method in interface acm.graphics.GContainer
Adds a new graphical object to this container.
add(GObject) - Method in class acm.graphics.GCompound
Adds a new graphical object to this GCompound.
add(GObject) - Method in class acm.program.GraphicsProgram
Adds a new graphical object to this container.
add(GObject, double, double) - Method in class acm.graphics.GCanvas
Adds the graphical object to this canvas and sets its location to the point (xy).
add(GObject, double, double) - Method in interface acm.graphics.GContainer
Adds the graphical object to this canvas and sets its location to the point (xy).
add(GObject, double, double) - Method in class acm.graphics.GCompound
Adds the graphical object to this canvas and sets its location to the point (xy).
add(GObject, double, double) - Method in class acm.program.GraphicsProgram
Adds the graphical object to this canvas and sets its location to the point (xy).
add(GObject, GPoint) - Method in class acm.graphics.GCanvas
Adds the graphical object to this canvas and sets its location to the specified point.
add(GObject, GPoint) - Method in interface acm.graphics.GContainer
Adds the graphical object to this canvas and sets its location to the specified point.
add(GObject, GPoint) - Method in class acm.graphics.GCompound
Adds the graphical object to this canvas and sets its location to the specified point.
add(GObject, GPoint) - Method in class acm.program.GraphicsProgram
Adds the graphical object to this canvas and sets its location to the specified point.
add(GRectangle) - Method in class acm.graphics.GRectangle
Adjusts the bounds of the current GRectangle so that it contains the rectangle represented by the argument.
addActionListener(ActionListener) - Method in class acm.graphics.GObject
Adds an action listener to this graphical object.
addActionListeners() - Method in class acm.program.Program
Adds the program as an ActionListener to every button in the structure that does not have a listener already.
addActionListeners(ActionListener) - Method in class acm.program.Program
Adds the specified listener to every button in the structure that does not have a listener already.
addArc(double, double, double, double) - Method in class acm.graphics.GPolygon
Adds a series of edges to the polygon that simulates the arc specified by the parameters.
addEdge(double, double) - Method in class acm.graphics.GPolygon
Adds an edge to the polygon whose components are given by the displacements dx and dy from the last vertex.
addEditMenu() - Method in class acm.program.ProgramMenuBar
Installs the Edit menu.
addEditMenuItems(JMenu) - Method in class acm.program.ProgramMenuBar
Adds the standard Edit items to the specified menu.
addExitHook(Object) - Method in class acm.program.Program
Requests that the program call the exit method in the specified object before exiting.
addFileMenu() - Method in class acm.program.ProgramMenuBar
Installs the File menu.
addFileMenuItems(JMenu) - Method in class acm.program.ProgramMenuBar
Adds the standard File items to the specified menu.
addKeyListeners() - Method in class acm.program.GraphicsProgram
Adds the program as a KeyListener to the canvas.
addKeyListeners(KeyListener) - Method in class acm.program.GraphicsProgram
Adds the specified listener as a KeyListener to the canvas.
addMouseListener(MouseListener) - Method in class acm.graphics.GObject
Adds a mouse listener to this graphical object.
addMouseListeners() - Method in class acm.program.GraphicsProgram
Adds the program as both a MouseListener and MouseMotionListener to the canvas.
addMouseListeners(EventListener) - Method in class acm.program.GraphicsProgram
Adds the specified listener as a MouseListener and/or MouseMotionListener, as appropriate, to the canvas.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GObject
Adds a mouse motion listener to this graphical object.
addPolarEdge(double, double) - Method in class acm.graphics.GPolygon
Adds an edge to the polygon specified in polar coordinates.
addVertex(double, double) - Method in class acm.graphics.GPolygon
Adds a vertex at (x, y) relative to the polygon origin.
angle(double, double) - Static method in class acm.graphics.GMath
Returns the angle in degrees from the origin to the point (xy).
angle(double, double, double, double) - Static method in class acm.graphics.GMath
Computes the angle in degrees formed by a line segment from the point (x0y0) and (x1y1).
Animator - class acm.util.Animator.
This class extends Thread to provide several features that make it easier to build animations.
Animator() - Constructor for class acm.util.Animator
Creates a new Animator object.
ARC_TOLERANCE - Static variable in class acm.graphics.GArc
This constant defines how close (measured in pixel units) a point has to be to an arc before that point is considered to be "contained" within the arc.
areCollectionsAvailable() - Static method in class acm.util.Platform
Checks whether the JDK 1.2 collection classes are available.
areStandardFontFamiliesAvailable() - Static method in class acm.util.Platform
Checks whether the JDK 1.2 standard font families (Serif, SansSerif, and Monospaced) are available.

B

BACK_TO_FRONT - Static variable in interface acm.graphics.GContainer
Specifies that iterators should run from back to front
beep() - Static method in class acm.util.MediaTools
This method sounds the audible alert on the console, which is typically a beep sound.
BOTH - Static variable in class acm.gui.TablePanel
Resize component in both directions
BOTH - Static variable in class acm.gui.TableLayout
Resize component in both directions
BOTTOM - Static variable in class acm.gui.TablePanel
Align table vertically at the bottom of its container
BOTTOM - Static variable in class acm.gui.TableLayout
Align table vertically at the bottom of its container
breakpoint() - Method in class acm.util.Animator
Suspends the animator until one of the restart actions is triggered.
buttonAction(String) - Method in class acm.util.Animator
Triggers an action for the action specified by the action command.

C

callAction() - Method in class acm.util.Animator
Triggers a "call" action, as if the Call button is pushed.
CALLING - Static variable in class acm.util.Animator
Constant indicating that the animator is running until the end of the current call.
CancelledException - exception acm.util.CancelledException.
This class allows a dialog to signal clients that it has been cancelled.
CancelledException() - Constructor for class acm.util.CancelledException
Creates an CancelledException.
CENTER - Static variable in class acm.gui.TablePanel
Center table in the container
CENTER - Static variable in class acm.gui.TableLayout
Center table in the container
CENTER - Static variable in class acm.program.Program
Constant specifying the center of the container
checkForTermination() - Method in class acm.util.Animator
Checks to see whether this Animator has been asked to terminate.
clear() - Method in class acm.io.IOConsole
Clears the console display.
compareVersion(String) - Static method in class acm.util.Platform
This method compares the Java version given in the system properties with the specified version and returns -1, 0, or +1 depending on whether the system version is earlier than, equal to, or later than the specified one.
compareVersion(String, String) - Static method in class acm.util.Platform
This method compares the version strings v1 and v2 and returns -1, 0, or +1 depending on whether v1 is earlier than, equal to, or later than v2.
ConsoleProgram - class acm.program.ConsoleProgram.
This class is a standard subclass of Program that installs a console in the window.
ConsoleProgram() - Constructor for class acm.program.ConsoleProgram
Creates a new console program.
contains(double, double) - Method in class acm.graphics.GRectangle
Returns true if the GRectangle contains the specified point.
contains(double, double) - Method in class acm.graphics.GObject
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GPolygon
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GOval
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GArc
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GCompound
Checks to see whether a point is "inside" the compound, which means that it is inside one of the components.
contains(double, double) - Method in class acm.graphics.GLine
Checks to see whether a point is inside the object.
contains(GPoint) - Method in class acm.graphics.GRectangle
Returns true if the GRectangle contains the specified point.
contains(GPoint) - Method in class acm.graphics.GObject
Checks to see whether a point is inside the object.
cosDegrees(double) - Static method in class acm.graphics.GMath
Returns the trigonometric sine of its argument where angle is expressed in degrees.
createAudioClip(InputStream) - Static method in class acm.util.MediaTools
Generates an audio clip from an input stream containing the data bytes for the audio clip.
createAudioClip(String[]) - Static method in class acm.util.MediaTools
Generates an audio clip from a string array that provides the pixel values.
createEmptyContainer() - Static method in class acm.util.JTFTools
Returns an empty lightweight container.
createImage(InputStream) - Static method in class acm.util.MediaTools
Generates an image from an input stream containing the data bytes for the image formatted in image/gif format.
createImage(int[], int, int) - Static method in class acm.util.MediaTools
Generates an image from an array of pixel values.
createImage(String[]) - Static method in class acm.util.MediaTools
Generates an image from a string array that provides the pixel values.
createOldStyleMenuBar() - Method in class acm.program.ProgramMenuBar
Creates a MenuBar that has the same effect as the specified JMenuBar.
createStandardMenuItem(String) - Method in class acm.program.ProgramMenuBar
Creates one of the standard menu items implemented by the ProgramMenuBar.

D

decodeColor(String) - Static method in class acm.util.JTFTools
Decodes a color name.
decodeFont(String) - Static method in class acm.util.JTFTools
Decodes a font in the style of Font.decode.
decodeFont(String, Font) - Static method in class acm.util.JTFTools
Decodes a font in the style of Font.decode.
DEFAULT_ARC - Static variable in class acm.graphics.GRoundRect
The default arc diameter used for the corners of a rounded rectangle.
DEFAULT_AUDIO_PATH - Static variable in class acm.util.MediaTools
The list of directories scanned for audio clips, separated by colons.
DEFAULT_FONT - Static variable in class acm.graphics.GLabel
The default font used to display strings.
DEFAULT_IMAGE_PATH - Static variable in class acm.util.MediaTools
The list of directories scanned for images, separated by colons.
defineAudioClip(String, AudioClip) - Static method in class acm.util.MediaTools
Inserts the given clip into the audio clip table under the specified name.
defineImage(String, Image) - Static method in class acm.util.MediaTools
Inserts the given image into the image table under the specified name.
delay() - Method in class acm.util.Animator
Delays the calling thread according to the speed.
DialogProgram - class acm.program.DialogProgram.
This class is a standard subclass of Program that takes its input from a IODialog object.
DialogProgram() - Constructor for class acm.program.DialogProgram
Creates a new dialog program.
distance(double, double) - Static method in class acm.graphics.GMath
Computes the distance between the origin and the point (xy).
distance(double, double, double, double) - Static method in class acm.graphics.GMath
Computes the distance between the points (x0y0) and (x1y1).
DoubleField - class acm.gui.DoubleField.
 
DoubleField() - Constructor for class acm.gui.DoubleField
Creates a new field object for entering a double value.
DoubleField(double) - Constructor for class acm.gui.DoubleField
Creates a new field object for entering a double value.
DoubleField(double, double) - Constructor for class acm.gui.DoubleField
Creates a new field object for entering a double value, which is constrained to be within the specified range.
DoubleField(double, double, double) - Constructor for class acm.gui.DoubleField
Creates a new field object for entering a double value, which is constrained to be within the specified range.
drawLine(double, double) - Method in class acm.graphics.GPen
Draws a line segment with displacements dx and dy.
drawPolarLine(double, double) - Method in class acm.graphics.GPen
Draws a line segment using displacements given in polar coordinates.

E

EAST - Static variable in class acm.program.Program
Constant specifying the east edge of the container
endFilledRegion() - Method in class acm.graphics.GPen
Ends the definition of a region and fills it with the current color.
erasePath() - Method in class acm.graphics.GPen
Erases the entire path drawn by the pen but does not change its position.
erasePath() - Method in class acm.graphics.GTurtle
Erases the entire path drawn by the turtle but does not change its position.
ErrorException - exception acm.util.ErrorException.
This class allows errors to be reported in a consistent way.
ErrorException(Exception) - Constructor for class acm.util.ErrorException
Creates an ErrorException using an existing exception.
ErrorException(String) - Constructor for class acm.util.ErrorException
Creates an ErrorException with the specified message.
exit() - Method in class acm.program.Program
Exits from the program.

F

FILL - Static variable in class acm.gui.TablePanel
Expand table to fill its container
FILL - Static variable in class acm.gui.TableLayout
Expand table to fill its container
FINISHED - Static variable in class acm.util.Animator
Constant indicating that the animator has finished its run method.
fireActionEvent(ActionEvent) - Method in class acm.graphics.GObject
Triggers an action event for this graphical object.
fireActionEvent(String) - Method in class acm.graphics.GObject
Triggers an action event for this graphical object with the specified action command.
flushAudioClip(String) - Static method in class acm.util.MediaTools
Removes the audio clip with the given name from the cache, allowing it to be freed by the garbage collector.
flushImage(String) - Static method in class acm.util.MediaTools
Removes the image with the given name from the cache, allowing it to be freed by the garbage collector.
forward() - Method in class acm.graphics.GTurtle
Moves the turtle forward by its own size.
forward(double) - Method in class acm.graphics.GTurtle
Moves the turtle forward in its current direction by the specified distance.
FRONT_TO_BACK - Static variable in interface acm.graphics.GContainer
Specifies that iterators should run from front to back

G

G3DRect - class acm.graphics.G3DRect.
The G3DRect class is used to represent a rectangle whose borders are drawn to create a three-dimensional effect.
G3DRect(double, double) - Constructor for class acm.graphics.G3DRect
Constructs a new 3D rectangle with the specified width and height, positioned at the origin.
G3DRect(double, double, double, double) - Constructor for class acm.graphics.G3DRect
Constructs a new 3D rectangle with the specified bounds.
G3DRect(double, double, double, double, boolean) - Constructor for class acm.graphics.G3DRect
Constructs a new 3D rectangle with the specified bounds which is raised if the final parameter is true.
GArc - class acm.graphics.GArc.
The GArc class is a graphical object whose appearance consists of an arc.
GArc(double, double, double, double) - Constructor for class acm.graphics.GArc
Creates a new GArc object consisting of an elliptical arc located at the point (0, 0).
GArc(double, double, double, double, double, double) - Constructor for class acm.graphics.GArc
Creates a new GArc object consisting of an elliptical arc inscribed in a rectangle located at the point (xy) with the specified width and height.
GCanvas - class acm.graphics.GCanvas.
The GCanvas class is a lightweight component that also serves as a container for graphical objects.
GCanvas() - Constructor for class acm.graphics.GCanvas
Creates a new GCanvas that contains no objects.
GCompound - class acm.graphics.GCompound.
This class defines a graphical object that consists of a collection of other graphical objects.
GCompound() - Constructor for class acm.graphics.GCompound
Creates a new GCompound object with no internal components.
GContainer - interface acm.graphics.GContainer.
Defines the functionality of an object that can serve as the parent of a GObject.
GDimension - class acm.graphics.GDimension.
This class is a double-precision version of the Dimension class in java.awt.
GDimension() - Constructor for class acm.graphics.GDimension
Constructs a new dimension object with zero values for width and height.
GDimension(Dimension) - Constructor for class acm.graphics.GDimension
Constructs a new GDimension object from an AWT Dimension.
GDimension(double, double) - Constructor for class acm.graphics.GDimension
Constructs a new dimension object with the specified components.
GDimension(GDimension) - Constructor for class acm.graphics.GDimension
Constructs a new GDimension object from an existing one.
getAllowCancel() - Method in class acm.io.IODialog
Returns the state of the cancellation mode.
getAnchor() - Method in class acm.gui.TableConstraints
Returns the anchor field from the constraint.
getAnimatorState() - Method in class acm.util.Animator
Returns the state of the animator.
getApplet() - Static method in class acm.util.JTFTools
Returns the current applet.
getArcHeight() - Method in class acm.graphics.GRoundRect
Returns the y component of the corner radius.
getArcWidth() - Method in class acm.graphics.GRoundRect
Returns the x component of the corner radius.
getAscent() - Method in class acm.graphics.GLabel
Returns the distance this string extends above the baseline.
getAutoRepaintFlag() - Method in class acm.graphics.GCanvas
Returns the current setting of the auto-repaint flag as described in setAutoRepaintFlag.
getBounds() - Method in class acm.graphics.GRectangle
Returns a new GRectangle whose bounds are the same as this one.
getBounds() - Method in class acm.graphics.GObject
Returns the bounding box of this object, which is defined to be the smallest rectangle that covers everything drawn by the figure.
getBounds() - Method in class acm.graphics.GPen
Returns the bounding box for the entire figure traced by the pen.
getBounds() - Method in class acm.graphics.GLabel
Returns a GRectangle that specifies the bounding box for the string.
getBounds() - Method in class acm.graphics.GPolygon
Returns the bounding box of this object, which is defined to be the smallest rectangle that covers everything drawn by the figure.
getBounds() - Method in class acm.graphics.GRect
Returns the bounding box of this object.
getBounds() - Method in class acm.graphics.GOval
Returns the bounding box of this object.
getBounds() - Method in class acm.graphics.GArc
Returns the bounding box of the arc.
getBounds() - Method in class acm.graphics.GCompound
Returns the bounding rectangle for this compound object, which consists of the union of the bounding rectangles for each of the components.
getBounds() - Method in class acm.graphics.GLine
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GImage
Returns the bounding box of this object.
getBounds() - Method in class acm.graphics.GTurtle
Returns the bounding box for the entire figure traced by the turtle.
getCanvasPoint(double, double) - Method in class acm.graphics.GCompound
Converts the location of the specified point in this compound to the corresponding point in the enclosing canvas.
getCanvasPoint(GPoint) - Method in class acm.graphics.GCompound
Converts the location of the specified point in this compound to the corresponding point in the enclosing canvas.
getColor() - Method in class acm.graphics.GObject
Returns the color used to display this object.
getColumnCount() - Method in class acm.gui.TableLayout
Returns the number of columns in the table.
getConsole() - Method in class acm.program.ProgramMenuBar
Returns the console associated with this menu bar.
getConsole() - Method in class acm.program.Program
Returns the console associated with this program.
getConstraints(Component) - Method in class acm.gui.TableLayout
Returns a copy of the constraints requested for the specified component.
getCurrentPoint() - Method in class acm.graphics.GPolygon
Returns the coordinates of the last vertex added to the polygon, or null if the polygon is empty.
getDefaultFill() - Method in class acm.gui.TablePanel
Returns the default fill parameter for components in the table.
getDefaultFill() - Method in class acm.gui.TableLayout
Returns the default fill parameter for components in the table.
getDescent() - Method in class acm.graphics.GLabel
Returns the distance this string descends below the baseline.
getDialog() - Method in class acm.program.Program
Returns the dialog used for user interaction.
getDirection() - Method in class acm.graphics.GTurtle
Returns the direction specified by setDirection.
getDoubleOption(String) - Method in class acm.util.OptionTable
Returns the double value associated with key in the option table, or 0.0 if no such value exists.
getDoubleOption(String, double) - Method in class acm.util.OptionTable
Returns the double value associated with key in the option table or the specified default value if no such binding exists.
getElement(int) - Method in class acm.graphics.GCanvas
Returns the graphical object at the specified index, numbering from back to front in the the z dimension.
getElement(int) - Method in interface acm.graphics.GContainer
Returns the graphical object at the specified index, numbering from back to front in the the z dimension.
getElement(int) - Method in class acm.graphics.GCompound
Returns the graphical object at the specified index, numbering from back to front in the the z dimension.
getElement(int) - Method in class acm.program.GraphicsProgram
Returns the graphical object at the specified index, numbering from back to front in the the z dimension.
getElementAt(double, double) - Method in class acm.graphics.GCanvas
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(double, double) - Method in interface acm.graphics.GContainer
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(double, double) - Method in class acm.graphics.GCompound
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(double, double) - Method in class acm.program.GraphicsProgram
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(GPoint) - Method in class acm.graphics.GCanvas
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementAt(GPoint) - Method in interface acm.graphics.GContainer
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementAt(GPoint) - Method in class acm.graphics.GCompound
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementAt(GPoint) - Method in class acm.program.GraphicsProgram
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementCount() - Method in class acm.graphics.GCanvas
Returns the number of graphical objects stored in this GCanvas.
getElementCount() - Method in interface acm.graphics.GContainer
Returns the number of graphical objects stored in this GCanvas.
getElementCount() - Method in class acm.graphics.GCompound
Returns the number of graphical objects stored in this container.
getElementCount() - Method in class acm.program.GraphicsProgram
Returns the number of graphical objects stored in this GCanvas.
getEnclosingFrame(Component) - Static method in class acm.util.JTFTools
Returns the frame that encloses the specified component.
getEndPoint() - Method in class acm.graphics.GArc
Returns the point at which the arc ends.
getEndPoint() - Method in class acm.graphics.GLine
Returns the end point of the line as a GPoint object.
getExceptionOnError() - Method in class acm.gui.DoubleField
Returns the state of the error-handling flag.
getExceptionOnError() - Method in class acm.gui.IntField
Returns the state of the error-handling flag.
getExceptionOnError() - Method in class acm.io.IOConsole
Returns the state of the error-handling flag.
getExceptionOnError() - Method in class acm.io.IODialog
Returns the state of the error-handling flag.
getFill() - Method in class acm.gui.TableConstraints
Returns the fill field from the constraint.
getFillColor() - Method in class acm.graphics.GPen
Returns the color used to display the filled region of this object.
getFillColor() - Method in interface acm.graphics.GFillable
Returns the color used to display the filled region of this object.
getFillColor() - Method in class acm.graphics.GPolygon
Returns the color used to display the filled region of this object.
getFillColor() - Method in class acm.graphics.GRect
Returns the color used to display the filled region of this object.
getFillColor() - Method in class acm.graphics.GOval
Returns the color used to display the filled region of this object.
getFillColor() - Method in class acm.graphics.GArc
Returns the color used to display the filled region of this object.
getFont() - Method in class acm.graphics.GLabel
Returns the font in which the GLabel is displayed.
getFormat() - Method in class acm.gui.DoubleField
Returns the format currently in use for this field, or null if no format has been set.
getFormat() - Method in class acm.gui.IntField
Returns the format currently in use for this field, or null if no format has been set.
getFrameRectangle() - Method in class acm.graphics.GArc
Returns the bounds of the GRectangle in which this arc is inscribed.
getGCanvas() - Method in class acm.program.GraphicsProgram
Returns the GCanvas object used by this program.
getGridHeight() - Method in class acm.gui.TableConstraints
Returns the gridheight field from the constraint.
getGridWidth() - Method in class acm.gui.TableConstraints
Returns the gridwidth field from the constraint.
getGridX() - Method in class acm.gui.TableConstraints
Returns the gridx field from the constraint.
getGridY() - Method in class acm.gui.TableConstraints
Returns the gridy field from the constraint.
getHeight() - Method in class acm.graphics.GRectangle
Returns the height of this GDimension.
getHeight() - Method in class acm.graphics.GObject
Returns the height of this object, which is defined to be the height of the bounding box.
getHeight() - Method in class acm.graphics.GCanvas
Returns the height of this canvas in pixels.
getHeight() - Method in class acm.graphics.GLabel
Returns the height of this string, as it appears on the display.
getHeight() - Method in class acm.graphics.GRect
Returns the height of this object as a double-precision value, which is defined to be the height of the bounding box.
getHeight() - Method in class acm.graphics.GOval
Returns the height of this object as a double-precision value, which is defined to be the height of the bounding box.
getHeight() - Method in class acm.graphics.GDimension
Returns the height of this GDimension.
getHeight() - Method in class acm.gui.TableConstraints
Returns the height field from the constraint.
getHexInputStream(String[]) - Static method in class acm.util.MediaTools
Returns an input stream whose bytes come from the string array hex, in which the elements consist of continuous bytes of hex data.
getHgap() - Method in class acm.gui.TablePanel
Returns the horizontal gap between components.
getHgap() - Method in class acm.gui.TableLayout
Returns the horizontal gap between components.
getHorizontalAlignment() - Method in class acm.gui.TablePanel
Returns the horizontal alignment for the table.
getHorizontalAlignment() - Method in class acm.gui.TableLayout
Returns the horizontal alignment for the table.
getImage() - Method in class acm.graphics.GImage
Returns the image stored inside this GImage.
getImageObserver() - Static method in class acm.util.MediaTools
This method returns a new lightweight component suitable as an imageObserver.
getInputModel() - Method in class acm.program.Program
Returns the IOModel used for program input, which will typically be either the default IOConsole or IODialog object.
getInputModel() - Method in class acm.program.DialogProgram
Returns the IOModel used for program input.
getInputScript() - Method in class acm.io.IOConsole
Retrieves the input script.
getInsets() - Method in class acm.gui.TableConstraints
Returns the insets field from the constraint.
getInstance() - Static method in class acm.util.RandomGenerator
This method returns a RandomGenerator instance that can be shared among several classes.
getIntOption(String) - Method in class acm.util.OptionTable
Returns the integer value associated with key in the option table, or 0 if no such value exists.
getIntOption(String, int) - Method in class acm.util.OptionTable
Returns the integer value associated with key in the option table or the specified default value if no such binding exists.
getIPadX() - Method in class acm.gui.TableConstraints
Returns the ipadx field from the constraint.
getIPadY() - Method in class acm.gui.TableConstraints
Returns the ipady field from the constraint.
getLabel() - Method in class acm.graphics.GLabel
Returns the string displayed by this object.
getLocalPoint(double, double) - Method in class acm.graphics.GCompound
Converts the specified point on the enclosing canvas to the corresponding point in the space of this compound.
getLocalPoint(GPoint) - Method in class acm.graphics.GCompound
Converts the location of the specified point on the enclosing canvas to the corresponding point in the space of this compound.
getLocation() - Method in class acm.graphics.GRectangle
Returns a new GPoint with the location of the rectangle.
getLocation() - Method in class acm.graphics.GObject
Returns the location of this object as a GPoint.
getLocation() - Method in class acm.graphics.GPoint
Returns a new GPoint whose coordinates are the same as this one.
getMenuBar() - Method in class acm.program.Program
Returns the menu bar associated with this program.
getNativeArcFlag() - Method in class acm.graphics.GCanvas
Returns the current setting of the auto-repaint flag as described in setNativeArcFlag.
getOption(String) - Method in class acm.util.OptionTable
Returns the value associated with key in the option table, or null if no such value exists.
getOption(String, String) - Method in class acm.util.OptionTable
Returns the value associated with key in the option table or the specified default value if no such binding exists.
getOutputModel() - Method in class acm.program.Program
Returns the IOModel used for program output, which will typically be either the default IOConsole or IODialog object.
getOutputModel() - Method in class acm.program.DialogProgram
Returns the IOModel used for program output.
getParent() - Method in class acm.graphics.GObject
Returns the parent of this object, which is the canvas or compound object in which it is enclosed.
getPenImage() - Method in class acm.graphics.GPen
Returns the image used to draw the pen when setPenVisible has been called.
getPlatform() - Static method in class acm.util.Platform
Returns an enumeration constant specifying the type of platform on which this applet is running, which is one of the supported types defined at the beginning of this class.
getProgram() - Method in class acm.program.ProgramMenuBar
Returns the program associated with this menu bar.
getReader() - Method in class acm.io.IOConsole
Returns a BufferedReader object that can be used to read from the console.
getReader() - Method in class acm.program.Program
Returns a BufferedReader whose input comes from the console.
getRowCount() - Method in class acm.gui.TableLayout
Returns the number of rows in the table.
getSize() - Method in class acm.graphics.GRectangle
Returns a new GDimension object with the size of the GRectangle.
getSize() - Method in class acm.graphics.GObject
Returns the size of the bounding box for this object.
getSize() - Method in class acm.graphics.GRect
Returns the size of this object as a GDimension.
getSize() - Method in class acm.graphics.GOval
Returns the size of this object as a GDimension.
getSize() - Method in class acm.graphics.GDimension
Returns a new GDimension object equal to this one.
getSize() - Method in class acm.graphics.GImage
Returns the size of this object as a GDimension.
getSpeed() - Method in class acm.graphics.GPen
Returns the current speed of the pen.
getSpeed() - Method in class acm.graphics.GTurtle
Returns the current speed of the turtle.
getSpeed() - Method in class acm.util.Animator
Returns the speed parameter for the animator.
getStandardFont(Font) - Static method in class acm.util.JTFTools
Returns a font that will approximate the specified font in this environment.
getStartAngle() - Method in class acm.graphics.GArc
Returns the starting angle for this GArc object.
getStartPoint() - Method in class acm.graphics.GArc
Returns the point at which the arc starts.
getStartPoint() - Method in class acm.graphics.GLine
Returns the coordinates of the initial point in the line.
getSweepAngle() - Method in class acm.graphics.GArc
Returns the sweep angle for this GArc object.
getTitle() - Method in class acm.program.Program
Gets the title of this program.
getTurtleSize() - Method in class acm.graphics.GTurtle
Returns the size of the turtle.
getValue() - Method in class acm.gui.DoubleField
Returns the value of this field as a double.
getValue() - Method in class acm.gui.IntField
Returns the value of this field as a int.
getVerticalAlignment() - Method in class acm.gui.TablePanel
Returns the vertical alignment for the table.
getVerticalAlignment() - Method in class acm.gui.TableLayout
Returns the vertical alignment for the table.
getVgap() - Method in class acm.gui.TablePanel
Returns the vertical gap between components.
getVgap() - Method in class acm.gui.TableLayout
Returns the vertical gap between components.
getWeightX() - Method in class acm.gui.TableConstraints
Returns the weightx field from the constraint.
getWeightY() - Method in class acm.gui.TableConstraints
Returns the weighty field from the constraint.
getWidth() - Method in class acm.graphics.GRectangle
Returns the width of this GDimension.
getWidth() - Method in class acm.graphics.GObject
Returns the width of this object, which is defined to be the width of the bounding box.
getWidth() - Method in class acm.graphics.GCanvas
Returns the width of this canvas in pixels.
getWidth() - Method in class acm.graphics.GLabel
Returns the width of this string, as it appears on the display.
getWidth() - Method in class acm.graphics.GRect
Returns the width of this object as a double-precision value, which is defined to be the width of the bounding box.
getWidth() - Method in class acm.graphics.GOval
Returns the width of this object as a double-precision value, which is defined to be the width of the bounding box.
getWidth() - Method in class acm.graphics.GDimension
Returns the width of this GDimension.
getWidth() - Method in class acm.gui.TableConstraints
Returns the width field from the constraint.
getWriter() - Method in class acm.io.IOConsole
Returns a PrintWriter object that can be used to send output to the console.
getWriter() - Method in class acm.program.Program
Returns a PrintWriter whose output is directed to the console.
getX() - Method in class acm.graphics.GRectangle
Returns the x coordinate of this GRectangle.
getX() - Method in class acm.graphics.GObject
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GPoint
Returns the x coordinate of this GPoint.
getY() - Method in class acm.graphics.GRectangle
Returns the y coordinate of this GRectangle.
getY() - Method in class acm.graphics.GObject
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GPoint
Returns the y coordinate of this GPoint.
GFillable - interface acm.graphics.GFillable.
Specifies the characteristics of a graphical object that supports filling.
GImage - class acm.graphics.GImage.
The GImage class is a graphical object whose appearance is defined by an image.
GImage(Image) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the origin that displays the specified image.
GImage(Image, double, double) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the specified coordinates.
GImage(String) - Constructor for class acm.graphics.GImage
Creates a new GImage object by looking for an image with that name.
GImage(String, double, double) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the specified coordinates.
GLabel - class acm.graphics.GLabel.
The GLabel class is a graphical object whose appearance consists of a text string.
GLabel(String) - Constructor for class acm.graphics.GLabel
Creates a new GLabel object initialized to contain the specified string.
GLabel(String, double, double) - Constructor for class acm.graphics.GLabel
Creates a new GLabel object with its baseline origin at the specified position.
GLine - class acm.graphics.GLine.
The GLine class is a graphical object whose appearance consists of a line segment.
GLine(double, double, double, double) - Constructor for class acm.graphics.GLine
Constructs a line segment from its endpoints.
GMath - class acm.graphics.GMath.
This class defines a variety of static mathematical methods that are useful for the acm.graphics package.
GObject - class acm.graphics.GObject.
This class is the common superclass of all graphical objects that can be displayed on a GCanvas.
GOval - class acm.graphics.GOval.
The GOval class is a graphical object whose appearance consists of an oval.
GOval(double, double) - Constructor for class acm.graphics.GOval
Constructs a new oval with the specified width and height, positioned at the origin.
GOval(double, double, double, double) - Constructor for class acm.graphics.GOval
Constructs a new oval with the specified bounds.
GPen - class acm.graphics.GPen.
The GPen class simulates a pen drawing on a canvas.
GPen() - Constructor for class acm.graphics.GPen
Creates a new GPen object with an empty path.
GPen(double, double) - Constructor for class acm.graphics.GPen
Creates a new GPen object with an empty path, initially positioned at the point (x, y).
GPoint - class acm.graphics.GPoint.
This class is a double-precision version of the Point class in java.awt.
GPoint() - Constructor for class acm.graphics.GPoint
Constructs a new GPoint at the origin (0, 0).
GPoint(double, double) - Constructor for class acm.graphics.GPoint
Constructs a new GPoint with the specified coordinates.
GPoint(GPoint) - Constructor for class acm.graphics.GPoint
Constructs a new GPoint from an existing one.
GPoint(Point) - Constructor for class acm.graphics.GPoint
Constructs a new GPoint from an existing AWT Point.
GPolygon - class acm.graphics.GPolygon.
The GPolygon class is a graphical object whose appearance consists of a polygon.
GPolygon() - Constructor for class acm.graphics.GPolygon
Constructs a new empty polygon at the origin.
GPolygon(double, double) - Constructor for class acm.graphics.GPolygon
Constructs a new empty polygon at (x, y).
GPolygon(GPoint[]) - Constructor for class acm.graphics.GPolygon
Constructs a new polygon from the specified array of GPoint objects.
GraphicsProgram - class acm.program.GraphicsProgram.
This class is a standard subclass of Program whose principal window is used for drawing graphics.
GRect - class acm.graphics.GRect.
The GRect class is a graphical object whose appearance consists of a rectangular box.
GRect(double, double) - Constructor for class acm.graphics.GRect
Constructs a new rectangle with the specified width and height, positioned at the origin.
GRect(double, double, double, double) - Constructor for class acm.graphics.GRect
Constructs a new rectangle with the specified bounds.
GRectangle - class acm.graphics.GRectangle.
This class is a double-precision version of the Rectangle class in java.awt.
GRectangle() - Constructor for class acm.graphics.GRectangle
Constructs a new empty GRectangle.
GRectangle(double, double) - Constructor for class acm.graphics.GRectangle
Constructs a GRectangle at the origin with the specified width and height.
GRectangle(double, double, double, double) - Constructor for class acm.graphics.GRectangle
Constructs a new GRectangle with the specified coordinates and size.
GRectangle(GDimension) - Constructor for class acm.graphics.GRectangle
Constructs a new GRectangle at the origin with the specified size.
GRectangle(GPoint) - Constructor for class acm.graphics.GRectangle
Constructs a new empty GRectangle at the specified location.
GRectangle(GPoint, GDimension) - Constructor for class acm.graphics.GRectangle
Constructs a new GRectangle with the specified location and size.
GRectangle(GRectangle) - Constructor for class acm.graphics.GRectangle
Constructs a new GRectangle from an existing one.
GResizable - interface acm.graphics.GResizable.
Specifies the characteristics of a graphical object that supports the setSize and setBounds methods.
GRoundRect - class acm.graphics.GRoundRect.
The GRoundRect class is a graphical object whose appearance consists of a rounded rectangle.
GRoundRect(double, double) - Constructor for class acm.graphics.GRoundRect
Constructs a new rounded rectangle with the specified width and height, positioned at the origin.
GRoundRect(double, double, double, double) - Constructor for class acm.graphics.GRoundRect
Constructs a new rounded rectangle with the specified bounds.
GRoundRect(double, double, double, double, double) - Constructor for class acm.graphics.GRoundRect
Constructs a new rounded rectangle with the specified bounds and a single parameter describing both the describing the curvature at the corners.
GRoundRect(double, double, double, double, double, double) - Constructor for class acm.graphics.GRoundRect
Constructs a new rounded rectangle with the specified bounds and arc parameters describing the curvature at the corners.
grow(double, double) - Method in class acm.graphics.GRectangle
Adjusts the edges of a rectangle by the specified dx and dy offsets along each of its borders.
GScalable - interface acm.graphics.GScalable.
Specifies the characteristics of a graphical object that supports the scale method.
GTurtle - class acm.graphics.GTurtle.
The GTurtle class simulates a turtle moving on a canvas.
GTurtle() - Constructor for class acm.graphics.GTurtle
Creates a new GTurtle object.
GTurtle(double, double) - Constructor for class acm.graphics.GTurtle
Creates a new GPen positioned at the point (x, y).

H

height - Variable in class acm.gui.TableConstraints
Specifies the desired height of this cell.
hidePen() - Method in class acm.graphics.GPen
Makes the pen itself invisible.
hideTurtle() - Method in class acm.graphics.GTurtle
Hides the turtle.
HORIZONTAL - Static variable in class acm.gui.TablePanel
Resize component in horizontal direction only
HORIZONTAL - Static variable in class acm.gui.TableLayout
Resize component in horizontal direction only
HPanel - class acm.gui.HPanel.
This class represents a horizontal TablePanel with a single row.
HPanel() - Constructor for class acm.gui.HPanel
Creates a new HPanel.
HPanel(int, int) - Constructor for class acm.gui.HPanel
Creates a new HPanel with the specified hgap and vgap parameters, which specify the padding between elements.

I

init() - Method in class acm.program.ProgramMenuBar
Initializes the menu bar.
init() - Method in class acm.program.Program
The init method is called at startup time before the run method is called.
init() - Method in class acm.program.GraphicsProgram
The init method is called at startup time before the run method is called.
INITIAL - Static variable in class acm.util.Animator
Constant indicating that the animator has not yet started.
intersection(GRectangle) - Method in class acm.graphics.GRectangle
Returns the largest rectangle that is contained in both r1 and r2.
intersects(GRectangle) - Method in class acm.graphics.GRectangle
Returns true if r1 and r2 have a nonempty intersection.
IntField - class acm.gui.IntField.
 
IntField() - Constructor for class acm.gui.IntField
Creates a new field object for entering a int value.
IntField(int) - Constructor for class acm.gui.IntField
Creates a new field object for entering a int value.
IntField(int, int) - Constructor for class acm.gui.IntField
Creates a new field object for entering a int value, which is constrained to be within the specified range.
IntField(int, int, int) - Constructor for class acm.gui.IntField
Creates a new field object for entering a int value, which is constrained to be within the specified range.
IOConsole - class acm.io.IOConsole.
The IOConsole class makes it easier to interact with the user using text-based input and output in the style of a traditional console.
IOConsole() - Constructor for class acm.io.IOConsole
Creates a new IOConsole object.
IODialog - class acm.io.IODialog.
The IODialog class provides a simple, dialog-based mechanism for interacting with the user.
IODialog() - Constructor for class acm.io.IODialog
Instantiates a new IODialog object that can then be used for dialog-based input and output.
IODialog(Component) - Constructor for class acm.io.IODialog
Instantiates a new IODialog object that can then be used for dialog-based input and output.
IOModel - interface acm.io.IOModel.
The IOModel interface defines the input and output methods supported by both the IOConsole and IODialog classes.
isAnonymous(Thread) - Static method in class acm.util.JTFTools
Returns true if the supplied thread is an anonymous one created automatically by the system.
isCachingEnabled() - Static method in class acm.util.MediaTools
This method returns the status of the flag that determins whether images and audio clips are cached internally by name, as described in setCachingEnabled.
isEmpty() - Method in class acm.graphics.GRectangle
Returns true if the rectangle is empty.
isFilled() - Method in interface acm.graphics.GFillable
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GPolygon
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GRect
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GOval
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GArc
Returns whether this object is filled.
isJMFAvailable() - Static method in class acm.util.Platform
Checks whether the Java Media Framework is available.
isMac() - Static method in class acm.util.Platform
Checks whether the platform is a Macintosh.
isPenDown() - Method in class acm.graphics.GTurtle
Returns whether the pen is down, as described in setPenDown.
isPenVisible() - Method in class acm.graphics.GPen
Returns whether the pen is visible.
isRaised() - Method in class acm.graphics.G3DRect
Tests whether this object appears raised.
isSpecified(String) - Method in class acm.util.OptionTable
Returns true if the key has been specified in the option table.
isSunAudioAvailable() - Static method in class acm.util.Platform
Checks whether the sun.audio package is available.
isSwingAvailable() - Static method in class acm.util.Platform
Checks whether Swing is available.
isTurtleVisible() - Method in class acm.graphics.GTurtle
Returns whether the turtle is visible.
isUnix() - Static method in class acm.util.Platform
Checks whether the platform is Unix.
isVisible() - Method in class acm.graphics.GObject
Checks to see whether this object is visible.
isWindows() - Static method in class acm.util.Platform
Checks whether the platform is a Windows machine.
iterator() - Method in class acm.graphics.GCanvas
Returns an Iterator that cycles through the elements within this container in the default direction, which is from back to front.
iterator() - Method in class acm.graphics.GCompound
Returns an Iterator that cycles through the elements within this container in the default direction, which is from back to front.
iterator() - Method in class acm.program.GraphicsProgram
Returns an Iterator that cycles through the elements within this container in the default direction, which is from back to front.
iterator(int) - Method in class acm.graphics.GCanvas
Returns an 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(int) - Method in class acm.graphics.GCompound
Returns an 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(int) - Method in class acm.program.GraphicsProgram
Returns an 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.

J

JTFTools - class acm.util.JTFTools.
This class provides a small collection of static utility methods that are used elsewhere in the ACM packages.
JTFTools() - Constructor for class acm.util.JTFTools
 

K

keyPressed(KeyEvent) - Method in class acm.program.Program
Called when a key is pressed.
keyReleased(KeyEvent) - Method in class acm.program.Program
Called when a key is released.
keyTyped(KeyEvent) - Method in class acm.program.Program
Called when a key is typed (i.e., pressed and released).

L

LEFT - Static variable in class acm.gui.TablePanel
Align table horizontally at the left of its container
LEFT - Static variable in class acm.gui.TableLayout
Align table horizontally at the left of its container
left(double) - Method in class acm.graphics.GTurtle
Changes the direction of the turtle so that it moves the specified number of degrees to the left.
LINE_TOLERANCE - Static variable in class acm.graphics.GLine
This constant defines how close (measured in pixel units) a point has to be to a line before that point is considered to be "contained" within the line.
loadAudioClip(String) - Static method in class acm.util.MediaTools
Searches the default audio clip search path for an audio clip with the specified name and then loads it to create an AudioClip.
loadImage(Image) - Static method in class acm.util.MediaTools
Makes sure that the image is fully loaded before returning.
loadImage(String) - Static method in class acm.util.MediaTools
Searches the default image search path for an image with the specified name and then loads it to create an Image.

M

MAC - Static variable in class acm.util.Platform
Indicates that the system is some variety of Apple Macintosh.
main(String[]) - Static method in class acm.graphics.GTurtle
Makes it possible for a GTurtle to be run under the control of a GraphicsProgram object.
main(String[]) - Static method in class acm.program.Program
Every application must either contain a "Main-Class" entry in its manifest file or include a main method that looks like this, where 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 (xy).
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 (xy), 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