Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
Y
A
action()
- Method in class edu.southern.computing.oopj.
GraphicalButton
Called when the button is released.
actionPerformed(ActionEvent)
- Method in class edu.southern.computing.oopj.
ContextMenu
Subclasses ordinarily do
not
override this method.
add(Component)
- Method in class edu.southern.computing.oopj.
Viewport
Adds a graphical component to the viewport.
addNotify()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when a graphical object is added to another graphical component such as a viewport or another graphical object.
addNotify()
- Method in class edu.southern.computing.oopj.
GraphicalText
Called when the graphical text object is added to a viewport.
attachMenu(JPanel)
- Method in class edu.southern.computing.oopj.
ContextMenu
Associates this menu with a viewport or graphical object.
B
BLACK
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color black.
BLUE
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color blue.
C
clear()
- Method in class edu.southern.computing.oopj.
Viewport
Clears the viewport, erasing any existing drawings
ContextMenu
- Class in
edu.southern.computing.oopj
Context-sensitive popup menu that can be added to viewports and graphical objects.
ContextMenu(String...)
- Constructor for class edu.southern.computing.oopj.
ContextMenu
Creates a new context menu.
CROSSHAIR
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
A cursor shaped like crosshairs.
CYAN
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color cyan.
D
DARK_GRAY
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color dark gray.
draw()
- Method in class edu.southern.computing.oopj.
GraphicalButton
Renders the button.
draw()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when this graphical object must be rendered within a viewport.
draw()
- Method in class edu.southern.computing.oopj.
GraphicalText
Renders the graphical text.
draw(Graphics)
- Method in class edu.southern.computing.oopj.
Viewport
Sets the transient graphics context and then calls the no-parameter version of
draw()
.
draw()
- Method in class edu.southern.computing.oopj.
Viewport
Renders the contents of the viewport.
drawLine(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a line with the given color.
drawLine(int, int, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a line with the current drawing color.
drawLine(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a line with the given color.
drawLine(int, int, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a line with the current color.
drawOval(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws an oval with the given color.
drawOval(int, int, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws an oval with the current drawing color.
drawOval(int, int, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Draws an oval with the current drawing color.
drawPoint(int, int, Color)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a point (pixel) with the given color.
drawPoint(int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a point (pixel) with the current color.
drawPoint(double, double)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a point (pixel) with the current color.
drawPolygon(int...)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a polygon with the current color.
drawPolygon(int...)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a polygon with the current color.
drawRectangle(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a rectangle with the given color.
drawRectangle(int, int, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a rectangle with the current drawing color.
drawRectangle(int, int, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a rectangle with the current drawing color.
drawRectangle(double, double, double, double)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a rectangle with double-precision floating point coordinates.
drawString(String, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a string with the current color.
drawString(String, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a string with the current color.
E
edu.southern.computing.oopj
- package edu.southern.computing.oopj
F
fillOval(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Paints a filled oval with the given color.
fillOval(int, int, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Paints a filled oval with the current color.
fillOval(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
Viewport
Paints a filled oval with the given color.
fillOval(int, int, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Paints a filled oval with the current color.
fillPolygon(int...)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Paints a filled polygon with the current color.
fillPolygon(int...)
- Method in class edu.southern.computing.oopj.
Viewport
Paints a filled polygon with the current color.
fillRectangle(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Paints a filled rectangle with the given color.
fillRectangle(int, int, int, int)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Paints a filled rectangle with the current color.
fillRectangle(int, int, int, int, Color)
- Method in class edu.southern.computing.oopj.
Viewport
Paints a filled rectangle with the given color.
fillRectangle(int, int, int, int)
- Method in class edu.southern.computing.oopj.
Viewport
Paints a filled rectangle with the current color.
G
getKeyTyped()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Returns the key typed by the user during the latest keyboard interaction event.
getKeyTyped()
- Method in class edu.southern.computing.oopj.
Viewport
Returns the key typed by the user during the last keyboard interaction event.
getMouseX()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Returns the
x
position of the latest mouse event.
getMouseX()
- Method in class edu.southern.computing.oopj.
Viewport
Returns the
x
position of the latest mouse event.
getMouseY()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Returns the
y
position of the latest mouse event.
getMouseY()
- Method in class edu.southern.computing.oopj.
Viewport
Returns the
y
position of the latest mouse event.
getText()
- Method in class edu.southern.computing.oopj.
GraphicalText
Returns the string that makes up the graphical text.
getViewportPanel()
- Method in class edu.southern.computing.oopj.
Viewport
Returns the underlying content pane of the viewport.
GraphicalButton
- Class in
edu.southern.computing.oopj
GraphicalButton(String)
- Constructor for class edu.southern.computing.oopj.
GraphicalButton
Creates a new graphical button.
GraphicalIO
- Class in
edu.southern.computing.oopj
GraphicalIO()
- Constructor for class edu.southern.computing.oopj.
GraphicalIO
GraphicalObject
- Class in
edu.southern.computing.oopj
GraphicalObject
s are persistent visual images that users can manipulate within a viewport.
GraphicalObject(int, int)
- Constructor for class edu.southern.computing.oopj.
GraphicalObject
Creates a graphical object with a given width and height.
GraphicalText
- Class in
edu.southern.computing.oopj
GraphicalText(String)
- Constructor for class edu.southern.computing.oopj.
GraphicalText
Makes a new graphical text object with a transparent background.
GRAY
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color gray.
GREEN
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color green.
H
HAND
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
A cursor shaped like a hand with a pointing finger.
handler(String)
- Method in class edu.southern.computing.oopj.
ContextMenu
Subclasses using a popup menu should override this method.
I
InteractiveArea
- Interface in
edu.southern.computing.oopj
InteractiveArea
is an interface that defines many constants used by the OOPJ classes.
isEnabled()
- Method in class edu.southern.computing.oopj.
GraphicalButton
Returns the button's enabled state.
isMovable()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Indicates if the user can move the object.
K
keyPressed(KeyEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses down a key when the graphical object has the keyboard focus.
keyPressed(KeyEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the user presses a key when the viewport has keyboard focus.
keyReleased(KeyEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user releases a pressed down a key when the graphical object has the keyboard focus.
keyReleased(KeyEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the user releases a key when the viewport has keyboard focus.
keyTyped(KeyEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses and releases a key when the graphical object has the keyboard focus.
keyTyped()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses and releases a key when the graphical object has the keyboard focus.
keyTyped(KeyEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the user types (presses and releases) a key when the viewport has keyboard focus.
keyTyped()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the user types (presses and releases) a key when the viewport has keyboard focus.
L
LIGHT_GRAY
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color light gray.
M
MAGENTA
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color magenta.
mouseClicked(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses and releases a mouse button when the pointer is over the graphical object.
mouseClicked()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses and releases a mouse button when the pointer is over the graphical object.
mouseClicked(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse is clicked (pressed and released).
mouseClicked()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse button is clicked (pressed and released) while the mouse pointer is within the viewport area.
mouseDragged(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user drags the mouse when the pointer is over the graphical object.
mouseDragged()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user drags the mouse when the pointer is over the graphical object.
mouseDragged(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse is moved when the button is down.
mouseDragged()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse is after its button was depressed over the viewport.
mouseEntered(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the pointer into the graphical object.
mouseEntered()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the pointer into the graphical object.
mouseEntered(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse pointer enters the component.
mouseEntered()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse pointer enters the viewport's area.
mouseExited(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the pointer out of the graphical object.
mouseExited()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the pointer out of the graphical object.
mouseExited(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse pointer exits the component.
mouseExited()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse pointer exits the viewport's area.
mouseMoved(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the mouse when the pointer is over the graphical object.
mouseMoved()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user moves the mouse when the pointer is over the graphical object.
mouseMoved(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse is moved without a button depressed.
mouseMoved()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse is moved over the viewport and no buttons are depressed.
mousePressed()
- Method in class edu.southern.computing.oopj.
GraphicalButton
Called when the user presses the mouse button whie the mouse pointer is over this graphical button.
mousePressed(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses a mouse button when the pointer is over the graphical object.
mousePressed()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user presses a mouse button when the pointer is over the graphical object.
mousePressed(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse button is pressed.
mousePressed()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse button is depressed over the component.
mouseReleased()
- Method in class edu.southern.computing.oopj.
GraphicalButton
Called when the user releases the mouse button whie the mouse pointer is over this graphical button.
mouseReleased(MouseEvent)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user releases a mouse button when the pointer is over the graphical object.
mouseReleased()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when the user releases a mouse button when the pointer is over the graphical object.
mouseReleased(MouseEvent)
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse button is released.
mouseReleased()
- Method in class edu.southern.computing.oopj.
Viewport
Called when the mouse button is released over the viewport.
MOVE
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
A cursor useful to display when moving objects on the screen.
N
nextDouble(String)
- Static method in class edu.southern.computing.oopj.
GraphicalIO
Displays a dialog box and prompts the user with a given string.
nextInt(String)
- Static method in class edu.southern.computing.oopj.
GraphicalIO
Displays a dialog box and prompts the user with a given string.
nextString(String)
- Static method in class edu.southern.computing.oopj.
GraphicalIO
Displays a dialog box and prompts the user with a given string.
O
ORANGE
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color orange.
P
paintComponent(Graphics)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when this graphical object must be rendered within a viewport.
PINK
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color pink.
R
RED
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color red.
removeNotify()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Called when a graphical object is removed from its current containing graphical component.
round(double)
- Static method in class edu.southern.computing.oopj.
GraphicalObject
Rounds the double to the nearest integer.
S
setBackground(Color)
- Method in class edu.southern.computing.oopj.
Viewport
Sets the background color for the display area of the viewport.
setBoxLayout(int)
- Method in class edu.southern.computing.oopj.
Viewport
Sets the layout manager for the drawing area the BoxLayout.
setColor(Color)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Draws a rectangle with the current drawing color.
setColor(Color)
- Method in class edu.southern.computing.oopj.
Viewport
Draws a rectangle with the current drawing color.
setContextMenu(ContextMenu)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Attaches a given context menu to this graphical object/
setContextMenu(ContextMenu)
- Method in interface edu.southern.computing.oopj.
InteractiveArea
Sets the context-sensitive popup menu for this panel.
setContextMenu(ContextMenu)
- Method in class edu.southern.computing.oopj.
Viewport
Sets the context-sensitive popup menu for the viewport.
setEnabled(boolean)
- Method in class edu.southern.computing.oopj.
GraphicalButton
Enables or disables the button.
setMovable(boolean)
- Method in class edu.southern.computing.oopj.
GraphicalObject
Determines if the user can move the object.
setText(String)
- Method in class edu.southern.computing.oopj.
GraphicalText
Sets the text value to the given string.
showMessage(String)
- Static method in class edu.southern.computing.oopj.
GraphicalIO
Displays a dialog box with a given message to the user.
T
TRANSPARENT
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
No color.
U
updateRoot(GraphicalObject)
- Method in class edu.southern.computing.oopj.
GraphicalObject
V
VERSION
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The current version of OOPJ library.
Viewport
- Class in
edu.southern.computing.oopj
A convenience superclass for creating simple graphical applications.
Viewport(String, int, int, int, int)
- Constructor for class edu.southern.computing.oopj.
Viewport
Creates a new application window.
visuallyUpdate()
- Method in class edu.southern.computing.oopj.
GraphicalObject
Forces the redrawing of this graphical object.
W
WHITE
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color white.
Y
YELLOW
- Static variable in interface edu.southern.computing.oopj.
InteractiveArea
The color yellow.
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
Y
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes