A B C D E F G I L M O P R S T

A

acm.graphics - package acm.graphics
 
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, Point) - Method in class acm.graphics.GCanvas
Adds the component to this canvas and sets its location to the specified point.
add(GObject) - Method in interface acm.graphics.GContainer
Adds a new graphical object to this container.
add(GObject) - Method in class acm.graphics.GFrame
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.graphics.GCanvas
Adds the graphical object to this canvas without changing its location.
add(GObject, double, double) - Method in interface acm.graphics.GContainer
Adds the graphical object to this container and sets its location to the point (xy).
add(GObject, double, double) - Method in class acm.graphics.GFrame
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 a new graphical object to this GCompound and sets its location to the point (xy).
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, Point) - Method in interface acm.graphics.GContainer
Adds the graphical object to this container and sets its location to the specified point.
add(GObject, Point) - Method in class acm.graphics.GFrame
Adds the graphical object to this canvas and sets its location to the specified point.
add(GObject, Point) - Method in class acm.graphics.GCompound
Adds the graphical object to this and sets its location to the specified point.
add(GObject, Point) - Method in class acm.graphics.GCanvas
Adds the graphical object to this canvas and sets its location to the specified point.
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.
addMouseListener(MouseListener) - Method in class acm.graphics.GObject
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GImage
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GRect
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GRoundRect
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GArc
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GOval
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GCompound
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GPolygon
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.G3DRect
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GLine
Adds a mouse listener to this graphical object.
addMouseListener(MouseListener) - Method in class acm.graphics.GString
Adds a mouse listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GObject
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GImage
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GRect
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GRoundRect
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GArc
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GOval
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GCompound
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GPolygon
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.G3DRect
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GLine
Adds a mouse motion listener to this graphical object.
addMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GString
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.
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.

B

BACK_TO_FRONT - Static variable in class acm.graphics.GFrame
Specifies that iterators should run from back to front
BACK_TO_FRONT - Static variable in class acm.graphics.GCompound
Specifies that iterators should run from back to front
BACK_TO_FRONT - Static variable in class acm.graphics.GCanvas
Specifies that iterators should run from back to front

C

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.GImage
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GRect
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GRoundRect
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.GOval
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 string, which is defined to be inside the bounding rectangle.
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.G3DRect
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GLine
Checks to see whether a point is inside the object.
contains(double, double) - Method in class acm.graphics.GString
Checks to see whether a point is "inside" the string, which is defined to be inside the bounding rectangle.
contains(Point) - Method in class acm.graphics.GObject
Checks to see whether a point is inside the object, where the point is specified as a Point, as defined in java.awt.
createIterator(GContainer, int) - Static method in class acm.graphics.GCompound
Creates a new iterator for a container.
createMenuBar() - Method in class acm.graphics.GFrame
Creates the menu bar used by this GFrame.

D

DEFAULT_ARC - Static variable in class acm.graphics.GRoundRect
The default arc diameter used for the corners of a rounded rectangle.
DEFAULT_FONT - Static variable in class acm.graphics.GString
The default font used to display strings.
drawLine(double, double) - Method in class acm.graphics.GPen
Draws a line segment with displacements dx and dy.
drawPen(Graphics) - Method in class acm.graphics.GPen
This method draws a representation of the pen at the current location.
drawPolarLine(double, double) - Method in class acm.graphics.GPen
Draws a line segment using displacements given in polar coordinates.

E

endFilledRegion() - Method in class acm.graphics.GPen
Ends the definition of a region and fills it with the current color.
eraseAll() - Method in class acm.graphics.GPen
Erases the entire path drawn by the pen and returns it to the origin.

F

FRONT_TO_BACK - Static variable in class acm.graphics.GFrame
Specifies that iterators should run from front to back
FRONT_TO_BACK - Static variable in class acm.graphics.GCompound
Specifies that iterators should run from front to back
FRONT_TO_BACK - Static variable in class acm.graphics.GCanvas
Specifies that iterators should run from front to back

G

G3DRect - class acm.graphics.G3DRect.
The G3DRect class is a graphical object whose appearance consists of a three-dimensional rectangle.
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.
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.GImage
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GRect
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GRoundRect
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GArc
Returns the bounding box of this object.
getBounds() - Method in class acm.graphics.GOval
Returns the bounding box for this object.
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.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.G3DRect
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GLine
Returns the bounding box for this object.
getBounds() - Method in class acm.graphics.GString
Returns a Rectangle that specifies the bounding box for the string.
getBounds() - Method in class acm.graphics.GPen
Returns the bounding box for the entire figure traced by the pen.
getColor() - Method in class acm.graphics.GObject
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GImage
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GRect
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GRoundRect
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GArc
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GOval
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GCompound
Returns the color used to display the object.
getColor() - Method in class acm.graphics.GPolygon
Returns the color used to display this object.
getColor() - Method in class acm.graphics.G3DRect
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GLine
Returns the color used to display this object.
getColor() - Method in class acm.graphics.GString
Returns the color used to display the text of the GString.
getColor() - Method in class acm.graphics.GPen
Returns the color used to display this object.
getDelay() - Method in class acm.graphics.GPen
Returns the current delay set by in milliseconds.
getElement(int) - Method in interface acm.graphics.GContainer
Returns the graphical object at the specified index, numbering from back to front in the stacking order.
getElement(int) - Method in class acm.graphics.GFrame
Returns the graphical object at the specified index, numbering from back to front in the stacking order.
getElement(int) - Method in class acm.graphics.GCompound
Returns the graphical object at the specified index, numbering from back to front in the stacking order.
getElement(int) - Method in class acm.graphics.GCanvas
Returns the graphical object at the specified index, numbering from back to front in the stacking order.
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.GFrame
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.graphics.GCanvas
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(Point) - Method in class acm.graphics.GCanvas
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementCount() - Method in interface acm.graphics.GContainer
Returns the number of graphical objects stored in this GCanvas.
getElementCount() - Method in class acm.graphics.GFrame
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.graphics.GCanvas
Returns the number of graphical objects stored in this GCanvas.
getEndpoint() - Method in class acm.graphics.GLine
Returns the endpoint of the line as a Point object.
getFont() - Method in class acm.graphics.GString
Returns the font in which the GString is displayed.
getGCanvas() - Method in class acm.graphics.GFrame
Returns the GCanvas object used by this frame.
getHeight() - Method in class acm.graphics.GObject
Returns the height of this object.
getHeight() - Method in class acm.graphics.GImage
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GRect
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GRoundRect
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GArc
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GOval
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GCompound
Returns the height of this compound object, which is the vertical extent of its components.
getHeight() - Method in class acm.graphics.GPolygon
Returns the height of this polygon.
getHeight() - Method in class acm.graphics.G3DRect
Returns the height of this object on the screen.
getHeight() - Method in class acm.graphics.GString
Returns the height of this string in pixels, as it appears (or would appear) on the display.
getHeight() - Method in class acm.graphics.GCanvas
Returns the height of this canvas in pixels.
getHeight() - Method in class acm.graphics.GPen
Returns the height of this bounding box covered by the pen trace.
getImage() - Method in class acm.graphics.GImage
Returns the image stored inside this GImage.
getLocation() - Method in class acm.graphics.GObject
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GImage
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GRect
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GRoundRect
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GArc
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GOval
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GCompound
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GPolygon
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.G3DRect
Returns the nearest Point corresponding to the location of this object.
getLocation() - Method in class acm.graphics.GString
Returns the location of the GString as a Point object.
getLocation() - Method in class acm.graphics.GPen
Returns the nearest Point corresponding to the location of this object.
getOrigin() - Method in class acm.graphics.GLine
Returns the coordinates of the initial point in the line.
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.
getPolygon() - Method in class acm.graphics.GPolygon
Returns an AWT Polygon whose point are as close as possible to the ones in this GPolygon.
getSize() - Method in class acm.graphics.GObject
Returns the size of this object as a Dimension.
getSize() - Method in class acm.graphics.GImage
Returns the size of this object.
getSize() - Method in class acm.graphics.GRect
Returns the size of this object.
getSize() - Method in class acm.graphics.GRoundRect
Returns the size of this object.
getSize() - Method in class acm.graphics.GArc
Returns the size of this object.
getSize() - Method in class acm.graphics.GOval
Returns the size of this object.
getSize() - Method in class acm.graphics.GCompound
Returns the size of this compound object, which is defined to be the size of the bounding box containing all of its components.
getSize() - Method in class acm.graphics.GPolygon
Returns the size of this polygon.
getSize() - Method in class acm.graphics.G3DRect
Returns the size of this object.
getSize() - Method in class acm.graphics.GString
Returns the size of this string, which is set by changing the contents and font rather than by calling setSize, which is disabled for this class.
getSize() - Method in class acm.graphics.GPen
Returns the size of this bounding box covered by the pen trace.
getStart() - Method in class acm.graphics.GArc
Returns the starting angle for this GArc object.
getString() - Method in class acm.graphics.GString
Returns the string displayed by this object.
getSweep() - Method in class acm.graphics.GArc
Returns the sweep angle for this GArc object.
getWidth() - Method in class acm.graphics.GObject
Returns the width of this object.
getWidth() - Method in class acm.graphics.GImage
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GRect
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GRoundRect
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GArc
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GOval
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GCompound
Returns the width of this compound object, which is the horizontal extent of its components.
getWidth() - Method in class acm.graphics.GPolygon
Returns the width of this polygon.
getWidth() - Method in class acm.graphics.G3DRect
Returns the width of this object on the screen.
getWidth() - Method in class acm.graphics.GString
Returns the width of this string in pixels, as it appears (or would appear) on the display.
getWidth() - Method in class acm.graphics.GCanvas
Returns the width of this canvas in pixels.
getWidth() - Method in class acm.graphics.GPen
Returns the width of this bounding box covered by the pen trace.
getX() - Method in class acm.graphics.GObject
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GImage
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GRect
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GRoundRect
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GArc
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GOval
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GCompound
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GPolygon
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.G3DRect
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GString
Returns the x-coordinate of the object.
getX() - Method in class acm.graphics.GPen
Returns the x-coordinate of the object.
getY() - Method in class acm.graphics.GObject
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GImage
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GRect
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GRoundRect
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GArc
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GOval
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GCompound
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GPolygon
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.G3DRect
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GString
Returns the y-coordinate of the object.
getY() - Method in class acm.graphics.GPen
Returns the y-coordinate of the object.
GFrame - class acm.graphics.GFrame.
The GFrame class is a top-level Swing window that contains a GCanvas that fills the area of the frame.
GFrame() - Constructor for class acm.graphics.GFrame
Creates a new untitled GFrame containing a single GCanvas.
GFrame(String) - Constructor for class acm.graphics.GFrame
Creates a new GFrame containing a single GCanvas.
GImage - class acm.graphics.GImage.
The GImage class is a graphical object whose appearance is defined by an image.
GImage(double, double, Image) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the specified coordinates.
GImage(double, double, String) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the specified coordinates.
GImage(Image) - Constructor for class acm.graphics.GImage
Creates a new GImage object at the origin that displays the specified image.
GImage(String) - Constructor for class acm.graphics.GImage
Creates a new GImage object by looking for an image with that name.
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.
GObject - class acm.graphics.GObject.
This class is the common superclass of all graphical objects that can be displayed on a GCanvas.
GObject() - Constructor for class acm.graphics.GObject
Constructs a new GObject and initializes its state.
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.
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).
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.
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.
GString - class acm.graphics.GString.
The GString class is a graphical object whose appearance consists of a text string.
GString(String) - Constructor for class acm.graphics.GString
Creates a new GString object initialized to contain the specified string.

I

isAutoRepaintEnabled() - Method in class acm.graphics.GFrame
Returns the current setting of the auto-repaint flag as described in setAutoRepaintEnabled.
isAutoRepaintEnabled() - Method in class acm.graphics.GCanvas
Returns the current setting of the auto-repaint flag as described in setAutoRepaintEnabled.
isFilled() - Method in class acm.graphics.GObject
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GImage
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.GRoundRect
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GArc
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.GPolygon
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.G3DRect
Returns whether this object is filled.
isFilled() - Method in class acm.graphics.GLine
Returns whether this object is filled.
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.
isVisible() - Method in class acm.graphics.GObject
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GImage
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GRect
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GRoundRect
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GArc
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GOval
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GCompound
Checks to see whether the object is visible.
isVisible() - Method in class acm.graphics.GPolygon
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.G3DRect
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GLine
Checks to see whether this object is visible.
isVisible() - Method in class acm.graphics.GString
Checks to see whether the GString is visible.
isVisible() - Method in class acm.graphics.GPen
Checks to see whether the trace of the pen is visible.
iterator() - Method in class acm.graphics.GFrame
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.graphics.GCanvas
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.GFrame
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.
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 FRONT_TO_BACK or 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 FRONT_TO_BACK or BACK_TO_FRONT.

L

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.

M

moveToBack() - Method in class acm.graphics.GObject
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GImage
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GRect
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GRoundRect
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GArc
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GOval
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GCompound
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GPolygon
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.G3DRect
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GLine
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GString
Moves this object to the back of the display in stacking order.
moveToBack() - Method in class acm.graphics.GPen
Moves this object to the back of the display in stacking order.
moveToFront() - Method in class acm.graphics.GObject
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GImage
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GRect
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GRoundRect
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GArc
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GOval
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GCompound
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GPolygon
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.G3DRect
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GLine
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GString
Moves this object to the front of the display in stacking order.
moveToFront() - Method in class acm.graphics.GPen
Moves this object to the front of the display in stacking order.

O

onMouseClicked(double, double) - Method in class acm.graphics.GFrame
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseClicked(double, double) - Method in class acm.graphics.GCanvas
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseDragged(double, double) - Method in class acm.graphics.GFrame
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseDragged(double, double) - Method in class acm.graphics.GCanvas
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseMoved(double, double) - Method in class acm.graphics.GFrame
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseMoved(double, double) - Method in class acm.graphics.GCanvas
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMousePressed(double, double) - Method in class acm.graphics.GFrame
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMousePressed(double, double) - Method in class acm.graphics.GCanvas
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseReleased(double, double) - Method in class acm.graphics.GFrame
This method is invoked automatically whenever a mouse click occurs in the canvas.
onMouseReleased(double, double) - Method in class acm.graphics.GCanvas
This method is invoked automatically whenever a mouse click occurs in the canvas.

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.

R

remove(GObject) - Method in interface acm.graphics.GContainer
Removes a graphical object from this container.
remove(GObject) - Method in class acm.graphics.GFrame
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.graphics.GCanvas
Removes a graphical object from this GCanvas.
removeAll() - Method in interface acm.graphics.GContainer
Removes all graphical objects from this container.
removeAll() - Method in class acm.graphics.GFrame
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.graphics.GCanvas
Removes all graphical objects from this GCanvas.
removeAllComponents() - Method in class acm.graphics.GFrame
Removes all components from this container.
removeMouseListener(MouseListener) - Method in class acm.graphics.GObject
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GImage
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GRect
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GRoundRect
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GArc
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GOval
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GCompound
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GPolygon
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.G3DRect
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GLine
Removes a mouse listener from this graphical object.
removeMouseListener(MouseListener) - Method in class acm.graphics.GString
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.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GImage
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GRect
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GRoundRect
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GArc
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GOval
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GCompound
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GPolygon
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.G3DRect
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GLine
Removes a mouse motion listener from this graphical object.
removeMouseMotionListener(MouseMotionListener) - Method in class acm.graphics.GString
Removes a mouse motion listener from this graphical object.
rotate(double) - Method in class acm.graphics.GPolygon
Rotates the polygon around its origin by the angle theta, measured in degrees.

S

scale(double) - Method in class acm.graphics.GObject
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) - 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.GRoundRect
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.GOval
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 class acm.graphics.G3DRect
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(double) - Method in class acm.graphics.GPen
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(double, double) - Method in class acm.graphics.GObject
Scales the object 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.
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.GRoundRect
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.GOval
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 class acm.graphics.GPolygon
Scales the polygon by the scale factors sx and sy.
scale(double, double) - Method in class acm.graphics.G3DRect
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.GPen
Sets the scale factors sx and sy.
setAutoRepaintEnabled(boolean) - Method in class acm.graphics.GFrame
Changes the setting of the auto-repaint flag.
setAutoRepaintEnabled(boolean) - Method in class acm.graphics.GCanvas
Changes the setting of the auto-repaint flag.
setBounds(double, double, double, double) - Method in class acm.graphics.GImage
Changes the location and size of the image together.
setBounds(double, double, double, double) - Method in class acm.graphics.GRect
Changes the bounds used to define the rectangle.
setBounds(double, double, double, double) - Method in class acm.graphics.GRoundRect
Changes the bounds of this object to the specified parameters.
setBounds(double, double, double, double) - Method in class acm.graphics.GOval
Changes the bounds used to define the oval.
setBounds(double, double, double, double) - Method in class acm.graphics.G3DRect
Changes the bounds of this object to the specified parameters.
setColor(Color) - Method in class acm.graphics.GObject
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GImage
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GRect
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GRoundRect
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GArc
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GOval
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GCompound
Sets the color used to display the object.
setColor(Color) - Method in class acm.graphics.GPolygon
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.G3DRect
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GLine
Sets the color used to display this object.
setColor(Color) - Method in class acm.graphics.GString
Sets the color used to display the text of the GString.
setColor(Color) - Method in class acm.graphics.GPen
Sets the color of the pen.
setDelay(double) - Method in class acm.graphics.GPen
Sets a delay factor for each motion of the pen, specified in milliseconds.
setEndpoint(double, double) - Method in class acm.graphics.GLine
Sets the endpoint of the line to the point (xy).
setFilled(boolean) - Method in class acm.graphics.GObject
Sets whether this object is filled.
setFilled(boolean) - Method in class acm.graphics.GImage
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.GRoundRect
Sets whether this object is filled.
setFilled(boolean) - Method in class acm.graphics.GArc
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.GPolygon
Sets whether this object is filled.
setFilled(boolean) - Method in class acm.graphics.G3DRect
Sets whether this object is filled.
setFilled(boolean) - Method in class acm.graphics.GLine
Sets whether this object is filled.
setFont(Font) - Method in class acm.graphics.GString
Changes the font used to display the GString.
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.
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.GImage
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GRect
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GRoundRect
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GArc
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GOval
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GCompound
Sets the location of the GString to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GPolygon
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.G3DRect
Sets the location of this object to the point (x, y).
setLocation(double, double) - Method in class acm.graphics.GString
Sets the location of the GString 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.
setOrigin(double, double) - Method in class acm.graphics.GLine
Sets the origin of the line to the point (xy), leaving the endpoint unchanged.
setPenImage(Image) - Method in class acm.graphics.GPen
Sets the image of the pen to be the specified image.
setPenVisible(boolean) - Method in class acm.graphics.GPen
Sets whether the pen itself is visible.
setRaised(boolean) - Method in class acm.graphics.G3DRect
Sets whether this object appears raised.
setSize(double, double) - Method in class acm.graphics.GObject
Changes the size of this object to the specified width and height.
setSize(double, double) - Method in class acm.graphics.GImage
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.GRoundRect
Changes the size of this object to the specified width and height.
setSize(double, double) - Method in class acm.graphics.GArc
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.G3DRect
Changes the size of this object to the specified width and height.
setStart(double) - Method in class acm.graphics.GArc
Sets the starting angle for this GArc object.
setStart(double, double) - Method in class acm.graphics.GPolygon
Sets the start location of the polygon relative to its origin.
setString(String) - Method in class acm.graphics.GString
Changes the string stored within the GString object, so that a new text string appears on the display.
setSweep(double) - Method in class acm.graphics.GArc
Sets the sweep angle for this GArc object.
setVisible(boolean) - Method in class acm.graphics.GObject
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GImage
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GRect
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GRoundRect
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GArc
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GOval
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GCompound
Sets the visibility status of the GString.
setVisible(boolean) - Method in class acm.graphics.GPolygon
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.G3DRect
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GLine
Sets whether this object is visible.
setVisible(boolean) - Method in class acm.graphics.GString
Sets the visibility status of the GString.
setVisible(boolean) - Method in class acm.graphics.GPen
Sets whether the trace of the pen is visible.
startFilledRegion() - Method in class acm.graphics.GPen
Starts defining a region that will be filled with the current color.

T

translate(double, double) - Method in class acm.graphics.GObject
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GImage
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GRect
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GRoundRect
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GArc
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GOval
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GCompound
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GPolygon
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.G3DRect
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GString
Moves the object on the screen using the displacements dx and dy.
translate(double, double) - Method in class acm.graphics.GPen
Moves the pen on the screen by the specified displacements without drawing a line.

A B C D E F G I L M O P R S T