Skip navigation links
-footer
A B C D E F G H I L M N P R S T U W X Y Z 

A

actionPerformed(ActionEvent) - Method in class PictureExplorer
Controls the zoom menu bar
addMessage(String, int, int) - Method in class SimplePicture
Method to draw a message as a string on the buffered image

B

bufferedImage - Variable in class SimplePicture
buffered image to hold pixels for the simple picture
bValue - Variable in class PictureExplorer
blue value label

C

changeToBaseOne() - Method in class PictureExplorer
Changes the number system to start at one
checkScroll() - Method in class PictureExplorer
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible
clearInformation() - Method in class PictureExplorer
Method to clear the labels and current color and reset the current index to -1
close() - Method in class PictureFrame
A method to close a picture frame
colIndex - Variable in class PictureExplorer
column index
colLabel - Variable in class PictureExplorer
column label
colNextButton - Variable in class PictureExplorer
column next button
ColorChooser - Class in <Unnamed>
A class to make working with a color chooser easier for students.
ColorChooser() - Constructor for class ColorChooser
 
colorDistance(Color) - Method in class Pixel
Method to get the distance between this pixel's color and the passed color
colorDistance(Color, Color) - Static method in class Pixel
Method to compute the color distances between two color objects
colorLabel - Variable in class PictureExplorer
color swatch label
colorPanel - Variable in class PictureExplorer
panel to show the color swatch
colPrevButton - Variable in class PictureExplorer
column previous button
colValue - Variable in class PictureExplorer
text field to show column index
copy(Picture, int, int) - Method in class Picture
copy from the passed fromPic to the specified startRow and startCol in the current picture
copyPicture(SimplePicture) - Method in class SimplePicture
Method that will copy all of the passed source picture into the current picture object
correctValue(int) - Static method in class Pixel
Method to correct a color value to be within 0 to 255
createAndInitPictureFrame() - Method in class PictureExplorer
Method to create and initialize the picture frame
createAndInitScrollingImage() - Method in class PictureExplorer
Create and initialize the scrolling image
createCollage() - Method in class Picture
Method to create a collage of several pictures
createColorInfoPanel(Font) - Method in class PictureExplorer
Create the color information panel
createGraphics() - Method in class SimplePicture
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture
createInfoPanel() - Method in class PictureExplorer
Creates the North JPanel with all the pixel location and color information
createLocationPanel(Font) - Method in class PictureExplorer
Create the pixel location panel
createWindow() - Method in class PictureExplorer
Creates the JFrame and sets everything up
currentX - Variable in class ImageDisplay
the current x index
currentY - Variable in class ImageDisplay
the current y index

D

DigitalPicture - Interface in <Unnamed>
Interface to describe a digital picture.
displayImage() - Method in class PictureFrame
A method to make sure the frame is displayed
displayPixelInformation(String, String) - Method in class PictureExplorer
Method to display the pixel information from the passed x and y but also converts x and y from strings
displayPixelInformation(int, int) - Method in class PictureExplorer
Method to display pixel information for the passed x and y
displayPixelInformation(MouseEvent) - Method in class PictureExplorer
Method to display pixel information based on a mouse event
drawString(String, int, int) - Method in class SimplePicture
Method to draw a string at the given location on the picture

E

edgeDetection(int) - Method in class Picture
Method to show large changes in color
enableZoomItems() - Method in class PictureExplorer
Method to enable all menu commands
explore() - Method in interface DigitalPicture
 
explore() - Method in class SimplePicture
Method to open a picture explorer on a copy (in memory) of this simple picture
extension - Variable in class SimplePicture
extension for this file (jpg or bmp)

F

fifty - Variable in class PictureExplorer
50% zoom level
FileChooser - Class in <Unnamed>
A class to make working with a file chooser easier for students.
FileChooser() - Constructor for class FileChooser
 
fileName - Variable in class SimplePicture
the file name associated with the simple picture
fillCount() - Method in class IntArrayWorker
Method to fill with an increasing count
fillPattern1() - Method in class IntArrayWorker
fill the array with a pattern
fiveHundred - Variable in class PictureExplorer
500% zoom level
frame - Variable in class PictureFrame
Main window used as the frame

G

getAlpha() - Method in class Pixel
Method to get the amount of alpha (transparency) at this pixel.
getAverage() - Method in class Pixel
Method to get the average of the colors of this pixel
getBasicPixel(int, int) - Method in interface DigitalPicture
 
getBasicPixel(int, int) - Method in class SimplePicture
Method to return the pixel value as an int for the given x and y location
getBlue() - Method in class Pixel
Method to get the amount of blue at this pixel.
getBlue(int) - Static method in class Pixel
Method to get the blue value from a pixel represented as an int
getBufferedImage() - Method in interface DigitalPicture
 
getBufferedImage() - Method in class SimplePicture
Method to get the buffered image
getCol() - Method in class Pixel
Method to get the column (x value)
getColor() - Method in class Pixel
Method to get a color object that represents the color at this pixel.
getComponentAfter(Container, Component) - Method in class PictureExplorer.PictureExplorerFocusTraversalPolicy
Method to get the next component for focus
getComponentBefore(Container, Component) - Method in class PictureExplorer.PictureExplorerFocusTraversalPolicy
Method to get the previous component for focus
getCurrentX() - Method in class ImageDisplay
Method to get the current x
getCurrentY() - Method in class ImageDisplay
Method to get the current y
getDefaultComponent(Container) - Method in class PictureExplorer.PictureExplorerFocusTraversalPolicy
 
getExtension() - Method in class SimplePicture
Method to get the extension for this picture
getFileName() - Method in interface DigitalPicture
 
getFileName() - Method in class SimplePicture
Method to get the file name associated with the picture
getFirstComponent(Container) - Method in class PictureExplorer.PictureExplorerFocusTraversalPolicy
 
getGraphics() - Method in class SimplePicture
Method to get a graphics object for this picture to use to draw on
getGreen() - Method in class Pixel
Method to get the amount of green at this pixel.
getGreen(int) - Static method in class Pixel
Method to get the green value from a pixel represented as an int
getHeight() - Method in interface DigitalPicture
 
getHeight() - Method in class SimplePicture
Method to get the height of the picture in pixels
getImage() - Method in interface DigitalPicture
 
getImage() - Method in class ImageDisplay
Method to get the image
getImage() - Method in class SimplePicture
Method to get an image from the picture
getLastComponent(Container) - Method in class PictureExplorer.PictureExplorerFocusTraversalPolicy
 
getMediaDirectory() - Static method in class FileChooser
Method to get the directory for the media
getMediaPath(String) - Static method in class FileChooser
Method to get the full path for the passed file name
getMediaPath(String) - Static method in class SimplePicture
Method to get the directory for the media
getPictureFrame() - Method in class SimplePicture
Method to get the picture frame for the picture
getPictureWithHeight(int) - Method in class SimplePicture
Method to create a new picture of the passed height.
getPictureWithWidth(int) - Method in class SimplePicture
Method to create a new picture of the passed width.
getPixel(int, int) - Method in interface DigitalPicture
 
getPixel(int, int) - Method in class SimplePicture
Method to get a pixel object for the given x and y location
getPixels() - Method in interface DigitalPicture
 
getPixels() - Method in class SimplePicture
Method to get a one-dimensional array of Pixels for this simple picture
getPixels2D() - Method in interface DigitalPicture
 
getPixels2D() - Method in class SimplePicture
Method to get a two-dimensional array of Pixels for this simple picture
getPreferredScrollableViewportSize() - Method in class ImageDisplay
Method to return the preferred size
getRed() - Method in class Pixel
Method to get the amount of red at this pixel.
getRed(int) - Static method in class Pixel
Method to get the red value from a pixel represented as an int
getRow() - Method in class Pixel
Method to get the row (y value)
getScrollableBlockIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the block increment for scrolling
getScrollableTracksViewportHeight() - Method in class ImageDisplay
Method to check if the viewport height is the source height
getScrollableTracksViewportWidth() - Method in class ImageDisplay
Method to check if the viewport width is the source width
getScrollableUnitIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the unit increment for scrolling
getTitle() - Method in interface DigitalPicture
 
getTitle() - Method in class SimplePicture
Method to get the title of the picture
getTotal() - Method in class IntArrayWorker
Method to return the total
getTotalNested() - Method in class IntArrayWorker
Method to return the total using a nested for-each loop
getTransformEnclosingRect(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getTranslationEnclosingRect(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getWidth() - Method in interface DigitalPicture
 
getWidth() - Method in class SimplePicture
Method to get the width of the picture in pixels
getX() - Method in class Pixel
Method to get the x location of this pixel.
getY() - Method in class Pixel
Method to get the y location of this pixel.
gValue - Variable in class PictureExplorer
green value label

H

hide() - Method in class PictureFrame
A method to hide the frame
hide() - Method in class SimplePicture
Method to hide the picture display
hundred - Variable in class PictureExplorer
100% zoom level
hundredFifty - Variable in class PictureExplorer
150% zoom level

I

image - Variable in class ImageDisplay
the image to draw
ImageDisplay - Class in <Unnamed>
Class to display an image and the current location with a + sign
ImageDisplay(Image) - Constructor for class ImageDisplay
Constructor that takes the image to display
ImageDisplay(Image, int, int) - Constructor for class ImageDisplay
Constructor that takes the image and current x and y
imageDisplay - Variable in class PictureExplorer
The image display
imageIcon - Variable in class PictureFrame
ImageIcon used to display the picture in the label
initFrame() - Method in class PictureFrame
A method to initialize the picture frame
IntArrayWorker - Class in <Unnamed>
 
IntArrayWorker() - Constructor for class IntArrayWorker
 
IntArrayWorkerTester - Class in <Unnamed>
 
IntArrayWorkerTester() - Constructor for class IntArrayWorkerTester
 
isLocationInPicture(int, int) - Method in class PictureExplorer
Method to check if the given x and y are in the picture

L

label - Variable in class PictureFrame
Label used to display the picture
load(Image) - Method in interface DigitalPicture
 
load(String) - Method in interface DigitalPicture
 
load(Image) - Method in class SimplePicture
Method to load the buffered image with the passed image
load(String) - Method in class SimplePicture
Method to read the contents of the picture from a filename without throwing errors
loadImage(String) - Method in class SimplePicture
Method to load the picture from the passed file name this just calls load(fileName) and is for name compatibility
loadOrFail(String) - Method in class SimplePicture
Method to load the picture from the passed file name
loadPictureAndShowIt(String) - Method in class SimplePicture
Method to load a picture from a file name and show it in a picture frame

M

main(String[]) - Static method in class ColorChooser
Main method for testing the ColorChooser
main(String[]) - Static method in class IntArrayWorkerTester
Main method for testing the IntArrayWorker class
main(String[]) - Static method in class Picture
 
main(String[]) - Static method in class PictureExplorer
Main method for testing the Picture.java class
main(String[]) - Static method in class PictureTester
Main method for testing.
matrix - Variable in class IntArrayWorker
two dimensional matrix
menuBar - Variable in class PictureExplorer
menu bar
mirrorTemple() - Method in class Picture
Mirror just part of a picture of a temple
mirrorVertical() - Method in class Picture
Method that mirrors the picture around a vertical mirror in the center of the picture from left to right
mouseClicked(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is clicked
mouseDragged(MouseEvent) - Method in class PictureExplorer
Called when the mouse is dragged (button held down and moved)
mouseEntered(MouseEvent) - Method in class PictureExplorer
Method called when the component is entered (mouse moves over it)
mouseExited(MouseEvent) - Method in class PictureExplorer
Method called when the mouse moves over the component
mouseMoved(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is moved with no buttons down
mousePressed(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is pushed down
mouseReleased(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is released

N

numberBase - Variable in class PictureExplorer
the number system to use, 0 means starting at 0, 1 means starting at 1

P

paintComponent(Graphics) - Method in class ImageDisplay
Method to handle displaying this object
pickAColor() - Static method in class ColorChooser
Method to let the user pick a color and return the color object.
pickAFile() - Static method in class FileChooser
Method to let the user pick a file and return the full file name as a string.
pickPath(JFileChooser) - Static method in class FileChooser
Method to pick an item using the file chooser
Picture - Class in <Unnamed>
A class that represents a picture.
Picture() - Constructor for class Picture
Constructor that takes no arguments
Picture(String) - Constructor for class Picture
Constructor that takes a file name and creates the picture
Picture(int, int) - Constructor for class Picture
Constructor that takes the width and height
Picture(Picture) - Constructor for class Picture
Constructor that takes a picture and creates a copy of that picture
Picture(BufferedImage) - Constructor for class Picture
Constructor that takes a buffered image
picture - Variable in class PictureExplorer
The picture being explored
picture - Variable in class PictureFrame
Digital Picture to display
picture - Variable in class Pixel
the digital picture this pixel belongs to
PictureExplorer - Class in <Unnamed>
Displays a picture and lets you explore the picture by displaying the row, column, red, green, and blue values of the pixel at the cursor when you click a mouse button or press and hold a mouse button while moving the cursor.
PictureExplorer(DigitalPicture) - Constructor for class PictureExplorer
Public constructor
PictureExplorer.PictureExplorerFocusTraversalPolicy - Class in <Unnamed>
Class for establishing the focus for the textfields
PictureExplorerFocusTraversalPolicy() - Constructor for class PictureExplorer.PictureExplorerFocusTraversalPolicy
 
pictureFrame - Variable in class PictureExplorer
window to hold GUI
PictureFrame - Class in <Unnamed>
Class that holds a digital picture and displays it using a JFrame
PictureFrame() - Constructor for class PictureFrame
A constructor that takes no arguments.
PictureFrame(DigitalPicture) - Constructor for class PictureFrame
A constructor that takes a picture to display
pictureFrame - Variable in class SimplePicture
frame used to display the simple picture
PictureTester - Class in <Unnamed>
This class contains class (static) methods that will help you test the Picture class methods.
PictureTester() - Constructor for class PictureTester
 
Pixel - Class in <Unnamed>
Class that references a pixel in a picture.
Pixel(DigitalPicture, int, int) - Constructor for class Pixel
A constructor that takes the x and y location for the pixel and the picture the pixel is coming from
prefSize - Variable in class ImageDisplay
the preferred size of the display
print() - Method in class IntArrayWorker
print the values in the array in rows and columns

R

repaint() - Method in class PictureExplorer
Repaints the image on the scrollpane.
repaint() - Method in class PictureFrame
Method to force the picture frame to repaint (redraw)
repaint() - Method in class SimplePicture
Method to force the picture to repaint itself.
rowIndex - Variable in class PictureExplorer
row index
rowLabel - Variable in class PictureExplorer
row label
rowNextButton - Variable in class PictureExplorer
row next button
rowPrevButton - Variable in class PictureExplorer
row previous button
rowValue - Variable in class PictureExplorer
text field to show row index
rValue - Variable in class PictureExplorer
red value label

S

scale(double, double) - Method in class SimplePicture
Method to create a new picture by scaling the current picture by the given
scrollImageIcon - Variable in class PictureExplorer
The image icon used to display the picture
scrollPane - Variable in class PictureExplorer
window that allows the user to scroll to see a large picture
setAllPixelsToAColor(Color) - Method in class SimplePicture
Method to set the color in the picture to the passed color
setAlpha(int) - Method in class Pixel
Method to set the alpha (transparency) to a new alpha value
setBasicPixel(int, int, int) - Method in interface DigitalPicture
 
setBasicPixel(int, int, int) - Method in class SimplePicture
Method to set the value of a pixel in the picture from an int
setBlue(int) - Method in class Pixel
Method to set the blue to a new blue value
setColor(Color) - Method in class Pixel
Method to set the pixel color to the passed in color object.
setCurrentX(int) - Method in class ImageDisplay
Method to set the current x
setCurrentY(int) - Method in class ImageDisplay
Method to set the current y
setFileName(String) - Method in class SimplePicture
Method to set the file name
setGreen(int) - Method in class Pixel
Method to set the green to a new green value
setImage(Image) - Method in class ImageDisplay
Method to set the image
setMatrix(int[][]) - Method in class IntArrayWorker
set the matrix to the passed one
setPicture(Picture) - Method in class PictureFrame
Method to set the picture to show in this picture frame
setPictureFrame(PictureFrame) - Method in class SimplePicture
Method to set the picture frame for this picture
setRed(int) - Method in class Pixel
Method to set the red to a new red value
setTitle(String) - Method in interface DigitalPicture
 
setTitle(String) - Method in class PictureExplorer
Set the title of the frame
setTitle(String) - Method in class PictureFrame
Method to set the title for the picture frame
setTitle(String) - Method in class SimplePicture
Method to set the title for the picture
setUpMenuBar() - Method in class PictureExplorer
Method to create the menu bar, menus, and menu items
setUpNextAndPreviousButtons() - Method in class PictureExplorer
Method to set up the next and previous buttons for the pixel location information
setVisible(boolean) - Method in class PictureFrame
A method to set the visible flag on the frame
setVisible(boolean) - Method in class SimplePicture
Method to make this picture visible or not
seventyFive - Variable in class PictureExplorer
75% zoom level
show() - Method in interface DigitalPicture
 
show() - Method in class SimplePicture
Method to show the picture in a picture frame
SimplePicture - Class in <Unnamed>
A class that represents a simple picture.
SimplePicture() - Constructor for class SimplePicture
A Constructor that takes no arguments.
SimplePicture(String) - Constructor for class SimplePicture
A Constructor that takes a file name and uses the file to create a picture
SimplePicture(int, int) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(int, int, Color) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(SimplePicture) - Constructor for class SimplePicture
A Constructor that takes a picture to copy information from
SimplePicture(BufferedImage) - Constructor for class SimplePicture
A constructor that takes a buffered image

T

testCollage() - Static method in class PictureTester
Method to test the collage method
testEdgeDetection() - Static method in class PictureTester
Method to test edgeDetection
testFillPattern1() - Static method in class IntArrayWorkerTester
Method to test fillPattern1
testGetTotal() - Static method in class IntArrayWorkerTester
Method to test getTotal
testGetTotalNested() - Static method in class IntArrayWorkerTester
Method to test getTotalNested
testMirrorTemple() - Static method in class PictureTester
Method to test mirrorTemple
testMirrorVertical() - Static method in class PictureTester
Method to test mirrorVertical
testSetMatrix() - Static method in class IntArrayWorkerTester
method to test setMatrix
testZeroBlue() - Static method in class PictureTester
Method to test zeroBlue
title - Variable in class SimplePicture
the title of the simple picture
toString() - Method in class Picture
Method to return a string with information about this picture.
toString() - Method in class Pixel
Method to return a string with information about this pixel
toString() - Method in class SimplePicture
Method to return a string with information about this picture
twentyFive - Variable in class PictureExplorer
25% zoom level
twoHundred - Variable in class PictureExplorer
200% zoom level

U

updateImage() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture
updateImageAndShowIt() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture and show it
updatePicture(int, int, int, int) - Method in class Pixel
Method to update the picture based on the passed color values for this pixel

W

write(String) - Method in interface DigitalPicture
 
write(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name without throwing errors
writeOrFail(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name

X

x - Variable in class Pixel
the x (column) location of this pixel in the picture; (0,0) is top left

Y

y - Variable in class Pixel
the y (row) location of this pixel in the picture; (0,0) is top left

Z

zeroBlue() - Method in class Picture
Method to set the blue to 0
zoom(double) - Method in class PictureExplorer
Zooms in the on picture by scaling the image.
zoomFactor - Variable in class PictureExplorer
the zoom factor (amount to zoom)
zoomMenu - Variable in class PictureExplorer
zoom menu
A B C D E F G H I L M N P R S T U W X Y Z 
Skip navigation links
-footer