A B C D E F G H I J K L M N O P R S T V W X Y

A

above(WorldImage...) - Method in class javalib.worldimages.AImage
 
above(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Concatenate two or more images vertically.
aboveCentered(WorldImage...) - Method in class javalib.worldimages.AImage
 
aboveCentered(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Concatenate two or more images vertically.
adjustMousePosn(Posn) - Method in class javalib.funworld.MyMouseAdapter
Adjust the reported mouse position to account for the top bar
AImage - Class in javalib.worldimages
The most important class in the worldimages package.
AImage() - Constructor for class javalib.worldimages.AImage
 
Animation<Model> - Class in javalib.funworld
An easy-to-use class for model/view GUI programs.
Animation(Model) - Constructor for class javalib.funworld.Animation
Constructor for Animation.
AppletCanvas - Class in javalib.worldcanvas
A class to represent a canvas for the applet to draw on
AppletCanvas(int, int) - Constructor for class javalib.worldcanvas.AppletCanvas
Create an instance of a CanvasPanel of the given dimensions.
AppletCanvas.Painter - Class in javalib.worldcanvas
Panel that paints the internal buffered image that maintains the persistent graphics state of the buffered panel.
AppletCanvas.Painter(AppletCanvas) - Constructor for class javalib.worldcanvas.AppletCanvas.Painter
Constructor that should only be called by a BufferedPanel.
AppletCanvas.Refresh - Class in javalib.worldcanvas
Class Refresh encapsulates methods for graphics refresh.

B

beside(WorldImage...) - Method in class javalib.worldimages.AImage
 
beside(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Concatenate two or more images horizontally.
besideCentered(WorldImage...) - Method in class javalib.worldimages.AImage
 
besideCentered(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Concatenate two or more images horizontally.
bigBang() - Method in class javalib.funworld.Animation
Start an animation, with default size and no timer.
bigBang(double) - Method in class javalib.funworld.Animation
Start an animation, with default size and a specified timer interval.
bigBang(int, int) - Method in class javalib.funworld.Animation
Start an animation, with specified size and no timer.
bigBang(int, int, double) - Method in class javalib.funworld.Animation
Start an animation, with specified size and timer interval.
bigBang(int, int, double) - Method in class javalib.funworld.World
Start the world by creating a canvas of the given size, creating and adding the key and mouse adapters, and starting the timer at the given speed.
bigBang(int, int) - Method in class javalib.funworld.World
Start the world by creating a canvas of the given size, creating and adding the key and mouse adapters, without running the the timer.
bigBang(double) - Method in class javalib.funworld.World
Start the world by creating a canvas whose size is that of the initial image, and starting the timer at a given speed.
bigBang() - Method in class javalib.funworld.World
Start the world by creating a canvas whose size is that of the initial image, with no timer.
Black - Class in javalib.colors
To represent the black color -- in the style of ProfessorJ draw package.
Black() - Constructor for class javalib.colors.Black
 
bloch - Static variable in class javalib.worldimages.SampleImages
 
Blue - Class in javalib.colors
To represent the blue color -- in the style of ProfessorJ draw package.
Blue() - Constructor for class javalib.colors.Blue
 
book - Static variable in class javalib.worldimages.SampleImages
 
buffer - Variable in class javalib.worldcanvas.AppletCanvas
The buffered image that maintains the persistent graphics state.
buffer - Variable in class javalib.worldcanvas.CanvasPanel
The buffered image that maintains the persistent graphics state.
build(int, int, ImageBuilder, Object) - Static method in class javalib.worldimages.AImage
Build a rectangular image pixel by pixel.
build(int, int, ImageBuilder) - Static method in class javalib.worldimages.AImage
Build a rectangular image pixel by pixel, with no "extra" information.
build(int, int, ImageBuilder, Object) - Static method in class javalib.worldimages.RasterImage
 

C

calendar - Static variable in class javalib.worldimages.SampleImages
 
canvasColorModel - Static variable in class javalib.worldimages.ImageMaker
 
CanvasPanel - Class in javalib.worldcanvas
A buffered panel to hold the drawings.
CanvasPanel(int, int) - Constructor for class javalib.worldcanvas.CanvasPanel
Constructs a BufferedPanel containing a buffered image with the given width and height, and the given background color or Paint for the image.
CanvasPanel.Painter - Class in javalib.worldcanvas
Panel that paints the internal buffered image that maintains the persistent graphics state of the buffered panel.
CanvasPanel.Painter(CanvasPanel) - Constructor for class javalib.worldcanvas.CanvasPanel.Painter
Contructor that should only be called by a CanvasPanel.
CanvasPanel.Refresh - Class in javalib.worldcanvas
Class Refresh encapsulates methods for graphics refresh.
centerMoved(int, int) - Method in class javalib.worldimages.AImage
Produce a copy of this image, with its center moved to the specified coordinates.
centerMoved(Posn) - Method in class javalib.worldimages.AImage
Produce a copy of this image, with its center moved to the specified coordinates.
centerMoved(int, int) - Method in interface javalib.worldimages.WorldImage
Produce the image with its center translated to the specified (x,y)
centerMoved(Posn) - Method in interface javalib.worldimages.WorldImage
Produce the image with its center translated to the specified (x,y)
checkConstructorException(Exception, String, Object...) - Method in class tester.Tester
Test that verifies that when the constructor for the given class is invoked with the given arguments, it throws the expected exception with the expected message.
checkConstructorException(String, Exception, String, Object...) - Method in class tester.Tester
Test that verifies that when the constructor for the given class is invoked with the given arguments, it throws the expected exception with the expected message.
checkEquivalent(T, T, Equivalence<T>) - Method in class tester.Tester
Use the given Equivalence function object to determine the equivalence of the two given objects.
checkEquivalent(T, T, Equivalence<T>, String) - Method in class tester.Tester
Use the given Equivalence function object to determine the equivalence of the two given objects.
checkException(Exception, T, String, Object...) - Method in class tester.Tester
Test that verifies that when the given object invokes the given method with the given arguments, it throws the expected exception with the expected message.
checkException(String, Exception, T, String, Object...) - Method in class tester.Tester
Test that verifies that when the given object invokes the given method with the given arguments, it throws the expected exception with the expected message.
checkExpect(boolean) - Method in class tester.Tester
Test that only reports success or failure
checkExpect(boolean, String) - Method in class tester.Tester
Test that only reports success or failure
checkExpect(T, T) - Method in class tester.Tester
Test that compares two objects of any kind -- exact values only
checkExpect(T, T, String) - Method in class tester.Tester
Test that compares two objects of any kind -- exact values only
checkFail(boolean) - Method in class tester.Tester
Test that only reports success or failure
checkFail(boolean, String) - Method in class tester.Tester
Test that only reports success or failure
checkFail(T, T) - Method in class tester.Tester
Test that compares two objects of any kind and is expected to fail: comparison failure constitutes a successful test.
checkFail(T, T, String) - Method in class tester.Tester
Test that compares two objects of any kind and is expected to fail: comparison failure constitutes a successful test.
checkInequivalent(T, T, Equivalence<T>) - Method in class tester.Tester
Use the given Equivalence function object to determine the NON-equivalence of the two given objects.
checkInequivalent(T, T, Equivalence<T>, String) - Method in class tester.Tester
Use the given Equivalence function object to determine the equivalence of the two given objects.
checkInexact(T, T, double) - Method in class tester.Tester
Test that compares two objects of any kind.
checkInexact(T, T, double, String) - Method in class tester.Tester
Test that compares two objects of any kind.
checkInexactFail(T, T, double) - Method in class tester.Tester
Test that compares two objects of any kind and is expected to fail: comparison failure constitutes a successful test.
checkInexactFail(T, T, double, String) - Method in class tester.Tester
Test that compares two objects of any kind and is expected to fail: comparison failure constitutes a successful test.
checkInexactIterable(Iterable<T>, Iterable<T>, double) - Method in class tester.Tester
Test that compares two objects that implement Iterable interface by traversing over the data.
checkInexactIterable(Iterable<T>, Iterable<T>, double, String) - Method in class tester.Tester
Test that compares two objects that implement Iterable interface by traversing over the data.
checkInexactMethod(Object, double, T, String, Object...) - Method in class tester.Tester
Invoke the method with the given name on a given object with the given arguments - check if it produces the expected value
checkInexactMethod(String, Object, double, T, String, Object...) - Method in class tester.Tester
Invoke the method with the given name on a given object with the given arguments - check if it produces the expected value
checkInexactNoneOf(double, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is not equal to any of the expected results
checkInexactNoneOf(String, double, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is not equal to any of the expected results
checkInexactOneOf(double, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the same as one of the expected results
checkInexactOneOf(String, double, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the same as one of the expected results
checkInexactTraversal(Traversal<T>, Traversal<T>, double) - Method in class tester.Tester
Test that compares two objects that implement Traversal interface by traversing over the data.
checkInexactTraversal(Traversal<T>, Traversal<T>, double, String) - Method in class tester.Tester
Test that compares two objects that implement Traversal interface by traversing over the data.
checkIterable(Iterable<T>, Iterable<T>) - Method in class tester.Tester
Test that compares two objects that implement Iterable interface by traversing over the data -- objects must be composed of exact values only
checkIterable(Iterable<T>, Iterable<T>, String) - Method in class tester.Tester
Test that compares two objects that implement Iterable interface by traversing over the data -- objects must be composed of exact values only
checkMethod(Object, T, String, Object...) - Method in class tester.Tester
Invoke the method with the given name on a given object with the given arguments - check if it produces the expected result
checkMethod(String, Object, T, String, Object...) - Method in class tester.Tester
Invoke the method with the given name on a given object with the given arguments - check if it produces the expected result
checkNoneOf(T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is not equal to any of the expected results
checkNoneOf(String, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is not equal to any of the expected results
checkNumRange(Number, Number, Number) - Method in class tester.Tester
Test that determines whether the value of the given numerical object (of any kind) is the range between low (inclusive) and high (exclusive) values.
checkNumRange(Number, Number, Number, String) - Method in class tester.Tester
Test that determines whether the value of the given numerical object (of any kind) is the range between low (inclusive) and high (exclusive) values.
checkNumRange(Number, Number, Number, boolean, boolean) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low and high values.
checkNumRange(Number, Number, Number, boolean, boolean, String) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low and high values.
checkOneOf(T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the same as one of the expected results
checkOneOf(String, T, T...) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the same as one of the expected results
checkRange(Comparable<T>, T, T) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkRange(Comparable<T>, T, T, String) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkRange(Comparable<T>, T, T, boolean, boolean) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low and high values.
checkRange(Comparable<T>, T, T, boolean, boolean, String) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low and high values.
checkRange(T, T, T, Comparator<T>, String) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkRange(T, T, T, Comparator<T>) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkRange(T, T, T, boolean, boolean, Comparator<T>) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkRange(T, T, T, boolean, boolean, Comparator<T>, String) - Method in class tester.Tester
Test that determines whether the value of the given object (of any kind) is the range between low (inclusive) and high (exclusive) values
checkSet(Set<T>, Set<T>) - Method in class tester.Tester
Test that compares two objects that implement Set interface by comparing data using the equals method for comparing the elements of the two sets.
checkSet(Set<T>, Set<T>, String) - Method in class tester.Tester
Test that compares two objects that implement Set interface by comparing data using the equals method for comparing the elements of the two sets.
checkTraversal(Traversal<T>, Traversal<T>) - Method in class tester.Tester
Test that compares two objects that implement Traversal interface by traversing over the data -- objects must be composed of exact values only
checkTraversal(Traversal<T>, Traversal<T>, String) - Method in class tester.Tester
Test that compares two objects that implement Traversal interface by traversing over the data -- objects must be composed of exact values only
CircleImage - Class in javalib.worldimages
An outlined circle
clear() - Method in class javalib.worldcanvas.AppletCanvas
Fills this buffered panel with its background color or Paint.
clear() - Method in class javalib.worldcanvas.MyCanvas
Clear the canvas before painting the next scene
clear() - Method in class javalib.worldcanvas.WorldCanvas
Clear the canvas before painting the next scene
clearPanel() - Method in class javalib.worldcanvas.AppletCanvas
Fills this buffered panel with its background color or Paint.
clearPanel() - Method in class javalib.worldcanvas.CanvasPanel
Fills this buffered panel with its background color or Paint.
close() - Method in class javalib.worldcanvas.WorldCanvas
Close the window - if it is currently open, do nothing otherwise
cmodel - Variable in class javalib.worldimages.ImageMaker
 
ColoredImage - Class in javalib.worldimages
Any image that explicitly stores a color and a mode.
ColoredImage(Color, Mode) - Constructor for class javalib.worldimages.ColoredImage
The full constructor
ColoredImage(IColor, Mode) - Constructor for class javalib.worldimages.ColoredImage
Another constructor that takes in an IColorIColor.
ColoredImage(Mode) - Constructor for class javalib.worldimages.ColoredImage
Another constructor that takes no color.
colorOp - Variable in class javalib.worldimages.ImageMaker
 
cornerString() - Method in class javalib.worldimages.AImage
For debugging purposes; shows the coordinates of the bounding box of the image.
Crop - Class in javalib.worldimages
A rectangular window on an existing image.
Crop(WorldImage, int, int, int, int) - Constructor for class javalib.worldimages.Crop
Constructor for objects of class Crop
cropped(int, int, int, int) - Method in class javalib.worldimages.AImage
 
cropped(int, int, int, int) - Method in interface javalib.worldimages.WorldImage
Get a new WorldImage by cropping this one to a rectangular window.
CURRENT_VERSION - Static variable in interface javalib.funworld.Versions
 
currentWorld - Variable in class javalib.funworld.MyKeyAdapter
the current World that handles the key events
currentWorld - Variable in class javalib.funworld.MyMouseAdapter
the current World that handles the mouse events
currentWorld - Variable in class javalib.funworld.MyTimer
the current World that handles the timer events

D

defaultColor - Static variable in class javalib.worldimages.ColoredImage
 
defaultSize - Static variable in class javalib.worldimages.TextImage
 
displayInfo(KeyEvent, String) - Method in class javalib.funworld.MyKeyAdapter
The key event major processor.
done(boolean) - Method in class tester.Tester
If the test evaluation terminated due to an exception, report the test that threw the exception..
draw(Graphics2D) - Method in class javalib.worldimages.Crop
 
draw(Graphics2D) - Method in class javalib.worldimages.EllipseImage
Draw this image in the provided Graphics2D context.
draw(Graphics2D) - Method in class javalib.worldimages.FreezeImage
 
draw(Graphics2D) - Method in class javalib.worldimages.LinearImage
 
draw(Graphics2D) - Method in class javalib.worldimages.OverlayImage
 
draw(Graphics2D) - Method in class javalib.worldimages.PolygonImage
 
draw(Graphics2D) - Method in class javalib.worldimages.RasterImage
 
draw(Graphics2D) - Method in class javalib.worldimages.RectangleImage
Draw this image in the provided Graphics2D context.
draw(Graphics2D) - Method in class javalib.worldimages.TextImage
Draw this image in the provided Graphics2D context.
draw(Graphics2D) - Method in interface javalib.worldimages.WorldImage
Draw this image in the provided Graphics2D context.
Drawable - Interface in javalib.worldimages
Drawable: any class that has a makeImage() method.
drawImage(String, Posn) - Method in class javalib.worldcanvas.AppletCanvas
Draw the image in the specified file at the location of the given NW corner
drawImage(ImageMaker, int, int) - Method in class javalib.worldcanvas.AppletCanvas
Draw the image provided by the ImageMaker on the Canvas at the given NW corner
drawImage(WorldImage) - Method in class javalib.worldcanvas.AppletCanvas
Draw the image on the Canvas at its pinhole location.
drawImage(String, int, int) - Method in class javalib.worldcanvas.CanvasPanel
Draw the image from the given .png file at the specified location
drawImage(ImageMaker, int, int) - Method in class javalib.worldcanvas.CanvasPanel
Draw the image from the .png file that has been read by the given ImageMaker.
drawImage(WorldImage) - Method in class javalib.worldcanvas.CanvasPanel
Draw the given image into this panel
drawImage(String, Posn) - Method in class javalib.worldcanvas.MyCanvas
Draw the image in the specified file at the location of the given NW corner
drawImage(ImageMaker, Posn) - Method in class javalib.worldcanvas.MyCanvas
Draw the image provided by the ImageMaker on the Canvas at the given NW corner
drawImage(WorldImage) - Method in class javalib.worldcanvas.MyCanvas
Draw the image on the Canvas at its pinhole location.
drawImage(String, Posn) - Method in class javalib.worldcanvas.WorldCanvas
Draw the image in the specified file at the location of the given NW corner
drawImage(ImageMaker, Posn) - Method in class javalib.worldcanvas.WorldCanvas
Draw the image provided by the ImageMaker on the Canvas at the given NW corner
drawImage(WorldImage) - Method in class javalib.worldcanvas.WorldCanvas
Draw the image on the Canvas at its pinhole location.
drawImagePixels(ImageMaker, int, int) - Method in class javalib.worldcanvas.CanvasPanel
Draw the image from the .png file that has been read by the given ImageMaker.
DrawTest - Class in javalib.worldimages
A bunch of test cases that draw examples on the screen.
DrawTest() - Constructor for class javalib.worldimages.DrawTest
 
drawWorld(String) - Method in class javalib.funworld.World
Invoke the user defined makeImage method, if this World has been initialized via bigBang and did not stop or end, otherwise invoke the user defined lastImage method,

E

EllipseImage - Class in javalib.worldimages
An outlined ellipse
EllipseImage(int, int, Color, Mode) - Constructor for class javalib.worldimages.EllipseImage
The full constructor for an EllipseImage.
endOfWorld(String) - Method in class javalib.funworld.Animation
End the animation now.
endOfWorld(String) - Method in class javalib.funworld.World
End the world interactions - leave the canvas open, show the image of the last world with the given message
equalBufferedImages(BufferedImage, BufferedImage) - Static method in class javalib.worldimages.LooksTheSame
Compare two BufferedImages for equal data, the way equals() should have done.
equals(Object) - Method in class javalib.worldimages.AImage
 
equals(Object) - Method in class javalib.worldimages.CircleImage
 
equals(Object) - Method in class javalib.worldimages.ColoredImage
 
equals(Object) - Method in class javalib.worldimages.Crop
 
equals(Object) - Method in class javalib.worldimages.FreezeImage
 
equals(Object) - Method in class javalib.worldimages.FromFileImage
 
equals(Object) - Method in class javalib.worldimages.FromURLImage
 
equals(Object) - Method in class javalib.worldimages.LinearImage
 
equals(Object) - Method in class javalib.worldimages.OverlayImage
 
equals(Object) - Method in class javalib.worldimages.PolygonImage
Is this PolygonImage same as the given object?
equals(Object) - Method in class javalib.worldimages.Posn
 
equals(Object) - Method in class javalib.worldimages.RasterImage
 
equals(Object) - Method in class javalib.worldimages.RectangularImage
 
equals(Object) - Method in class javalib.worldimages.TextImage
Is this TextImage same as the given object?
equals(Object) - Method in interface javalib.worldimages.WorldImage
Is this the same as another WorldImage, as expression trees? Define this at every level that has instance variables.
Equivalence<T> - Interface in tester
A function object to represent equivalence relationship for the given class of data.
equivalent(T, T) - Method in interface tester.Equivalence
Determine whether the two given object of the type T are equivalent.
equivalent(WorldImage, WorldImage) - Method in class javalib.worldimages.LooksTheSame
 
errors - Variable in class tester.Tester
the total number of errors
Example - Annotation Type in tester
This annotation allows us to mark classes that we would like to examine at runtime using the provided Tester.

F

f - Variable in class javalib.worldcanvas.WorldCanvas
the frame that holds the canvas
fail() - Method in class tester.Tester
Test nothing, just report failure.
fail(String) - Method in class tester.Tester
Test nothing, just report failure.
failedResults - Variable in class tester.Tester
A String that records the results for all failed tests
family - Static variable in class javalib.worldimages.SampleImages
 
filled - Static variable in enum javalib.worldimages.Mode
A synonym for FILLED.
fish - Static variable in class javalib.worldimages.SampleImages
 
FreezeImage - Class in javalib.worldimages
An image with a memoized raster rendering.
FromFileImage - Class in javalib.worldimages
The class to represent an image that came from a .png file and is to be drawn by the world when drawing on its Canvas.
FromURLImage - Class in javalib.worldimages
An image loaded from a URL over the network.
FromURLImage(URL) - Constructor for class javalib.worldimages.FromURLImage
Constructor for objects of class FromURLImage
frozen() - Method in class javalib.worldimages.AImage
 
frozen() - Method in class javalib.worldimages.RasterImage
If it's already a RasterImage, that's good enough.
frozen() - Method in interface javalib.worldimages.WorldImage
Get a WorldImage just like this one, but with a memoized raster rendering.
fullTestReport() - Method in class tester.Tester
Produce test names and values compared for all tests
fullTestResults - Variable in class tester.Tester
A String that records all test results

G

getBack() - Method in class javalib.worldimages.OverlayImage
Getter for the background part of an Overlay.
getBottom() - Method in class javalib.worldimages.CircleImage
 
getBottom() - Method in class javalib.worldimages.Crop
 
getBottom() - Method in class javalib.worldimages.FreezeImage
 
getBottom() - Method in class javalib.worldimages.LinearImage
 
getBottom() - Method in class javalib.worldimages.OverlayImage
 
getBottom() - Method in class javalib.worldimages.PolygonImage
 
getBottom() - Method in class javalib.worldimages.RasterImage
 
getBottom() - Method in class javalib.worldimages.RectangularImage
 
getBottom() - Method in class javalib.worldimages.TextImage
Produce the height of this text image (based on its size)
getBottom() - Method in interface javalib.worldimages.WorldImage
Produce the bottom of the bounding box.
getBuffer() - Method in class javalib.worldcanvas.AppletCanvas
Returns the internal buffered image for this panel.
getBuffer() - Method in class javalib.worldcanvas.CanvasPanel
Returns the internal buffered image for this panel.
getBufferGraphics() - Method in class javalib.worldcanvas.AppletCanvas
Returns a Graphics2D object that permits painting to the internal buffered image for this panel.
getBufferGraphics() - Method in class javalib.worldcanvas.CanvasPanel
Returns a Graphics2D object that permits painting to the internal buffered image for this panel.
getBufferGraphics() - Method in class javalib.worldcanvas.MyCanvas
Returns a Graphics2D object that permits painting to the internal buffered image for this canvas.
getBufferGraphics() - Method in class javalib.worldcanvas.WorldCanvas
Returns a Graphics2D object that permits painting to the internal buffered image for this canvas.
getBufferHeight() - Method in class javalib.worldcanvas.AppletCanvas
Returns the height of the buffered image.
getBufferHeight() - Method in class javalib.worldcanvas.CanvasPanel
Returns the height of the buffered image.
getBufferWidth() - Method in class javalib.worldcanvas.AppletCanvas
Returns the width of the buffered image.
getBufferWidth() - Method in class javalib.worldcanvas.CanvasPanel
Returns the width of the buffered image.
getCenter() - Method in class javalib.worldimages.AImage
Retrieve the coordinates of the center of the image.
getCenter() - Method in interface javalib.worldimages.WorldImage
Find the approximate center of this image.
getColor() - Method in class javalib.worldimages.ColoredImage
get the color of an image
getColorPixel(int, int) - Method in class javalib.worldimages.ImageMaker
Get the specified pixel in the image as an RGB color.
getCurrentHeight() - Method in class javalib.funworld.Animation
Get the current height of the animation window (which may have been adjusted by the user).
getCurrentHeight() - Method in class javalib.funworld.World
Get the current height of the animation window (which may have been adjusted by the user).
getCurrentHeight() - Method in class javalib.worldcanvas.WorldCanvas
Get the current width of the animation window (which may have been adjusted by the user).
getCurrentWidth() - Method in class javalib.funworld.Animation
Get the current width of the animation window (which may have been adjusted by the user).
getCurrentWidth() - Method in class javalib.funworld.World
Get the current width of the animation window (which may have been adjusted by the user).
getCurrentWidth() - Method in class javalib.worldcanvas.WorldCanvas
Get the current width of the animation window (which may have been adjusted by the user).
getElapsedTime() - Method in class javalib.funworld.Animation
Get elapsed time so far.
getElapsedTime() - Method in class javalib.funworld.World
Getter for elapsed time.
getFirst() - Method in interface tester.Traversal
Produce the first element in the dataset represented by this Traversal
getFonts() - Method in class javalib.worldcanvas.CanvasPanel
 
getFront() - Method in class javalib.worldimages.OverlayImage
Getter for the foreground part of an Overlay.
getHeight() - Method in class javalib.funworld.Animation
Get the initially-specified height.
getHeight() - Method in class javalib.funworld.World
Get the initially-specified height.
getHeight() - Method in class javalib.worldcanvas.WorldCanvas
Get the initial height.
getHeight() - Method in class javalib.worldimages.AImage
Retrieve the height of the image, in pixels.
getHeight() - Method in class javalib.worldimages.LinearImage
 
getHeight() - Method in class javalib.worldimages.OverlayImage
 
getHeight() - Method in interface javalib.worldimages.WorldImage
Produce the height of this image
getInnerPanel() - Method in class javalib.worldcanvas.AppletCanvas
Returns the internal panel for this buffered panel, that is, the panel that paints the buffered image and handles the mouse and key adapters.
getInnerPanel() - Method in class javalib.worldcanvas.CanvasPanel
Returns the internal panel for this buffered panel, that is, the panel that paints the buffered image and handles the mouse and key adapters.
getLeft() - Method in class javalib.worldimages.AImage
Getter for the left edge of the bounding box.
getLeft() - Method in class javalib.worldimages.Crop
 
getLeft() - Method in class javalib.worldimages.LinearImage
 
getLeft() - Method in class javalib.worldimages.OverlayImage
 
getLeft() - Method in class javalib.worldimages.PolygonImage
 
getLeft() - Method in interface javalib.worldimages.WorldImage
Produce the left edge of the bounding box.
getMode() - Method in class javalib.worldimages.ColoredImage
 
getModel() - Method in class javalib.funworld.Animation
Get the current model.
getPixelColor(int, int) - Method in class javalib.worldimages.AImage
 
getPixelColor(int, int) - Method in class javalib.worldimages.RasterImage
 
getPixelColor(int, int) - Method in interface javalib.worldimages.WorldImage
Get the color of a specified pixel of an image.
getPreferredSize() - Method in class javalib.worldcanvas.AppletCanvas.Painter
Returns the size of the buffer as the size of this panel.
getPreferredSize() - Method in class javalib.worldcanvas.CanvasPanel.Painter
Returns the size of the buffer as the size of this panel.
getRadius() - Method in class javalib.worldimages.CircleImage
 
getRest() - Method in interface tester.Traversal
Produce a Traversal for the rest of the dataset
getRight() - Method in class javalib.worldimages.CircleImage
 
getRight() - Method in class javalib.worldimages.Crop
 
getRight() - Method in class javalib.worldimages.FreezeImage
 
getRight() - Method in class javalib.worldimages.LinearImage
 
getRight() - Method in class javalib.worldimages.OverlayImage
 
getRight() - Method in class javalib.worldimages.PolygonImage
 
getRight() - Method in class javalib.worldimages.RasterImage
 
getRight() - Method in class javalib.worldimages.RectangularImage
 
getRight() - Method in class javalib.worldimages.TextImage
Produce the width of this image.
getRight() - Method in interface javalib.worldimages.WorldImage
Produce the bottom of the bounding box.
getTickCount() - Method in class javalib.funworld.Animation
Get number of ticks so far.
getTickCount() - Method in class javalib.funworld.World
Getter for tickCount.
getTop() - Method in class javalib.worldimages.AImage
Getter for the top of the bounding box.
getTop() - Method in class javalib.worldimages.Crop
 
getTop() - Method in class javalib.worldimages.LinearImage
 
getTop() - Method in class javalib.worldimages.OverlayImage
 
getTop() - Method in class javalib.worldimages.PolygonImage
 
getTop() - Method in interface javalib.worldimages.WorldImage
Produce the top of the bounding box.
getTranslation() - Method in class javalib.worldimages.LinearImage
Getter for the translation field.
getWidth() - Method in class javalib.funworld.Animation
Get the initially-specified width.
getWidth() - Method in class javalib.funworld.World
Get the initially-specified width.
getWidth() - Method in class javalib.worldcanvas.WorldCanvas
Get the initial width.
getWidth() - Method in class javalib.worldimages.AImage
Retrieve the width of the image, in pixels.
getWidth() - Method in class javalib.worldimages.LinearImage
 
getWidth() - Method in class javalib.worldimages.OverlayImage
 
getWidth() - Method in interface javalib.worldimages.WorldImage
Produce the width of this image
getX() - Method in class javalib.worldimages.LinearImage
Getter for the x coordinate of the translation field (just for brevity).
getX() - Method in class javalib.worldimages.Posn
 
getY() - Method in class javalib.worldimages.LinearImage
Getter for the y coordinate of the translation field (just for brevity).
getY() - Method in class javalib.worldimages.Posn
 
gotKeyEvent(Model, String) - Method in class javalib.funworld.Animation
Produce the new model after a keyboard event.
gotMouseClicked(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after a mouse-click event.
gotMouseDragged(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after a mouse-drag event.
gotMouseEntered(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after the mouse enters the window.
gotMouseExited(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after the mouse leaves the window.
gotMouseMoved(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after a mouse-move event.
gotMousePressed(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after the mouse is pressed (but not yet released).
gotMouseReleased(Model, Posn) - Method in class javalib.funworld.Animation
Produce the new model after the mouse is released.
gotTick(Model) - Method in class javalib.funworld.Animation
Produce the new model after a tick event.
Green - Class in javalib.colors
To represent the green color -- in the style of ProfessorJ draw package.
Green() - Constructor for class javalib.colors.Green
 
greenFish - Static variable in class javalib.worldimages.SampleImages
 

H

hacker - Static variable in class javalib.worldimages.SampleImages
 
hashCode() - Method in class javalib.worldimages.CircleImage
 
hashCode() - Method in class javalib.worldimages.ColoredImage
 
hashCode() - Method in class javalib.worldimages.FromFileImage
The hashCode to match the equals method
hashCode() - Method in class javalib.worldimages.OverlayImage
 
hashCode() - Method in class javalib.worldimages.PolygonImage
The hashCode to match the equals method
hashCode() - Method in class javalib.worldimages.Posn
 
hashCode() - Method in class javalib.worldimages.RasterImage
 
hashCode() - Method in class javalib.worldimages.RectangularImage
 
hashCode() - Method in class javalib.worldimages.TextImage
The hashCode to match the equals method
hashCode() - Method in interface javalib.worldimages.WorldImage
Get a hash code for the WorldImage.
HEIGHT - Variable in class javalib.worldcanvas.AppletCanvas
 
HEIGHT - Variable in class javalib.worldcanvas.CanvasPanel
 
height - Variable in class javalib.worldcanvas.MyCanvas
the height of the panel
height - Variable in class javalib.worldcanvas.WorldCanvas
the height of the panel
height - Variable in class javalib.worldimages.ImageMaker
 
hieroglyphics - Static variable in class javalib.worldimages.SampleImages
 

I

IColor - Interface in javalib.colors
An interface to create a union of six basic colors used in ProfessorJ draw teachpack.
id - Static variable in class javalib.worldimages.RasterImage
 
IExamples - Interface in tester
A visitor designed to invoke test cases that will be evaluated by the Tester class
IllegalUseOfTraversalException - Exception in tester
Exception to be raised on an attempt to advance a traversal over an empty collection or to produce the first element of an empty collection.
IllegalUseOfTraversalException() - Constructor for exception tester.IllegalUseOfTraversalException
Constructs a new exception with null as its detail message.
IllegalUseOfTraversalException(String) - Constructor for exception tester.IllegalUseOfTraversalException
Constructs a new exception with the specified detail message.
IllegalUseOfTraversalException(String, Throwable) - Constructor for exception tester.IllegalUseOfTraversalException
Constructs a new exception with the specified detail message and cause.
IllegalUseOfTraversalException(Throwable) - Constructor for exception tester.IllegalUseOfTraversalException
Constructs a new exception with the specified cause and a detail message.
image - Variable in class javalib.worldimages.ImageMaker
 
ImageBuilder<OtherInfo> - Interface in javalib.worldimages
A function from (x,y) to Color, suitable for use in the "build" method.
ImageMaker - Class in javalib.worldimages
This class allows the user to read image data from a .png file and save it as a RenderedImage in the format that is used for the World when drawing on its canvas.
ImageMaker() - Constructor for class javalib.worldimages.ImageMaker
Default constructor, so we can define a subclass that uses url for file name - used by applets
ImageMaker(String) - Constructor for class javalib.worldimages.ImageMaker
Construct the BufferedImage from the given file.
ImageMakerApplet - Class in javalib.worldimages
This class allows the user to read image data from a .png file and save it as a RenderedImage in the format that is used for the World when drawing on its WorldCanvas.
ImageMakerApplet(String) - Constructor for class javalib.worldimages.ImageMakerApplet
 
ImageMap<OtherInfo> - Interface in javalib.worldimages
A function from Color to Color, suitable for use in the "map" method.
imageSource - Variable in class javalib.worldimages.ImageMaker
the buffer that saves the user-generated image
initEverything() - Static method in class javalib.worldimages.SampleImages
 
inputfile - Variable in class javalib.worldimages.ImageMaker
 
ISame<T> - Interface in tester
An interface to represent a method that compares two objects for user-defined equality.
isApplet(boolean) - Static method in class javalib.worldimages.AImage
Record whether or not we're in an applet.
isEmpty() - Method in interface tester.Traversal
Produce true if this Traversal represents an empty dataset
isFocusable() - Method in class javalib.worldcanvas.AppletCanvas
We must implement this method to make sure the canvas panel gets focus when moused over - and responds to the key events appropriately.
isFocusable() - Method in class javalib.worldcanvas.CanvasPanel
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
isRequestFocusEnabled() - Method in class javalib.worldcanvas.AppletCanvas
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
isRequestFocusEnabled() - Method in class javalib.worldcanvas.CanvasPanel
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
isWhite(Color) - Method in class javalib.worldcanvas.AppletCanvas
 
isWhite(Color) - Method in class javalib.worldcanvas.CanvasPanel
 
it - Static variable in class javalib.worldimages.LooksTheSame
The single instance of class LooksTheSame.
ITALIC_BOLD - Static variable in enum javalib.worldimages.TextStyle
A synonym for BOLD_ITALIC.

J

javalib.colors - package javalib.colors
 
javalib.funworld - package javalib.funworld
 
tester - package tester
 
javalib.worldcanvas - package javalib.worldcanvas
 
javalib.worldimages - package javalib.worldimages
 

K

keyEventCallback(String) - Method in class javalib.funworld.MyKeyAdapter
The callback for the key events
keyPressed(KeyEvent) - Method in class javalib.funworld.MyKeyAdapter
Handle the key pressed event from the canvas.
keyTyped(KeyEvent) - Method in class javalib.funworld.MyKeyAdapter
Handle the key typed event from the canvas.

L

lastImage(String) - Method in class javalib.funworld.Animation
An alternative to makeImage that is called when the animation ends.
lastImage(String) - Method in class javalib.funworld.World
User defined method to draw the World.
lastImage - Variable in class javalib.worldimages.WorldEnd
the last image to display when the world ends
lastWorld - Variable in class javalib.funworld.World
the last world - if needed
LinearImage - Class in javalib.worldimages
An image which is a translation of another existing image.
LinearImage(AffineTransform, WorldImage) - Constructor for class javalib.worldimages.LinearImage
Constructor for objects of class LinearImage
loadedImages - Static variable in class javalib.worldimages.ImageMaker
 
LoadedImages - Class in javalib.worldimages
Singleton class to hold a table of already-loaded images.
LOOKS_SAME - Static variable in interface javalib.worldimages.WorldImage
The equivalence operator that actually carries out pixel-for-pixel comparisons.
LooksTheSame - Class in javalib.worldimages
A singleton class to represent the operation of checking whether two images render the same.

M

main(String[]) - Static method in class javalib.worldcanvas.WorldCanvas
Self test for the Canvas class
make(int, Color, Mode) - Static method in class javalib.worldimages.CircleImage
Pseudo-constructor.
make(int, IColor, Mode) - Static method in class javalib.worldimages.CircleImage
Pseudo-constructor.
make(int, Mode) - Static method in class javalib.worldimages.CircleImage
Another pseudo-constructor, with a default color.
make(int, Color) - Static method in class javalib.worldimages.CircleImage
Another pseudo-constructor, with a Color and a default mode.
make(int, IColor) - Static method in class javalib.worldimages.CircleImage
Another pseudo-constructor, with an IColor and a default mode.
make(int) - Static method in class javalib.worldimages.CircleImage
Another pseudo-constructor, with default color and mode.
make(WorldImage, int, int, int, int) - Static method in class javalib.worldimages.Crop
Pseudo-constructor for objects of class Crop
make(int, int, Color, Mode) - Static method in class javalib.worldimages.EllipseImage
Pseudo-constructor.
make(int, int, IColor, Mode) - Static method in class javalib.worldimages.EllipseImage
Pseudo-constructor.
make(int, int, Mode) - Static method in class javalib.worldimages.EllipseImage
Another pseudo-constructor with a default color.
make(int, int, Color) - Static method in class javalib.worldimages.EllipseImage
Pseudo-constructor.
make(int, int, IColor) - Static method in class javalib.worldimages.EllipseImage
Pseudo-constructor.
make(int, int) - Static method in class javalib.worldimages.EllipseImage
Another pseudo-constructor with a default color.
make(WorldImage) - Static method in class javalib.worldimages.FreezeImage
Pseudo-constructor for a frozen (memoized) image.
make(String) - Static method in class javalib.worldimages.FromFileImage
Pseudo-constructor for objects of class FromFileImage
make(String) - Static method in class javalib.worldimages.FromURLImage
Pseudo-constructor for objects of class FromURLImage
make(AffineTransform, WorldImage) - Static method in class javalib.worldimages.LinearImage
Pseudo-constructor for objects of class LinearImage.
make(WorldImage, WorldImage) - Static method in class javalib.worldimages.OverlayImage
Pseudo-constructor
make(Color, Mode, Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(IColor, Mode, Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(Mode, Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(Color, Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(IColor, Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(Posn...) - Static method in class javalib.worldimages.PolygonImage
 
make(BufferedImage) - Static method in class javalib.worldimages.RasterImage
Pseudo-constructor.
make(int, int, Color, Mode) - Static method in class javalib.worldimages.RectangleImage
The full pseudo-constructor
make(int, int, IColor, Mode) - Static method in class javalib.worldimages.RectangleImage
Pseudo-constructor with an IColor
make(int, int, Mode) - Static method in class javalib.worldimages.RectangleImage
Pseudo-constructor with a default color
make(int, int, Color) - Static method in class javalib.worldimages.RectangleImage
Pseudo-constructor with a Color and a default mode.
make(int, int, IColor) - Static method in class javalib.worldimages.RectangleImage
Pseudo-constructor with an IColor and a default mode.
make(int, int) - Static method in class javalib.worldimages.RectangleImage
Pseudo-constructor with a default color and mode.
make(String, float, TextStyle, Color) - Static method in class javalib.worldimages.TextImage
 
make(String, float, TextStyle, IColor) - Static method in class javalib.worldimages.TextImage
 
make(String, float, TextStyle) - Static method in class javalib.worldimages.TextImage
 
make(String, float, Color) - Static method in class javalib.worldimages.TextImage
 
make(String, float, IColor) - Static method in class javalib.worldimages.TextImage
 
make(String, float) - Static method in class javalib.worldimages.TextImage
 
make(String, TextStyle, Color) - Static method in class javalib.worldimages.TextImage
 
make(String, TextStyle, IColor) - Static method in class javalib.worldimages.TextImage
 
make(String, TextStyle) - Static method in class javalib.worldimages.TextImage
 
make(String, Color) - Static method in class javalib.worldimages.TextImage
 
make(String, IColor) - Static method in class javalib.worldimages.TextImage
 
make(String) - Static method in class javalib.worldimages.TextImage
 
makeCentered(Posn, int, Color, Mode) - Static method in class javalib.worldimages.CircleImage
 
makeCentered(Posn, int, IColor, Mode) - Static method in class javalib.worldimages.CircleImage
 
makeCentered(Posn, int, Mode) - Static method in class javalib.worldimages.CircleImage
 
makeCentered(Posn, int, Color) - Static method in class javalib.worldimages.CircleImage
 
makeCentered(Posn, int, IColor) - Static method in class javalib.worldimages.CircleImage
 
makeCentered(Posn, int) - Static method in class javalib.worldimages.CircleImage
 
makeCenteredCircle(Posn, int, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce a circle centered at a specified location.
makeCenteredCircle(Posn, int, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce a circle centered at a specified location.
makeCenteredCircle(Posn, int, Mode) - Static method in class javalib.worldimages.AImage
Produce a black circle centered at a specified location.
makeCenteredCircle(Posn, int, Color) - Static method in class javalib.worldimages.AImage
Produce an outlined circle centered at a specified location.
makeCenteredCircle(Posn, int, IColor) - Static method in class javalib.worldimages.AImage
Produce an outlined circle centered at a specified location.
makeCenteredCircle(Posn, int) - Static method in class javalib.worldimages.AImage
Produce an outlined black circle centered at a specified location.
makeCircle(int, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce a circle.
makeCircle(int, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce a circle.
makeCircle(int, Mode) - Static method in class javalib.worldimages.AImage
Produce a black circle.
makeCircle(int, Color) - Static method in class javalib.worldimages.AImage
Produce an outlined circle.
makeCircle(int, IColor) - Static method in class javalib.worldimages.AImage
Produce an outlined circle.
makeCircle(int) - Static method in class javalib.worldimages.AImage
Produce an outlined black circle.
makeEllipse(int, int, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce an ellipse.
makeEllipse(int, int, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce an ellipse.
makeEllipse(int, int, Mode) - Static method in class javalib.worldimages.AImage
Produce a black ellipse.
makeEllipse(int, int, Color) - Static method in class javalib.worldimages.AImage
Produce an outlined ellipse.
makeEllipse(int, int, IColor) - Static method in class javalib.worldimages.AImage
Produce an outlined ellipse.
makeEllipse(int, int) - Static method in class javalib.worldimages.AImage
Produce an outlined black ellipse.
makeFromFile(String) - Static method in class javalib.worldimages.AImage
Produce an image from a disk file (e.g. PNG, GIF, JPG, etc.)
makeFromURL(String) - Static method in class javalib.worldimages.AImage
Produce an image from a URL (e.g. "copy image location" in a Web browser)
makeImage() - Method in class javalib.funworld.Animation
A version of makeImage(Model) that defaults to using the current Model.
makeImage(Model) - Method in class javalib.funworld.Animation
Produce a WorldImage representation of the model; users subclassing Animation must override this.
makeImage() - Method in class javalib.funworld.World
User defined method to draw the World.
makeImage() - Method in class javalib.worldimages.AImage
 
makeImage() - Method in interface javalib.worldimages.Drawable
Produce a WorldImage representation of this object.
makeLine(Posn, Posn, Color) - Static method in class javalib.worldimages.AImage
Produce a line segment with specified endpoints.
makeLine(Posn, Posn, IColor) - Static method in class javalib.worldimages.AImage
Produce a line segment with specified endpoints.
makeLine(Posn, Posn) - Static method in class javalib.worldimages.AImage
Produce a black line segment with specified endpoints.
makePolygon(Color, Mode, Posn...) - Static method in class javalib.worldimages.AImage
Produce a polygon with specified vertices.
makePolygon(IColor, Mode, Posn...) - Static method in class javalib.worldimages.AImage
Produce a polygon with specified vertices.
makePolygon(Mode, Posn...) - Static method in class javalib.worldimages.AImage
Produce a black polygon with specified vertices.
makePolygon(Color, Posn...) - Static method in class javalib.worldimages.AImage
Produce an outlined polygon with specified vertices.
makePolygon(IColor, Posn...) - Static method in class javalib.worldimages.AImage
Produce an outlined polygon with specified vertices.
makePolygon(Posn...) - Static method in class javalib.worldimages.AImage
Produce an outlined black polygon with specified vertices.
makeRectangle(int, int, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce a rectangle.
makeRectangle(int, int, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce a rectangle.
makeRectangle(int, int, Mode) - Static method in class javalib.worldimages.AImage
Produce a black rectangle.
makeRectangle(int, int, Color) - Static method in class javalib.worldimages.AImage
Produce an outlined rectangle.
makeRectangle(int, int, IColor) - Static method in class javalib.worldimages.AImage
Produce an outlined rectangle.
makeRectangle(int, int) - Static method in class javalib.worldimages.AImage
Produce an outlined black rectangle.
makeText(String, float, TextStyle, Color) - Static method in class javalib.worldimages.AImage
Produce an image of some text.
makeText(String, float, TextStyle, IColor) - Static method in class javalib.worldimages.AImage
Produce an image of some text.
makeText(String, float, TextStyle) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to black.
makeText(String, float, Color) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to normal style.
makeText(String, float, IColor) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to normal style.
makeText(String, float) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to normal style and black.
makeText(String, TextStyle, Color) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to 12-point.
makeText(String, TextStyle, IColor) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defgaulting to 12-point.
makeText(String, TextStyle) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to 12-point black.
makeText(String, Color) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to regular 12-point.
makeText(String, IColor) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to regular 12-point.
makeText(String) - Static method in class javalib.worldimages.AImage
Produce an image of some text, defaulting to regular, 12-point, black.
makeTriangle(double, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce an equilateral triangle with the specified side, color, and mode.
makeTriangle(double, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce an equilateral triangle with the specified side, color, and mode.
makeTriangle(double, Mode) - Static method in class javalib.worldimages.AImage
Produce an equilateral black triangle with the specified side and mode.
makeTriangle(double, Color) - Static method in class javalib.worldimages.AImage
Produce an equilateral outlined triangle with the specified side and color.
makeTriangle(double, IColor) - Static method in class javalib.worldimages.AImage
Produce an equilateral outlined triangle with the specified side and color.
makeTriangle(double) - Static method in class javalib.worldimages.AImage
Produce an equilateral black outlined triangle with the specified side.
makeTriangle(Posn, Posn, Posn, Color, Mode) - Static method in class javalib.worldimages.AImage
Produce a triangle with specified vertices.
makeTriangle(Posn, Posn, Posn, IColor, Mode) - Static method in class javalib.worldimages.AImage
Produce a triangle with specified vertices.
makeTriangle(Posn, Posn, Posn, Mode) - Static method in class javalib.worldimages.AImage
Produce a black triangle with specified vertices.
makeTriangle(Posn, Posn, Posn, Color) - Static method in class javalib.worldimages.AImage
Produce an outlined triangle with specified vertices.
makeTriangle(Posn, Posn, Posn, IColor) - Static method in class javalib.worldimages.AImage
Produce an outlined triangle with specified vertices.
makeTriangle(Posn, Posn, Posn) - Static method in class javalib.worldimages.AImage
Produce an outlined black triangle with specified vertices.
map(ImageMap, Object) - Method in class javalib.worldimages.AImage
 
map(ImageMap) - Method in class javalib.worldimages.AImage
 
map(ImageMap, Object) - Method in class javalib.worldimages.RasterImage
 
map(ImageMap, Object) - Method in interface javalib.worldimages.WorldImage
Create a rectangular image pixel by pixel from an existing image.
map(ImageMap) - Method in interface javalib.worldimages.WorldImage
Create a rectangular image pixel by pixel from an existing image.
minus(Posn) - Method in class javalib.worldimages.Posn
Subtract another Posn from this one.
Mode - Enum in javalib.worldimages
The available Modes are FILLED (aka SOLID) and OUTLINED.
mouseClicked(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse has been clicked on a component.
mouseDragged(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse has been dragged in a component.
mouseEntered(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse enters a component.
mouseExited(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse exits a component.
mouseMoved(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse has been moved in a component.
mousePosn - Variable in class javalib.funworld.MyMouseAdapter
the mouse position recorded by the mouse event handler
mousePressed(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when the mouse button has been pressed on a component.
mouseReleased(MouseEvent) - Method in class javalib.funworld.MyMouseAdapter
Invoked when a mouse button has been released on a component.
moved(int, int) - Method in class javalib.worldimages.AImage
Produce a translated copy of this image.
moved(Posn) - Method in class javalib.worldimages.AImage
Produce a translated copy of this image.
moved(int, int) - Method in class javalib.worldimages.Posn
Get a translated version of the given posn.
moved(int, int) - Method in interface javalib.worldimages.WorldImage
Produce the image translated by the given (dx, dy).
moved(Posn) - Method in interface javalib.worldimages.WorldImage
Produce the image translated by the given (dx, dy).
MyCanvas - Class in javalib.worldcanvas
Abstract Canvas - allows the drawing of shapes, lines, and text in the window of the given size, window closing and re-opening.
MyCanvas(int, int) - Constructor for class javalib.worldcanvas.MyCanvas
Construct a MyCanvas with the given width and height.
MyKeyAdapter - Class in javalib.funworld
The implementation of callbacks for the key events.
MyKeyAdapter(World) - Constructor for class javalib.funworld.MyKeyAdapter
the KeyAdapter that handles the key events
MyMouseAdapter - Class in javalib.funworld
The implementation of callbacks for the mouse events: mouse clicked, entered, exited, pressed, and released.
MyMouseAdapter(World) - Constructor for class javalib.funworld.MyMouseAdapter
Create the mouse listener for the given World.
mytime - Variable in class javalib.funworld.World
the timer for this world
MyTimer - Class in javalib.funworld
The action listener for the timer events.
MyTimer(World, double) - Constructor for class javalib.funworld.MyTimer
Create the initial timer for the given World at the given speed.
MyWindowClosingListener - Class in javalib.funworld
The window closing listener - it stops the timer when the frame is closed and stops playing all tunes - in the tickTunes bucket and in the keyTunes bucket.
MyWindowClosingListener(World) - Constructor for class javalib.funworld.MyWindowClosingListener
 

N

normalized() - Method in class javalib.worldimages.AImage
Produce a copy of this image translated to have its top-left corner at (0,0).
normalized() - Method in interface javalib.worldimages.WorldImage
Produce a "normalized" version of this image, with top-left corner at (0,0).
numberOfTests - Variable in class tester.Tester
the total number of tests

O

onKeyEvent(String) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onKeyEvent(String) - Method in class javalib.funworld.World
User defined method to be invoked by the key adapter on selected key events.
onMouseClicked(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseClicked(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is clicked.
onMouseDragged(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseDragged(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is dragged.
onMouseEntered(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseEntered(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is entered.
onMouseExited(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseExited(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is exited.
onMouseMoved(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseMoved(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is moved.
onMousePressed(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMousePressed(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is pressed.
onMouseReleased(Posn) - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onMouseReleased(Posn) - Method in class javalib.funworld.World
User defined method to be invoked by the mouse adapter when a mouse is released.
onTick() - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method, unless you're doing something with the World more complicated than just replacing the Model.
onTick() - Method in class javalib.funworld.World
User defined method to be invoked by the timer on each tick.
origin - Static variable in class javalib.worldimages.Posn
 
outlined - Static variable in enum javalib.worldimages.Mode
A synonym for OUTLINED.
overlay(WorldImage...) - Method in class javalib.worldimages.AImage
 
overlay(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Overlay other images on this one, retaining their locations.
overlayCentered(WorldImage...) - Method in class javalib.worldimages.AImage
 
overlayCentered(WorldImage...) - Method in interface javalib.worldimages.WorldImage
Overlay other images on this one, ignoring location of all but centering them.
OverlayImage - Class in javalib.worldimages
The overlay of two images.
overlayImages(WorldImage...) - Static method in class javalib.worldimages.AImage
Produce an image by overlaying a bunch of existing images.
overlayXY(WorldImage, int, int) - Method in class javalib.worldimages.AImage
 
overlayXY(WorldImage, int, int) - Method in interface javalib.worldimages.WorldImage
Overlay another image on this one, retaining locations and translating the other image.

P

packParentWindow(JComponent) - Static method in class javalib.worldcanvas.AppletCanvas.Refresh
Revalidates the given component, packs its parent window, and then repaints the component.
packParentWindow(JComponent) - Static method in class javalib.worldcanvas.CanvasPanel.Refresh
Revalidates the given component, packs its parent window, and then repaints the component.
paint(Graphics) - Method in class javalib.worldcanvas.AppletCanvas.Painter
Paints the component and then adds the work done by the paintOver function.
paint(Graphics) - Method in class javalib.worldcanvas.CanvasPanel.Painter
Paints the component and then adds the work done by the paintOver function.
paintComponent(Graphics) - Method in class javalib.worldcanvas.AppletCanvas.Painter
Paints the image buffer of the buffered panel in this panel and then paints the buffered panel paintable sequence.
paintComponent(Graphics) - Method in class javalib.worldcanvas.CanvasPanel.Painter
Paints the image buffer of the buffered panel in this panel
painter - Variable in class javalib.worldcanvas.AppletCanvas
The internal painter panel.
painter - Variable in class javalib.worldcanvas.CanvasPanel
The internal painter panel.
paintOver(Graphics2D) - Method in class javalib.worldcanvas.AppletCanvas
Override this paintOver method to add additional painting actions after the default buffer repaint is done during a repaint() call.
paintOver(Graphics2D) - Method in class javalib.worldcanvas.CanvasPanel
Override this paintOver method to add additional painting actions after the default buffer repaint is done during a repaint() call.
panel - Variable in class javalib.worldcanvas.AppletCanvas.Painter
Reference to the BufferedPanel that created this Painter.
panel - Variable in class javalib.worldcanvas.CanvasPanel.Painter
Reference to the CanvasPanel that created this Painter.
panel - Variable in class javalib.worldcanvas.WorldCanvas
the panel that allows us to paint graphics
pinkFish - Static variable in class javalib.worldimages.SampleImages
 
pixelColor(int, int, OtherInfo) - Method in interface javalib.worldimages.ImageBuilder
Given the location of a pixel, determine what color it should be
pixelColor(int, int, Color, OtherInfo) - Method in interface javalib.worldimages.ImageMap
Given information about a pixel in an existing image, determine the color of a pixel in a new image.
place(WorldImage, int, int) - Method in class javalib.worldimages.AImage
 
place(WorldImage, int, int) - Method in interface javalib.worldimages.WorldImage
Place another image onto this one, retaining the location of this one but translating the foreground so its center is at the specified location.
plus(Posn) - Method in class javalib.worldimages.Posn
Add another Posn to this one.
poly - Variable in class javalib.worldimages.PolygonImage
 
PolygonImage - Class in javalib.worldimages
The class to represent filled Polygon images drawn by the world when drawing on its Canvas.
PolygonImage(Color, Mode, Posn...) - Constructor for class javalib.worldimages.PolygonImage
A full constructor for this Polygon image.
PolygonImage(Color, Mode, int[], int[]) - Constructor for class javalib.worldimages.PolygonImage
A protected constructor that takes in arrays of coordinates.
Posn - Class in javalib.worldimages
To represent a point on the drawing WorldCanvas or AppletCanvaas
Posn(int, int) - Constructor for class javalib.worldimages.Posn
 
printCurrentFont() - Method in class javalib.worldcanvas.WorldCanvas
 
processKeyEvent(String) - Method in class javalib.funworld.World
The method invoked by the key adapter on selected key events.
processMouseClicked(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse clicked event.
processMouseDragged(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse dragged event.
processMouseEntered(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse entered event.
processMouseExited(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse exited event.
processMouseMoved(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse moved event.
processMousePressed(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse pressed event.
processMouseReleased(Posn) - Method in class javalib.funworld.World
The method invoked by the mouse adapter on mouse released event.
processTick() - Method in class javalib.funworld.World
The method invoked by the timer on each tick.

R

RasterImage - Class in javalib.worldimages
An image stored explicitly in raster form.
RasterImage(BufferedImage) - Constructor for class javalib.worldimages.RasterImage
Constructor that takes in an already-rendered image.
RasterImage() - Constructor for class javalib.worldimages.RasterImage
Default constructor so subclasses can start without a rendering and fill it in later.
RectangleImage - Class in javalib.worldimages
A filled or outlined rectangle
RectangleImage(int, int, Color, Mode) - Constructor for class javalib.worldimages.RectangleImage
The full constructor for a RectangleImage.
RectangularImage - Class in javalib.worldimages
An image that directly stores its own width and height.
RectangularImage(int, int, Color, Mode) - Constructor for class javalib.worldimages.RectangularImage
The full constructor
RectangularImage(int, int, IColor, Mode) - Constructor for class javalib.worldimages.RectangularImage
 
Red - Class in javalib.colors
To represent the red color -- in the style of ProfessorJ draw package.
Red() - Constructor for class javalib.colors.Red
 
REGULAR - Static variable in enum javalib.worldimages.TextStyle
A synonym for NORMAL.
renderIfNecessary() - Method in class javalib.worldimages.FreezeImage
 
renderIfNecessary() - Method in class javalib.worldimages.RasterImage
make sure rendering isn't null
rendering - Variable in class javalib.worldimages.RasterImage
 
replaceColor(Color) - Method in class javalib.worldimages.CircleImage
 
replaceColor(Color) - Method in class javalib.worldimages.ColoredImage
Functional setter for the color field Define this in all concrete subclasses.
replaceColor(IColor) - Method in class javalib.worldimages.ColoredImage
 
replaceColor(Color) - Method in class javalib.worldimages.EllipseImage
 
replaceColor(Color) - Method in class javalib.worldimages.PolygonImage
 
replaceColor(Color) - Method in class javalib.worldimages.RectangleImage
 
replaceColor(Color) - Method in class javalib.worldimages.TextImage
 
replaceDimensions(int, int) - Method in class javalib.worldimages.EllipseImage
 
replaceDimensions(int, int) - Method in class javalib.worldimages.RectangleImage
 
replaceDimensions(int, int) - Method in class javalib.worldimages.RectangularImage
Functional setter for width and height.
replaceHeight(int) - Method in class javalib.worldimages.RectangularImage
Functional setter for height.
replaceMode(Mode) - Method in class javalib.worldimages.CircleImage
 
replaceMode(Mode) - Method in class javalib.worldimages.ColoredImage
Functional setter for the mode field Define this in all concrete subclasses.
replaceMode(Mode) - Method in class javalib.worldimages.EllipseImage
 
replaceMode(Mode) - Method in class javalib.worldimages.PolygonImage
 
replaceMode(Mode) - Method in class javalib.worldimages.RectangleImage
 
replaceMode(Mode) - Method in class javalib.worldimages.TextImage
 
replaceRadius(int) - Method in class javalib.worldimages.CircleImage
 
replaceWidth(int) - Method in class javalib.worldimages.RectangularImage
Functional setter for width.
requestFocus() - Method in class javalib.worldcanvas.AppletCanvas
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
requestFocus() - Method in class javalib.worldcanvas.CanvasPanel
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
requestFocusInWindow() - Method in class javalib.worldcanvas.AppletCanvas
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
requestFocusInWindow() - Method in class javalib.worldcanvas.CanvasPanel
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
rotate(int, int) - Static method in class javalib.worldimages.AImage
A utility function for producing hash codes.
rotated(int) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around the origin.
rotated(double) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around the origin.
rotated(int) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around (0,0).
rotated(double) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around (0,0).
rotatedAround(int, Posn) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around the specified Posn.
rotatedAround(double, Posn) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around the specified Posn.
rotatedAround(int, Posn) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around a specified point.
rotatedAround(double, Posn) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around a specified point.
rotatedInPlace(int) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around its center.
rotatedInPlace(double) - Method in class javalib.worldimages.AImage
Produce a copy of this image rotated by the specified number of degrees around its center.
rotatedInPlace(int) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around its center.
rotatedInPlace(double) - Method in interface javalib.worldimages.WorldImage
Get a version of this image rotated by a specified number of degrees around its center.
run(Object) - Static method in class tester.Tester
A hook to run the tester for any object --- needed to run from BlueJ.
runAnyTests(Object) - Method in class tester.Tester
Find all test methods in the class of the given object; run tests and report results.
runAnyTests(Object, boolean) - Method in class tester.Tester
Find all test methods in the class of the given object; run tests and report results.
runAnyTests(Object, boolean, boolean) - Method in class tester.Tester
Find all test methods in the class of the given object; run tests and report results.
runFullReport(Object...) - Static method in class tester.Tester
A hook to run the tester for a collection of objects and produce a full test report
running - Variable in class javalib.funworld.MyTimer
 
runReport(Object, boolean, boolean) - Static method in class tester.Tester
A hook to run the tester for any object and produce a test report.
runReports(boolean, boolean, Object...) - Static method in class tester.Tester
A hook to run the tester for a collection of objects and produce the specified test reports
runTests(IExamples, boolean, boolean) - Method in class tester.Tester
Run the tests, accept the class to be tested as a visitor

S

same(T) - Method in interface tester.ISame
Is this object the same as that?
same(Object, Object) - Method in class tester.Tester
Provide a general extensional equality comparison for arbitrary pair of objects
same(WorldImage) - Method in class javalib.worldimages.AImage
Do two WorldImages appear the same? If they're equal as expression trees, they certainly appear the same.
same(WorldImage) - Method in interface javalib.worldimages.WorldImage
Is this the same as another WorldImage, in the sense that they render the same?
sameClass(Object) - Method in class javalib.worldimages.AImage
Is this the same class as some other object?
SampleImages - Class in javalib.worldimages
A home for sample images students can use without worrying about files and URL's.
SampleImages() - Constructor for class javalib.worldimages.SampleImages
 
save(String) - Method in class javalib.worldimages.AImage
 
save(String) - Method in class javalib.worldimages.RasterImage
 
save(String) - Method in interface javalib.worldimages.WorldImage
Save a WorldImage to a .png file.
scaled(double) - Method in class javalib.worldimages.AImage
Produce a copy of this image scaled by the specified factor.
scaled(double, double) - Method in class javalib.worldimages.AImage
Produce a copy of this image scaled differently in x and y dimensions.
scaled(double) - Method in interface javalib.worldimages.WorldImage
get a uniformly scaled copy of the image.
scaled(double, double) - Method in interface javalib.worldimages.WorldImage
get a non-uniformly scaled copy of the image.
schemeLogo - Static variable in class javalib.worldimages.SampleImages
 
setBufferSize(int, int) - Method in class javalib.worldcanvas.AppletCanvas
Sets the size of the buffered image to the given height and width.
setBufferSize(int, int) - Method in class javalib.worldcanvas.CanvasPanel
Sets the size of the buffered image to the given height and width.
setFocusable(boolean) - Method in class javalib.worldcanvas.AppletCanvas
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
setFocusable(boolean) - Method in class javalib.worldcanvas.CanvasPanel
Overrides to delegate to the inner panel that is the panel returned by getInnerPanel().
setIsApplet(boolean) - Static method in class javalib.worldimages.FromFileImage
Record whether we're in an applet.
setRendering(BufferedImage) - Method in class javalib.worldimages.RasterImage
Setter so subclasses can fill in the rendering later.
setSpeed() - Method in class javalib.funworld.MyTimer
A helper method to convert the speed given as a delay time into milliseconds
setTolerance(double) - Method in class tester.Tester
Set the relative tolerance for the comparison of inexact numbers
setWidthHeight() - Method in class javalib.worldimages.TextImage
Compute and set the width and the height for this text in the given style and size.
shark - Static variable in class javalib.worldimages.SampleImages
 
show() - Method in class javalib.worldcanvas.WorldCanvas
Show the window with the canvas cleared
show() - Method in class javalib.worldimages.AImage
Display the image in a new window by itself.
show() - Method in interface javalib.worldimages.WorldImage
Display an image in a canvas.
SOLID - Static variable in enum javalib.worldimages.Mode
A synonym for FILLED.
solid - Static variable in enum javalib.worldimages.Mode
A synonym for FILLED.
speed - Variable in class javalib.funworld.MyTimer
the timer speed
stickFigure - Static variable in class javalib.worldimages.SampleImages
 
stopTimer() - Method in class javalib.funworld.MyTimer
 
stopTimer - Variable in class javalib.funworld.World
timer events not processed when the mouse event is processed
stopWorld() - Method in class javalib.funworld.World
Stop the world, close all listeners and the timer, draw the last Scene.
success() - Method in class tester.Tester
Test nothing, just report success.
success(String) - Method in class tester.Tester
Test nothing, just report success.

T

table - Static variable in class javalib.worldimages.LoadedImages
 
TestAImage - Class in javalib.worldimages
A bunch of test cases for various methods in AImage.
TestAImage() - Constructor for class javalib.worldimages.TestAImage
 
Tester - Class in tester
A test harness that compares arbitrary objects for extensional equality.
Tester() - Constructor for class tester.Tester
start with no tests and no failures
testEverything() - Static method in class javalib.worldimages.DrawTest
Run all test methods in the class.
testEverything() - Static method in class javalib.worldimages.TestAImage
Run all test methods in the class.
testGetPixelColor(Tester) - Method in class javalib.worldimages.TestAImage
 
testname - Variable in class tester.Tester
the name of the current test
testOnTick() - Method in class javalib.funworld.World
The onTick method is invoked only if the world exists.
testOperators(Tester) - Method in class javalib.worldimages.DrawTest
 
testOtherStuff(Tester) - Method in class javalib.worldimages.DrawTest
 
testPrimitives(Tester) - Method in class javalib.worldimages.DrawTest
 
testReport() - Method in class tester.Tester
Report on the number and nature of failed tests
tests(Tester) - Method in interface tester.IExamples
The method implemented by the user that invokes the test cases in the Tester class
testSame(Tester) - Method in class javalib.worldimages.TestAImage
Test the pixel-for-pixel equivalence of images.
TextImage - Class in javalib.worldimages
An image of some text.
TextStyle - Enum in javalib.worldimages
The available TextStyles are NORMAL (aka REGULAR), ITALIC, BOLD, and BOLD_ITALIC (aka ITALIC_BOLD).
theCanvas - Variable in class javalib.funworld.World
the canvas that displays the current world
theCanvas - Static variable in class javalib.worldcanvas.AppletCanvas
 
thisColor() - Method in class javalib.colors.Black
Provide the Color represented by this class
thisColor() - Method in class javalib.colors.Blue
Provide the Color represented by this class
thisColor() - Method in class javalib.colors.Green
Provide the Color represented by this class
thisColor() - Method in interface javalib.colors.IColor
Convert an IColor to java.awt.Color for use with standard Java libraries.
thisColor() - Method in class javalib.colors.Red
Provide the Color represented by this class
thisColor() - Method in class javalib.colors.Transparent
Provide the Color represented by this class
thisColor() - Method in class javalib.colors.White
Provide the Color represented by this class
thisColor() - Method in class javalib.colors.Yellow
Provide the Color represented by this class
timer - Variable in class javalib.funworld.MyTimer
the Timer that generates the time events
timerTasks - Variable in class javalib.funworld.MyTimer
The callback for the timer events
toIndentedString(String) - Method in class javalib.worldcanvas.AppletCanvas
Produce an indented String representation of this Canvas
toIndentedString(String) - Method in class javalib.worldcanvas.MyCanvas
Produce an indented String representation of this Canvas
toIndentedString(String) - Method in class javalib.worldcanvas.WorldCanvas
Produce an indented String representation of this Canvas
toIndentedString(String) - Method in class javalib.worldimages.CircleImage
 
toIndentedString(String) - Method in class javalib.worldimages.Crop
 
toIndentedString(String) - Method in class javalib.worldimages.EllipseImage
 
toIndentedString(String) - Method in class javalib.worldimages.FromFileImage
Produce a String that represents this image, indented by the given indent
toIndentedString(String) - Method in class javalib.worldimages.FromURLImage
 
toIndentedString(String) - Method in class javalib.worldimages.LinearImage
 
toIndentedString(String) - Method in class javalib.worldimages.OverlayImage
 
toIndentedString(String) - Method in class javalib.worldimages.PolygonImage
 
toIndentedString(String) - Method in class javalib.worldimages.Posn
 
toIndentedString(String) - Method in class javalib.worldimages.RasterImage
 
toIndentedString(String) - Method in class javalib.worldimages.RectangleImage
 
toIndentedString(String) - Method in class javalib.worldimages.TextImage
Produce a String that represents this image, indented by the given indent
toIndentedString(String) - Method in interface javalib.worldimages.WorldImage
Produce a String that represents this image, indented by the given indent.
toInt() - Method in enum javalib.worldimages.TextStyle
 
toString() - Method in class javalib.colors.Black
Produce a String representation of this color
toString() - Method in class javalib.colors.Blue
Produce a String representation of this color
toString() - Method in class javalib.colors.Green
Produce a String representation of this color
toString() - Method in class javalib.colors.Red
Produce a String representation of this color
toString() - Method in class javalib.colors.Transparent
Produce a String representation of this color
toString() - Method in class javalib.colors.White
Produce a String representation of this color
toString() - Method in class javalib.colors.Yellow
Produce a String representation of this color
toString() - Method in class javalib.worldcanvas.AppletCanvas
Produce a String representation of this Canvas
toString() - Method in class javalib.worldcanvas.MyCanvas
Produce a String representation of this Canvas
toString() - Method in class javalib.worldcanvas.WorldCanvas
Produce a String representation of this Canvas
toString() - Method in class javalib.worldimages.AImage
Convert the image to String form, for debugging purposes.
toString() - Method in class javalib.worldimages.Posn
 
toString() - Method in interface javalib.worldimages.WorldImage
Produce a String that represents this image.
Transparent - Class in javalib.colors
To represent the entirely-transparent color.
Transparent() - Constructor for class javalib.colors.Transparent
 
transparent - Static variable in class javalib.worldimages.RasterImage
 
Traversal<T> - Interface in tester
An interface that defines a functional iterator for traversing datasets

V

valueOf(String) - Static method in enum javalib.worldimages.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum javalib.worldimages.TextStyle
Returns the enum constant of this type with the specified name.
values() - Static method in enum javalib.worldimages.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum javalib.worldimages.TextStyle
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION_1_0 - Static variable in interface javalib.funworld.Versions
 
Versions - Interface in javalib.funworld
Interface that records the changes in the library versions

W

w - Variable in class javalib.funworld.MyWindowClosingListener
 
warnings - Variable in class tester.Tester
the total number of warnings of inexact comparisons
White - Class in javalib.colors
To represent the white color -- in the style of ProfessorJ draw package.
White() - Constructor for class javalib.colors.White
 
WIDTH - Variable in class javalib.worldcanvas.AppletCanvas
The width and height for this buffered panel.
WIDTH - Variable in class javalib.worldcanvas.CanvasPanel
The width and height for this buffered panel.
width - Variable in class javalib.worldcanvas.MyCanvas
the width of the panel
width - Variable in class javalib.worldcanvas.WorldCanvas
the width of the panel
width - Variable in class javalib.worldimages.ImageMaker
 
winapt - Variable in class javalib.worldcanvas.WorldCanvas
A WindowAdapter that allows us to close a window and re-open, provided there is at least one open window.
windowClosing(WindowEvent) - Method in class javalib.funworld.MyWindowClosingListener
 
WINDOWS_OPEN - Static variable in class javalib.worldcanvas.WorldCanvas
records the number of canvases currently open
World - Class in javalib.funworld
World for programming interactive games - with graphics, key events, mouse events and a timer.
World() - Constructor for class javalib.funworld.World
The default constructor.
WorldCanvas - Class in javalib.worldcanvas
Functional Canvas - allows the drawing of shapes, lines, and text in the window of the given size, window closing and re-opening.
WorldCanvas(int, int, String) - Constructor for class javalib.worldcanvas.WorldCanvas
Construct a new frame with the CanvasPanel panel as its component.
WorldCanvas(int, int) - Constructor for class javalib.worldcanvas.WorldCanvas
Create a new canvas with the default title "Canvas"
WorldEnd - Class in javalib.worldimages
The class to represent a pair of values boolean and WorldImage.
WorldEnd(boolean, WorldImage) - Constructor for class javalib.worldimages.WorldEnd
The standard full constructor.
worldEnds() - Method in class javalib.funworld.Animation
User shouldn't need to use or override this method.
worldEnds(Model) - Method in class javalib.funworld.Animation
Decide whether the animation should end yet, and if so, what the final window should look like.
worldEnds() - Method in class javalib.funworld.World
This method is invoked at each tick.
worldEnds - Variable in class javalib.worldimages.WorldEnd
the indicator whether the world should end: true if the world should end, false if the world goes on
WorldImage - Interface in javalib.worldimages
The API for an image.

X

x - Variable in class javalib.worldimages.Posn
 
xcoord - Variable in class javalib.worldimages.PolygonImage
 
xReflected() - Method in class javalib.worldimages.AImage
Produce a copy of this image reflected left to right, in place.
xReflected() - Method in interface javalib.worldimages.WorldImage
get a horizontally-reflected copy of the image.

Y

y - Variable in class javalib.worldimages.Posn
 
ycoord - Variable in class javalib.worldimages.PolygonImage
 
Yellow - Class in javalib.colors
To represent the yellow color -- in the style of ProfessorJ draw package.
Yellow() - Constructor for class javalib.colors.Yellow
 
yReflected() - Method in class javalib.worldimages.AImage
 
yReflected() - Method in interface javalib.worldimages.WorldImage
get a vertically-reflected copy of the image.

A B C D E F G H I J K L M N O P R S T V W X Y