- G3DRect - Class in acm.graphics
-
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 in acm.graphics
-
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 (x
, y
)
with the specified width and height.
- GCanvas - Class in acm.graphics
-
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 in acm.graphics
-
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 in acm.graphics
-
Defines the functionality of an object that can serve as the parent
of a
GObject
.
- GDimension - Class in acm.graphics
-
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(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.
- GDimension(Dimension) - Constructor for class acm.graphics.GDimension
-
Constructs a new GDimension
object from an AWT Dimension
.
- 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.
- getAssociatedConsole() - Method in class acm.io.IODialog
-
Returns the associated console for the dialog.
- getAutoRepaintFlag() - Method in class acm.graphics.GCanvas
-
- 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.GImage
-
Returns the bounding box of this object.
- getBounds() - Method in class acm.graphics.GLabel
-
Returns a GRectangle
that specifies the bounding box for the string.
- getBounds() - Method in class acm.graphics.GLine
-
Returns the bounding box for this object.
- 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.GOval
-
Returns the bounding box of this object.
- 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.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.GRectangle
-
Returns a new GRectangle
whose bounds are the same as this one.
- getBounds() - Method in class acm.graphics.GTurtle
-
Returns the bounding box for the entire figure traced by the turtle.
- 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.
- 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.
- 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.Program
-
Returns the console associated with this program.
- getConsole() - Method in class acm.program.ProgramMenuBar
-
Returns the console associated with this menu bar.
- 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.TableLayout
-
Returns the default fill parameter for components in the table.
- getDefaultFill() - Method in class acm.gui.TablePanel
-
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
-
- 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 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 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.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(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(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(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(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(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(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.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 class acm.graphics.GCompound
-
Returns the number of graphical objects stored in this container.
- getElementCount() - Method in interface acm.graphics.GContainer
-
Returns the number of graphical objects stored in this GCanvas
.
- 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.
- getErrorColor() - Method in class acm.io.IOConsole
-
Returns the color currently in use for console error messages.
- getErrorStyle() - Method in class acm.io.IOConsole
-
Returns the current style parameters for console error messages.
- 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.GArc
-
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.GOval
-
Returns the color used to display the filled region of this object.
- getFillColor() - Method in class acm.graphics.GPen
-
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.
- getFont() - Method in class acm.graphics.GLabel
-
Returns the font in which the GLabel
is displayed.
- getFontMetrics() - Method in class acm.graphics.GLabel
-
Returns a FontMetrics
object describing the dimensions of this string.
- 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.GCanvas
-
Returns the height of this canvas in pixels.
- getHeight() - Method in class acm.graphics.GDimension
-
Returns the height of this GDimension
.
- 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.GObject
-
Returns the height of this object, 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.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.GRectangle
-
Returns the height of this GDimension
.
- getHeight() - Method in class acm.gui.TableConstraints
-
Returns the height
field from the constraint.
- getHeight() - Method in class acm.program.Program
-
Returns the height of the central region.
- 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.TableLayout
-
Returns the horizontal gap between components.
- getHgap() - Method in class acm.gui.TablePanel
-
Returns the horizontal gap between components.
- getHorizontalAlignment() - Method in class acm.gui.TableLayout
-
Returns the horizontal alignment for the table.
- getHorizontalAlignment() - Method in class acm.gui.TablePanel
-
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
.
- getInputColor() - Method in class acm.io.IOConsole
-
Returns the color currently in use for console input.
- getInputModel() - Method in class acm.program.DialogProgram
-
Returns the IOModel
used for program input.
- 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.
- getInputScript() - Method in class acm.io.IOConsole
-
Retrieves the input script.
- getInputStyle() - Method in class acm.io.IOConsole
-
Returns the current style parameters for console input.
- 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.
- getLayout() - Method in class acm.program.Program
-
Gets the layout manager for the central region of the content pane.
- getLayoutAlignmentX(Container) - Method in class acm.gui.TableLayout
-
Returns the alignment along the x-axis as described in the
LayoutManager2
interface.
- getLayoutAlignmentY(Container) - Method in class acm.gui.TableLayout
-
Returns the alignment along the y-axis as described in the
LayoutManager2
interface.
- 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.
- 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.
- 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.
- getLocation() - Method in class acm.graphics.GRectangle
-
Returns a new GPoint
with the location of the rectangle.
- getMenuBar() - Method in class acm.program.Program
-
Returns the menu bar associated with this program.
- getMinimumSize() - Method in class acm.io.IOConsole
-
Overrides the getMinimumSize
method to ensure that an
IOConsole
is not too large.
- 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.DialogProgram
-
Returns the IOModel
used for program output.
- 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.
- getParameter(String) - Method in class acm.program.Program
-
Returns the parameter associated with name.
- 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.
- getPreferredSize() - Method in class acm.gui.DoubleField
-
Overrides the standard definition to impose a target size.
- getPreferredSize() - Method in class acm.gui.IntField
-
Overrides the standard definition to impose a target size.
- getPreferredSize() - Method in class acm.io.IOConsole
-
Overrides the getPreferredSize
method to ensure that an
IOConsole
is not too large.
- getPreferredSize() - Method in class acm.program.Program
-
Returns the preferred size of the content pane.
- 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.
- getRegionPanel(String) - Method in class acm.program.Program
-
Gets the JPanel
for the specified region.
- getRowCount() - Method in class acm.gui.TableLayout
-
Returns the number of rows in the table.
- 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
.
- getSize() - Method in class acm.graphics.GObject
-
Returns the size of the bounding box for this object.
- getSize() - Method in class acm.graphics.GOval
-
Returns the size of this object as a GDimension
.
- getSize() - Method in class acm.graphics.GRect
-
Returns the size of this object as a GDimension
.
- getSize() - Method in class acm.graphics.GRectangle
-
Returns a new GDimension
object with the size of the GRectangle
.
- 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.TableLayout
-
Returns the vertical alignment for the table.
- getVerticalAlignment() - Method in class acm.gui.TablePanel
-
Returns the vertical alignment for the table.
- getVgap() - Method in class acm.gui.TableLayout
-
Returns the vertical gap between components.
- getVgap() - Method in class acm.gui.TablePanel
-
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.GCanvas
-
Returns the width of this canvas in pixels.
- getWidth() - Method in class acm.graphics.GDimension
-
Returns the width of this GDimension
.
- 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.GObject
-
Returns the width of this object, 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.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.GRectangle
-
Returns the width of this GDimension
.
- getWidth() - Method in class acm.gui.TableConstraints
-
Returns the width
field from the constraint.
- getWidth() - Method in class acm.program.Program
-
Returns the width of the central region.
- 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.GObject
-
Returns the x-coordinate of the object.
- getX() - Method in class acm.graphics.GPoint
-
Returns the x coordinate of this GPoint
.
- getX() - Method in class acm.graphics.GRectangle
-
Returns the x 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
.
- getY() - Method in class acm.graphics.GRectangle
-
Returns the y coordinate of this GRectangle
.
- GFillable - Interface in acm.graphics
-
Specifies the characteristics of a graphical object that supports filling.
- GImage - Class in acm.graphics
-
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(String) - Constructor for class acm.graphics.GImage
-
Creates a new GImage
object by looking for an image with that
name.
- GImage(Image, double, double) - Constructor for class acm.graphics.GImage
-
Creates a new GImage
object at the specified coordinates.
- GImage(String, double, double) - Constructor for class acm.graphics.GImage
-
Creates a new GImage
object at the specified coordinates.
- GLabel - Class in acm.graphics
-
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 in acm.graphics
-
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 in acm.graphics
-
This class defines a variety of static mathematical methods
that are useful for the acm.graphics
package.
- GObject - Class in acm.graphics
-
This class is the common superclass of all graphical objects that can
be displayed on a
GCanvas
.
- GOval - Class in acm.graphics
-
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 in acm.graphics
-
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 in acm.graphics
-
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 in acm.graphics
-
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 in acm.program
-
This class is a standard subclass of
Program
whose principal window is used for drawing graphics.
- GRect - Class in acm.graphics
-
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 in acm.graphics
-
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, double, double) - Constructor for class acm.graphics.GRectangle
-
Constructs a new GRectangle
with the specified coordinates and size.
- GRectangle(double, double) - Constructor for class acm.graphics.GRectangle
-
Constructs a GRectangle
at the origin with the specified width and height.
- GRectangle(GPoint, GDimension) - Constructor for class acm.graphics.GRectangle
-
Constructs a new GRectangle
with the specified location and size.
- GRectangle(GPoint) - Constructor for class acm.graphics.GRectangle
-
Constructs a new empty GRectangle
at the specified location.
- GRectangle(GDimension) - Constructor for class acm.graphics.GRectangle
-
Constructs a new GRectangle
at the origin with the specified size.
- GRectangle(GRectangle) - Constructor for class acm.graphics.GRectangle
-
Constructs a new GRectangle
from an existing one.
- GResizable - Interface in acm.graphics
-
Specifies the characteristics of a graphical object that supports the
setSize
and setBounds
methods.
- GRoundRect - Class in acm.graphics
-
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 in acm.graphics
-
Specifies the characteristics of a graphical object that supports the
scale
method.
- GTurtle - Class in acm.graphics
-
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
).