A C D E F G H I K L M N P Q R S T U V W _

A

Applet - class NGP.Containers.Applet.
A high-level Container that should be used as the first container instantiated if you want an Applet.
Applet() - Constructor for class NGP.Containers.Applet
Create the Applet
actionPerformed(ActionEvent) - Method in class NGP.DefiniteTimer
Normal users need not deal with this method!
actionPerformed(ActionEvent) - Method in class NGP.KeyInteractor
Normal users need not deal with this method!
actionPerformed(ActionEvent) - Method in class NGP.Timer
Normal users need not deal with this method!
activate() - Method in class NGP.Timer
Called whenever the set time has expired.
actualPaint(Graphics2D) - Method in class NGP.Graphics.Filled3DRectangle
Normal users need not use this!
actualPaint(Graphics2D) - Method in class NGP.Graphics.FilledRectangularShape
 
actualPaint(Graphics2D) - Method in class NGP.Graphics.Framed3DRectangle
Normal users need not use this!
actualPaint(Graphics2D) - Method in class NGP.Graphics.FramedRectangularShape
Normal users need not use this!
actualPaint(Graphics2D) - Method in class NGP.Graphics.Line
Normal users need not use this!
actualPaint(Graphics2D) - Method in class NGP.Graphics.Shape
Subclasses will define how painting actually works, filled or framed
add(Component) - Method in interface NGP.Container
 
add(Component) - Method in class NGP.Containers.Applet
Normal users need not use this.
add(Component) - Method in class NGP.Containers.Column
Normal users need not call this!
add(Component) - Method in class NGP.Containers.Frame
Normal users need not use this!
add(Component) - Method in class NGP.Containers.GridContainer
Normal users need not use this!
add(Component) - Method in class NGP.Containers.RadioColumn
Overriden method to take the ButtonGroup into account.
add(Component) - Method in class NGP.Containers.RadioRow
Overriden method to take the ButtonGroup into account.
add(Component) - Method in class NGP.Containers.Row
Normal users need not use this!
addGraphic(Graphic) - Method in class NGP.Containers.DrawingPanel
Normal users need not use this!
addLabel(int, String) - Method in class NGP.Components.Slider
Create a label for the slider at a given value (goes in the default set).
addLabel(String, int, String) - Method in class NGP.Components.Slider
Create a label for the slider within a specific set at a given value.
addLabelSet(String) - Method in class NGP.Components.Slider
Add another set of labels to the slider.
alignCenter() - Method in class NGP.Components.TextBox
Align the text in the box to the center.
alignCenter() - Method in class NGP.Containers.Column
Align all components added after this is called in the center.
alignCenter() - Method in class NGP.Containers.GridContainer
Align all components added after this is called to the center.
alignCenter() - Method in class NGP.Containers.Row
Align all components added after this is called in the center.
alignCenter() - Method in interface NGP.HAligner
See the specific implementer for details.
alignLeft() - Method in class NGP.Components.TextBox
Align the text in the box to the left.
alignLeft() - Method in class NGP.Containers.Column
Align all components added after this is called to the left.
alignLeft() - Method in class NGP.Containers.GridContainer
Align all components added after this is called to the left.
alignLeft() - Method in class NGP.Containers.Row
Align all components added after this is called to the left.
alignLeft() - Method in interface NGP.HAligner
See the specific implementer for details.
alignRight() - Method in class NGP.Components.TextBox
Align the text in the box to the right.
alignRight() - Method in class NGP.Containers.Column
Align all components added after this is called to the right.
alignRight() - Method in class NGP.Containers.GridContainer
Align all components added after this is called to the right.
alignRight() - Method in class NGP.Containers.Row
Align all components added after this is called to the right.
alignRight() - Method in interface NGP.HAligner
See the specific implementer for details.
appear() - Method in class NGP.Components.FileDialog
Call this method to make the file dialog box appear.
approvePressed(File) - Method in class NGP.Components.FileDialog
Called when the user chooses a file.

C

CheckBox - class NGP.Components.CheckBox.
A simple check box.
CheckBox(Container, String) - Constructor for class NGP.Components.CheckBox
Construct an unselected check box.
CheckBox(Container, String, boolean) - Constructor for class NGP.Components.CheckBox
Construct a check box and leave it selected or unselected according to the boolean.
Colorable - interface NGP.Colorable.
Specifies that all classes implementing it can have their color set and accessed.
Column - class NGP.Containers.Column.
A graphical container that will organize objects in a column.
Column(Container) - Constructor for class NGP.Containers.Column
Construct a column.
Component - interface NGP.Component.
Specifies that all implementing classes can have their locations and dimensions accessed and modified, plus control whether they are enabled or disabled.
Container - interface NGP.Container.
Provides the basic interface for graphical containers.
cancelPressed() - Method in class NGP.Components.FileDialog
Called when the Cancel button is pressed.
contains(Point) - Method in interface NGP.Graphic
Determine whether this Graphic's bounding rectangle contains the passed in Point.
contains(Point) - Method in class NGP.Graphics.Image
See if this Image contains the Point
contains(Point) - Method in class NGP.Graphics.Shape
Determine if a Point is within this shape.
contains(Point) - Method in class NGP.Graphics.Text
Return whether this Text contains the Point passed in
createBounds() - Method in class NGP.Graphics.Text
Create the bounding rectangle for this text object.
createURL(String) - Static method in class NGP.Utilities
Create a URL object from a String.

D

DEFAULT_GRAY - Static variable in interface NGP.Colorable
The default color of Java components.
DefiniteTimer - class NGP.DefiniteTimer.
A subclass of Timer that will only activate a specific number of times.
DefiniteTimer(int, int) - Constructor for class NGP.DefiniteTimer
Creates a DefinteTimer with a delay and a specific number of times to activate.
DrawingPanel - class NGP.Containers.DrawingPanel.
A Panel that allows Graphics to be drawn.
DrawingPanel(Container) - Constructor for class NGP.Containers.DrawingPanel
Create a DrawingPanel with the container as its parent.
deselect() - Method in class NGP.Components.CheckBox
Called when the button is deselected.
deselect() - Method in class NGP.Components.RadioButton
Called when the button is deselected.
deselect() - Method in class NGP.Components.ToggleButton
Called when the button is deselected.
disable() - Method in class NGP.KeyInteractor
Turn the KeyInteractor off so that it will not call keyPressed.
disableSpace() - Method in class NGP.Components.CheckBox
Disable the Spacebar from activating this component.
disableSpace() - Method in class NGP.Components.PushButton
Disable the Spacebar from activating this component.
disableSpace() - Method in class NGP.Components.RadioButton
Disable the Spacebar from activating this component.
disableSpace() - Method in class NGP.Components.ToggleButton
Disable the Spacebar from activating this component.
drag() - Method in class NGP.Components.Slider
Called repeatedly as the user is dragging the slider, must override if you want something to happen.
drag(MouseEvent) - Method in class NGP.Graphics.Image
Override to do something useful.
drag(MouseEvent) - Method in class NGP.Graphics.Shape
Override to do something useful.
drag(MouseEvent) - Method in class NGP.Graphics.Text
Override to do something useful.

E

enable() - Method in class NGP.KeyInteractor
Turn the KeyInteractor on so that it will call keyPressed.

F

FileDialog - class NGP.Components.FileDialog.
A simple file dialog box.
FileDialog(Container, String) - Constructor for class NGP.Components.FileDialog
The constructor where no default directory is specified.
FileDialog(Container, String, String) - Constructor for class NGP.Components.FileDialog
The construcor where the default directory is specified.
Filled3DRectangle - class NGP.Graphics.Filled3DRectangle.
A special subclass of FilledRectangularShape that draws 3D rectangles.
Filled3DRectangle(DrawingPanel) - Constructor for class NGP.Graphics.Filled3DRectangle
Create a Filled3DRectangle with the specified DrawingPanel
FilledEllipse - class NGP.Graphics.FilledEllipse.
A filled elliptical shape (for ovals and circles).
FilledEllipse(DrawingPanel) - Constructor for class NGP.Graphics.FilledEllipse
Create an Ellipse with the specified DrawingPanel
FilledRectangle - class NGP.Graphics.FilledRectangle.
A filled rectangular shape (for rectangles and squares)
FilledRectangle(DrawingPanel) - Constructor for class NGP.Graphics.FilledRectangle
Create a Rectangle with the specified DrawingPanel
FilledRectangularShape - class NGP.Graphics.FilledRectangularShape.
All subclasses will use a filled in drawing method.
FilledRectangularShape(DrawingPanel, Shape) - Constructor for class NGP.Graphics.FilledRectangularShape
 
FilledRoundRectangle - class NGP.Graphics.FilledRoundRectangle.
A filled rounded-edges rectangle.
FilledRoundRectangle(DrawingPanel) - Constructor for class NGP.Graphics.FilledRoundRectangle
Create a RoundRectangle with the specified DrawingPanel and arc width and height of 5.
Frame - class NGP.Containers.Frame.
A high-level Container that should be used as the first container instantiated in an application.
Frame() - Constructor for class NGP.Containers.Frame
Create a Frame with a default title.
Frame(String) - Constructor for class NGP.Containers.Frame
Create a Frame with the title passed in.
Framed3DRectangle - class NGP.Graphics.Framed3DRectangle.
A special subclass of FramedRectangularShape that draws 3D rectangles.
Framed3DRectangle(DrawingPanel) - Constructor for class NGP.Graphics.Framed3DRectangle
Create a Framed3DRectangle with the specified DrawingPanel
FramedEllipse - class NGP.Graphics.FramedEllipse.
A framed elliptical shape (for ovals and circles)
FramedEllipse(DrawingPanel) - Constructor for class NGP.Graphics.FramedEllipse
Create an Ellipse with the specified DrawingPanel
FramedRectangle - class NGP.Graphics.FramedRectangle.
A framed rectangular shape (for rectangles and squares)
FramedRectangle(DrawingPanel) - Constructor for class NGP.Graphics.FramedRectangle
Create a Rectangle with the specified DrawingPanel
FramedRectangularShape - class NGP.Graphics.FramedRectangularShape.
All subclasses use an outlined drawing method.
FramedRectangularShape(DrawingPanel, Shape) - Constructor for class NGP.Graphics.FramedRectangularShape
Create the shape with a default outline thickness of 1
FramedRoundRectangle - class NGP.Graphics.FramedRoundRectangle.
A framed rounded-edge rectangle.
FramedRoundRectangle(DrawingPanel) - Constructor for class NGP.Graphics.FramedRoundRectangle
Create a RoundRectangle with the specified DrawingPanel and an arc height and width of 5.

G

Graphic - interface NGP.Graphic.
Indicates the basic methods that all graphical objects should implement.
GridContainer - class NGP.Containers.GridContainer.
A graphical container that will organize objects in a grid.
GridContainer(Container, int, int) - Constructor for class NGP.Containers.GridContainer
Construct a grid.
getAWTImage() - Method in class NGP.Graphics.Image
Get the AWT Image that we are using, not necessary for most users.
getBounds() - Method in interface NGP.Graphic
Return a copy of this Graphic's bounding rectangle.
getBounds() - Method in class NGP.Graphics.FramedRectangularShape
 
getBounds() - Method in class NGP.Graphics.Image
Get the rectangle that indicates the bounds of this Image
getBounds() - Method in class NGP.Graphics.Line
Return the bounding rectangle.
getBounds() - Method in class NGP.Graphics.Shape
Find the bounding rectangle of this Shape.
getBounds() - Method in class NGP.Graphics.Text
Return the rectangle that represents the bounds of this Text
getCenterLocation() - Method in interface NGP.Graphic
Return a Point that represents the center of the Graphic.
getCenterLocation() - Method in class NGP.Graphics.Image
Return the Point that represents the center of the bounding rectangle of this shape.
getCenterLocation() - Method in class NGP.Graphics.Shape
Return the Point that represents the center of the bounding rectangle of this shape.
getCenterLocation() - Method in class NGP.Graphics.Text
Return the Point that represents the center of the bounding rectangle of this shape.
getColor() - Method in interface NGP.Colorable
Get the color of the implementing object.
getColor() - Method in class NGP.Containers.Applet
Return the color of this Container
getColor() - Method in class NGP.Containers.Frame
Return the color of this Container
getColor() - Method in class NGP.Containers.Panel
Return the color of this Container
getColor() - Method in class NGP.Graphics.Shape
Get the color of the Shape
getColor() - Method in class NGP.Graphics.Text
Get the color of this Text object
getDelay() - Method in class NGP.Timer
Return the number of milliseconds this Timer uses as a delay.
getDimension() - Method in class NGP.Components.CheckBox
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.FileDialog
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.Label
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.Menu
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.MenuBar
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.MenuItem
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.PushButton
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.RadioButton
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.Slider
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.TextArea
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.TextBox
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Components.ToggleButton
Get the preferred dimensions of this Component.
getDimension() - Method in class NGP.Containers.Applet
Return the dimensions of this Container
getDimension() - Method in class NGP.Containers.Frame
Return the dimensions of this Container
getDimension() - Method in class NGP.Containers.Panel
Return the dimensions of this Container
getDimension() - Method in class NGP.Graphics.Image
Get the dimensions of this Image
getDimension() - Method in class NGP.Graphics.RectangularShape
Get the dimensions of this RectangularShape.
getDimension() - Method in interface NGP.Sizeable
Get the dimensions of this Sizeable.
getDrawingPanel() - Method in interface NGP.Graphic
Get the DrawingPanel where this Graphic is being drawn.
getDrawingPanel() - Method in class NGP.Graphics.Image
Get the DrawingPanel for this Image
getDrawingPanel() - Method in class NGP.Graphics.Shape
Return the DrawingPanel for this Shape
getDrawingPanel() - Method in class NGP.Graphics.Text
Return the DrawingPanel for this Shape
getEnabled() - Method in class NGP.KeyInteractor
Is this KeyInteractor enabled or disabled?
getFont() - Method in class NGP.Graphics.Text
Get the font that this Text is using.
getFontSize() - Method in class NGP.Graphics.Text
Return the font size of the Text object.
getLocation() - Method in class NGP.Graphics.Image
Get the location of this Image
getLocation() - Method in class NGP.Graphics.RectangularShape
Get the location of this RectangularShape
getLocation() - Method in class NGP.Graphics.Text
Get the current location of this Text
getLocation() - Method in interface NGP.Locatable
Get the location of this Locatable.
getP1() - Method in class NGP.Graphics.Line
Gets the first endpoint
getP2() - Method in class NGP.Graphics.Line
Gets the second endpoint
getRotation() - Method in class NGP.Graphics.Image
Get the rotation for this Image
getRotation() - Method in class NGP.Graphics.Shape
Get the rotation of the Shape.
getRotation() - Method in class NGP.Graphics.Text
Get the rotation for this Text
getRotation() - Method in interface NGP.Rotatable
Get the degrees of rotation (clockwise) for this Rotatable.
getString() - Method in class NGP.Graphics.Text
Get the String that this Text is using
getThickness() - Method in class NGP.Graphics.FramedRectangularShape
Get the thickness of this shape
getThickness() - Method in class NGP.Graphics.Line
Get the thickness of the Line
getTimesAlreadyExecuted() - Method in class NGP.DefiniteTimer
Return how many times activate has already been called.
getTimesToExecute() - Method in class NGP.DefiniteTimer
Return the number of times this Timer will activate.

H

HAligner - interface NGP.HAligner.
Indicates that a specific Container has methods to control horizontal alignment.
HORIZONTAL - Static variable in class NGP.Components.Slider
Used to create the slider in a horizontal position.
hide() - Method in interface NGP.Graphic
Set the Graphic so it does not paint.
hide() - Method in class NGP.Graphics.Image
Hide the Image so it won't paint
hide() - Method in class NGP.Graphics.Shape
Hide the Shape so it won't be drawn anymore (NGP will lose it's reference to it).
hide() - Method in class NGP.Graphics.Text
Hide the Text so it won't be drawn anymore (NGP will lose it's reference to it).

I

Image - class NGP.Graphics.Image.
An image that knows how to draw itself on the screen.
Image(DrawingPanel, String) - Constructor for class NGP.Graphics.Image
Create an image from a filename.
Image(DrawingPanel, URL) - Constructor for class NGP.Graphics.Image
Create an image from a URL.
intersects(Graphic) - Method in interface NGP.Graphic
Determine whether another Graphic's bounding rectangle intersects with this Graphic's bounding rectangle
intersects(Graphic) - Method in class NGP.Graphics.Image
Determine whether the passed in Graphic intersects with this Image.
intersects(Graphic) - Method in class NGP.Graphics.Shape
Determine if the passed in Graphic intersects with this Shape.
intersects(Graphic) - Method in class NGP.Graphics.Text
Return whether this Text intersects with the passed in Graphic
isFocusTraversable() - Method in class NGP.Containers.Panel
This method allows keyboard focus to be given to the Panel.
itemSelected() - Method in class NGP.Components.MenuItem
Called when this item is selected from its menu.

K

KeyInteractor - class NGP.KeyInteractor.
Provides a way to monitor keystrokes and respond accordingly.
KeyInteractor(Panel, char) - Constructor for class NGP.KeyInteractor
Create a KeyInteractor that will respond whenever the key with the passed in character is pressed.
keyPressed() - Method in class NGP.KeyInteractor
Subclasses should override to do something useful.

L

Label - class NGP.Components.Label.
A simple text label.
Label(Container, String) - Constructor for class NGP.Components.Label
This creates the label.
Label(Container) - Constructor for class NGP.Components.Label
This creates a blank label.
Line - class NGP.Graphics.Line.
A Line is a Shape composed of two endpoints.
Line(DrawingPanel) - Constructor for class NGP.Graphics.Line
Create a line with the given DrawingPanel
Locatable - interface NGP.Locatable.
Indicates that the implementer maintains its location on the screen and provides accessors/mutators.
loop() - Method in class NGP.Sound
Starts playing this sound in a loop
lowerGraphic(Graphic) - Method in class NGP.Containers.DrawingPanel
Lower the graphic to be behind one more grpahic on the screen.

M

Menu - class NGP.Components.Menu.
A menu that holds NGP.Components.MenuItem objects.
Menu(MenuBar, String) - Constructor for class NGP.Components.Menu
Create the menu on a menu bar.
Menu(Menu, String) - Constructor for class NGP.Components.Menu
Create the menu nested within another menu.
MenuBar - class NGP.Components.MenuBar.
A menu bar that appears along the top of an NGP.Containers.Frame or an NGP.Containers.Applet.
MenuBar(Applet) - Constructor for class NGP.Components.MenuBar
Create the menu bar in an applet.
MenuBar(Frame) - Constructor for class NGP.Components.MenuBar
Create the menu bar in a frame.
MenuItem - class NGP.Components.MenuItem.
An item in an NGP.Components.Menu.
MenuItem(Menu, String) - Constructor for class NGP.Components.MenuItem
Create the menu item.
makeDefaultLabels(int) - Method in class NGP.Components.Slider
Create labels to show the values of the slider separted by a given incrememnt.
mouseClicked(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse was clicked.
mouseClicked(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse was clicked.
mouseClicked(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse was clicked.
mouseDragged(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse was dragged.
mouseDragged(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse was dragged.
mouseDragged(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse was dragged.
mouseEntered(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse entered.
mouseEntered(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse entered.
mouseEntered(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse entered.
mouseExited(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse exited.
mouseExited(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse exited.
mouseExited(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse exited.
mouseMoved(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse was moved.
mouseMoved(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse was moved.
mouseMoved(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse was moved.
mousePressed(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse was pressed.
mousePressed(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse was pressed.
mousePressed(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse was pressed.
mouseReleased(MouseEvent) - Method in class NGP.Graphics.Image
Called when the Panel detects that the mouse was released.
mouseReleased(MouseEvent) - Method in class NGP.Graphics.Shape
Called when the Panel detects that the mouse was released.
mouseReleased(MouseEvent) - Method in class NGP.Graphics.Text
Called when the Panel detects that the mouse was released.

N

NGP - package NGP
 
NGP.Components - package NGP.Components
 
NGP.Containers - package NGP.Containers
 
NGP.Graphics - package NGP.Graphics
 

P

Panel - class NGP.Containers.Panel.
The main Container class.
Panel(Container) - Constructor for class NGP.Containers.Panel
Create a panel that will use the specified container as its parent.
PushButton - class NGP.Components.PushButton.
A simple push button.
PushButton(Container, String) - Constructor for class NGP.Components.PushButton
Create the push button.
paint(Graphics2D) - Method in interface NGP.Graphic
Normal users need not call this method!
paint(Graphics2D) - Method in class NGP.Graphics.Image
Normal users need not use this!
paint(Graphics2D) - Method in class NGP.Graphics.Shape
Normal users need not use this!
paint(Graphics2D) - Method in class NGP.Graphics.Text
Normal users need not use this!
paintComponent(Graphics) - Method in class NGP.Containers.DrawingPanel
Normal users need not use this!
paintGraphics(Graphics) - Method in class NGP.Containers.DrawingPanel
Normal users need not use this!
play() - Method in class NGP.Sound
Starts playing this sound
press() - Method in class NGP.Components.Slider
Called when the slider is first pressed, must override if you want something to happen.

Q

QuitButton - class NGP.Components.QuitButton.
A button that, when pushed, causes your program to quit.
QuitButton(Container, String) - Constructor for class NGP.Components.QuitButton
 

R

RadioButton - class NGP.Components.RadioButton.
A simple radio button.
RadioButton(Container, String) - Constructor for class NGP.Components.RadioButton
Construct an unselected radio button.
RadioButton(Container, String, boolean) - Constructor for class NGP.Components.RadioButton
Construct a radio button and leave it selected or unselected according to the boolean.
RadioColumn - class NGP.Containers.RadioColumn.
This is subclass of Column that will group radio buttons together so that only one will be selected at a time.
RadioColumn(Container) - Constructor for class NGP.Containers.RadioColumn
Create the radio column.
RadioRow - class NGP.Containers.RadioRow.
A subclass of Row that will group radio buttons together so that only one will be selected at a time.
RadioRow(Container) - Constructor for class NGP.Containers.RadioRow
Create the radio row.
ReactiveDrawingPanel - class NGP.Containers.ReactiveDrawingPanel.
A Panel that has all of the functionality of an NGP.Containers.DrawingPanel but can react to mouse clicks.
ReactiveDrawingPanel(Container) - Constructor for class NGP.Containers.ReactiveDrawingPanel
Create a ReactiveDrawingPanel with the container as its parent.
Reactor - interface NGP.Reactor.
Indicates that implementing objects will react when clicked on.
RectangularShape - class NGP.Graphics.RectangularShape.
Used for defining the all of the geometric shapes except for a Line.
RectangularShape(DrawingPanel, Shape) - Constructor for class NGP.Graphics.RectangularShape
Create a RectangularShape in the specified DrawingPanel
Rotatable - interface NGP.Rotatable.
Indicates that the implementer can rotate.
Row - class NGP.Containers.Row.
A graphical container that will organize objects in a row.
Row(Container) - Constructor for class NGP.Containers.Row
Construct a row.
raiseGraphic(Graphic) - Method in class NGP.Containers.DrawingPanel
Raise the graphic to be in front of one more graphic on the screen.
randomColor() - Static method in class NGP.Utilities
Generate a random Color
randomNumber(int, int) - Static method in class NGP.Utilities
Generate a random integer between the two parameters (inclusive)
randomPoint() - Method in class NGP.Containers.DrawingPanel
Give a random point in this DrawingPanel.
react(Point) - Method in class NGP.Containers.ReactiveDrawingPanel
This method is called when the Panel detects a mouse click.
react(MouseEvent) - Method in class NGP.Containers.ReactiveDrawingPanel
 
react() - Method in class NGP.Graphics.Image
Override to do something useful.
react() - Method in class NGP.Graphics.Line
Lines cannot react.
react() - Method in class NGP.Graphics.Shape
Override to do something useful.
react() - Method in class NGP.Graphics.Text
Override to do something useful.
react() - Method in interface NGP.Reactor
Called when a Reactor decides that it was clicked on.
release() - Method in class NGP.Components.PushButton
Called when the button is pressed and released (meaning that it is not called if the user clicks but moves off the button before releasing).
release() - Method in class NGP.Components.QuitButton
 
release() - Method in class NGP.Components.Slider
Called when the user releases the slider, must override if you want something to happen.
remove(Component) - Method in interface NGP.Container
 
remove(Component) - Method in class NGP.Containers.Applet
Remove the component from the container so it will no longer be repainted.
remove(Component) - Method in class NGP.Containers.Column
Remove the component from the container and resize the container.
remove(Component) - Method in class NGP.Containers.Frame
Remove the component from the container so it will no longer be repainted.
remove(Component) - Method in class NGP.Containers.GridContainer
Remove the component from the container and resize the container.
remove(Component) - Method in class NGP.Containers.RadioColumn
Remove the component from the container.
remove(Component) - Method in class NGP.Containers.RadioRow
Remove the component from the container.
remove(Component) - Method in class NGP.Containers.Row
Remove the component from the container and resize the container.
removeAllGraphics() - Method in class NGP.Containers.DrawingPanel
Normal users need not use this!
removeGraphic(Graphic) - Method in class NGP.Containers.DrawingPanel
Normal users need not use this!
returnPressed() - Method in class NGP.Components.TextBox
This will be called when Return is pressed with focus in the text box.

S

Shape - class NGP.Graphics.Shape.
A geometric object that knows how to draw itself on the screen.
Shape(DrawingPanel, Shape) - Constructor for class NGP.Graphics.Shape
Create a Shape with the specified DrawingPanel
Sizeable - interface NGP.Sizeable.
Indicates that an implementer can have its dimensions accessed and changed.
Slider - class NGP.Components.Slider.
A slider that is capable of displaying labels if the programmer turns them on.
Slider(Container) - Constructor for class NGP.Components.Slider
Constructs the Slider to appear in the specified container.
Slider(Container, int) - Constructor for class NGP.Components.Slider
Constructs the Slider to appear in the container using a specific orientation.
Slider(Container, int, int) - Constructor for class NGP.Components.Slider
Constructs the Slider to appear in the container with a minimum and maximum value.
Slider(Container, int, int, int) - Constructor for class NGP.Components.Slider
Constructs the Slider to appear in the container with a minimum and maximum value and a current value.
Slider(Container, int, int, int, int) - Constructor for class NGP.Components.Slider
Constructs the Slider to appear in the container oriented in a certain manner with a minimum and maximum value and a current value.
Sound - class NGP.Sound.
Provides a way to play a sound through the computer's default sound hardware.
Sound(String) - Constructor for class NGP.Sound
Create a Sound that will play the given file
Sound(URL) - Constructor for class NGP.Sound
Create a Sound from the given URL
saveAsJPEG(File) - Method in class NGP.Containers.DrawingPanel
Save the DrawingPanel as a JPEG to the file that was passed in.
select() - Method in class NGP.Components.CheckBox
Called when the button is selected.
select() - Method in class NGP.Components.RadioButton
Called when the button is selected.
select() - Method in class NGP.Components.ToggleButton
Called when the button is selected.
setCenterLocation(Point) - Method in class NGP.Graphics.Image
Set the location of the Image so that its center point is at the specified location.
setCenterLocation(Point) - Method in class NGP.Graphics.RectangularShape
Set the location of the RectangularShape so that its center point is at the specified location.
setCenterLocation(Point) - Method in class NGP.Graphics.Text
Set the location of the Text so that its center point is at the specified location.
setColor(Color) - Method in interface NGP.Colorable
Set the color of the implementing object.
setColor(Color) - Method in class NGP.Containers.Applet
Set the color of this Container
setColor(Color) - Method in class NGP.Containers.Column
Set the color of this Container
setColor(Color) - Method in class NGP.Containers.Frame
Set the color of this Container
setColor(Color) - Method in class NGP.Containers.Panel
Set the color of this Container
setColor(Color) - Method in class NGP.Containers.Row
Set the color of this Container
setColor(Color) - Method in class NGP.Graphics.Shape
Set the color of the Shape
setColor(Color) - Method in class NGP.Graphics.Text
Set the color of this Text object.
setDelay(int) - Method in class NGP.Timer
Set the number of milliseconds this Timer uses as a delay.
setDimension(Dimension) - Method in class NGP.Components.CheckBox
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.FileDialog
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.Label
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.Menu
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.MenuBar
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.MenuItem
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.PushButton
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.RadioButton
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.Slider
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.TextArea
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.TextBox
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Components.ToggleButton
Set the preferred dimensions of this Component.
setDimension(Dimension) - Method in class NGP.Containers.Applet
Set the dimensions of this Container
setDimension(Dimension) - Method in class NGP.Containers.Frame
Set the dimensions of this Container
setDimension(Dimension) - Method in class NGP.Containers.Panel
Set the dimensions of this Container
setDimension(Dimension) - Method in class NGP.Graphics.Image
Set the dimensions of this Image
setDimension(Dimension) - Method in class NGP.Graphics.RectangularShape
Set the dimensions of this RectangularShape.
setDimension(Dimension) - Method in interface NGP.Sizeable
Set the dimensions of this Sizeable.
setDrawingPanel(DrawingPanel) - Method in interface NGP.Graphic
Set the DrawingPanel where this Graphic should be drawn.
setDrawingPanel(DrawingPanel) - Method in class NGP.Graphics.Image
Set the DrawingPanel for this Image
setDrawingPanel(DrawingPanel) - Method in class NGP.Graphics.Shape
Set the DrawingPanel of this Shape so that it appears somewhere else.
setDrawingPanel(DrawingPanel) - Method in class NGP.Graphics.Text
Set the DrawingPanel of this Text so that it appears somewhere else.
setEnabled(boolean) - Method in interface NGP.Component
Indicates whether the Component should be enabled or disabled.
setFont(Font) - Method in class NGP.Graphics.Text
Set the font of this Text object.
setFontSize(int) - Method in class NGP.Graphics.Text
Set the font size of the Text object.
setLabelSet(String) - Method in class NGP.Components.Slider
Tell the slider which label set it should be displaying
setLocation(Point) - Method in class NGP.Graphics.Image
Set the location of this Image
setLocation(Point) - Method in class NGP.Graphics.RectangularShape
Set the location of this RectangularShape
setLocation(Point) - Method in class NGP.Graphics.Text
Set the location for this Text object
setLocation(Point) - Method in interface NGP.Locatable
Set the location of this Locatable to the passed in Point.
setPoints(Point, Point) - Method in class NGP.Graphics.Line
Set the endpoints for this Line.
setRotation(int) - Method in class NGP.Graphics.Image
Set the rotation for this Image
setRotation(int) - Method in class NGP.Graphics.Shape
Set the rotation of the Shape.
setRotation(int) - Method in class NGP.Graphics.Text
Set the rotation for this Text
setRotation(int) - Method in interface NGP.Rotatable
Set the degrees of rotation (clockwise) for this Rotatable.
setString(String) - Method in class NGP.Graphics.Text
Set the String that this Text should use
setThickness(float) - Method in class NGP.Graphics.FramedRectangularShape
Set the thickness of this shape
setThickness(float) - Method in class NGP.Graphics.Line
Set the thickness of the Line
setTimesToExecute(int) - Method in class NGP.DefiniteTimer
Set the number of times this Timer should call activate.
setup(DrawingPanel) - Method in class NGP.Graphics.Image
Normal users need not use this!
show() - Method in interface NGP.Graphic
Set the Graphic so it paints.
show() - Method in class NGP.Graphics.Image
Show the Image so it paints
show() - Method in class NGP.Graphics.Shape
Show the shape so it will be drawn (NGP now has a reference to it).
show() - Method in class NGP.Graphics.Text
Show the Text so it will be drawn (NGP now has a reference to it).
start() - Method in class NGP.DefiniteTimer
Reset the number of times executed back to 0 and start the Timer.
start() - Method in class NGP.Timer
Start the timer, a timer is stopped by default.
stop() - Method in class NGP.Sound
Stops playing this sound
stop() - Method in class NGP.Timer
Stop the timer, a timer is stopped by default.

T

Text - class NGP.Graphics.Text.
A graphical text object.
Text(DrawingPanel, String) - Constructor for class NGP.Graphics.Text
Create a Text object with the passed in DrawingPanel and use the passed in String as its text.
TextArea - class NGP.Components.TextArea.
A text area for multiple lines (unlike a TextBox which can only do one line.
TextArea(Container) - Constructor for class NGP.Components.TextArea
Construct a TextArea with all defaults.
TextArea(Container, int, int) - Constructor for class NGP.Components.TextArea
Construct a TextArea of specified number of rows and columns.
TextArea(Container, String, int, int) - Constructor for class NGP.Components.TextArea
Construct a TextArea of specified number of rows and columns and default text.
TextBox - class NGP.Components.TextBox.
A text box for single-line text entry.
TextBox(Container) - Constructor for class NGP.Components.TextBox
Construct a text box in container.
TextBox(Container, String) - Constructor for class NGP.Components.TextBox
Construct the text box in container with default text.
TextBox(Container, int) - Constructor for class NGP.Components.TextBox
Construct the text box in container with specified width.
TextBox(Container, String, int) - Constructor for class NGP.Components.TextBox
Construct the text box in container with default text and specified width.
Timer - class NGP.Timer.
An object that "activates" at a specified interval.
Timer(int) - Constructor for class NGP.Timer
Creates a Timer with a delay between activate calls
ToggleButton - class NGP.Components.ToggleButton.
A simple toggle button.
ToggleButton(Container, String) - Constructor for class NGP.Components.ToggleButton
Construct an unselected toggle button.
ToggleButton(Container, Icon) - Constructor for class NGP.Components.ToggleButton
Construct an unselected toggle button with an icon instead of a string
ToggleButton(Container, String, boolean) - Constructor for class NGP.Components.ToggleButton
Construct a toggle button and leave it selected or unselected according to the boolean.
textToDouble() - Method in class NGP.Components.TextBox
Convert the string value of the text box to a double.
textToInt() - Method in class NGP.Components.TextBox
Convert the string value of the text box to an int.
turnOffLabels() - Method in class NGP.Components.Slider
Do not show the labels.
turnOffTicks() - Method in class NGP.Components.Slider
Do not show the tick marks.
turnOnLabels() - Method in class NGP.Components.Slider
Show the labels (labels are not shown by default).
turnOnTicks() - Method in class NGP.Components.Slider
Turn on the tick marks.

U

Utilities - class NGP.Utilities.
Contains a number of "utility" methods to help in programming.
unwrap() - Method in class NGP.Graphics.Image
Set this image so that it will does not necessarily display in its DrawingPanel
unwrap() - Method in class NGP.Graphics.RectangularShape
Set this shape so that it will does not necessarily display in its DrawingPanel
unwrap() - Method in class NGP.Graphics.Text
Set this Text so that it will does not necessarily display in its DrawingPanel

V

VERTICAL - Static variable in class NGP.Components.Slider
Used to create the slider in a vertical position.
valueToString() - Method in class NGP.Components.Slider
Convert the value of the slider to a string.

W

wrap() - Method in class NGP.Graphics.Image
Set this image so that it will always display in its DrawingPanel
wrap() - Method in class NGP.Graphics.RectangularShape
Set this shape so that it will always display in its DrawingPanel
wrap() - Method in class NGP.Graphics.Text
Set this Text so that it will always display in its DrawingPanel

_

_awtShape - Variable in class NGP.Graphics.Shape
The AWT geometric shape used for drawing
_dpanel - Variable in class NGP.Graphics.Shape
The DrawingPanel that contains this Shape
_layout - Variable in class NGP.Containers.Column
The layout for this container
_layout - Variable in class NGP.Containers.GridContainer
The layout for this container
_layout - Variable in class NGP.Containers.Row
The layout for this container

A C D E F G H I K L M N P Q R S T U V W _