- 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
- 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
- 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
- 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