Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
F
G
H
I
L
M
P
R
S
T
U
W
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
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
close()
- Method in class
PictureFrame
A method to close a picture frame
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
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
createCollage()
- Method in class
Picture
Method to create a collage of several pictures
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
createLocationPanel(Font)
- Method in class
PictureExplorer
Create the pixel location panel
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
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
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
F
FileChooser
- Class in
<Unnamed>
A class to make working with a file chooser easier for students.
FileChooser()
- Constructor for class
FileChooser
fillCount()
- Method in class
IntArrayWorker
Method to fill with an increasing count
fillPattern1()
- Method in class
IntArrayWorker
fill the array with a pattern
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.
getCurrentX()
- Method in class
ImageDisplay
Method to get the current x
getCurrentY()
- Method in class
ImageDisplay
Method to get the current y
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
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
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.
H
hide()
- Method in class
PictureFrame
A method to hide the frame
hide()
- Method in class
SimplePicture
Method to hide the picture display
I
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
imageIcon
- Variable in class
PictureFrame
ImageIcon used to display the picture in the label
IntArrayWorker
- Class in
<Unnamed>
IntArrayWorker()
- Constructor for class
IntArrayWorker
IntArrayWorkerTester
- Class in
<Unnamed>
IntArrayWorkerTester()
- Constructor for class
IntArrayWorkerTester
L
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
Method to test getColTotal
main(String[])
- Static method in class
Picture
main(String[])
- Static method in class
PictureExplorer
Test Main.
main(String[])
- Static method in class
PictureTester
Main method for testing.
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
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
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
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
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
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.
S
scale(double, double)
- Method in class
SimplePicture
Method to create a new picture by scaling the current picture by the given x and y factors
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
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
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
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
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
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.
A
C
D
E
F
G
H
I
L
M
P
R
S
T
U
W
Z
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes