A C D E F G H I J M P R S T U V

A

AboutDialog - Class in com.mebigfatguy.polycasso
a simple dialog that's a typical application about box information
AboutDialog() - Constructor for class com.mebigfatguy.polycasso.AboutDialog
creates the dialog
addImageGeneratedListener(ImageGeneratedListener) - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
allows interested parties to register to receive events when a new best image has been found.
addImageGeneratedListener(ImageGeneratedListener) - Method in interface com.mebigfatguy.polycasso.ImageGenerator
allows interested parties to register to receive events when a new best image has been found.
addPolygonData(long, PolygonData[]) - Method in class com.mebigfatguy.polycasso.GenerationHandler
add a sample polygon set to this generation with a given score

C

calculateDelta(BufferedImage) - Method in class com.mebigfatguy.polycasso.Feedback
returns a score of how close the test image is to the target which is the square of the error to the target image
clone() - Method in class com.mebigfatguy.polycasso.PolygonData
clones this polygon data data
clone() - Method in class com.mebigfatguy.polycasso.Settings
clones the Settings object
com.mebigfatguy.polycasso - package com.mebigfatguy.polycasso
 
compareTo(GenerationHandler.Member) - Method in class com.mebigfatguy.polycasso.GenerationHandler.Member
 
complete() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
completes the image by transforming the polygon image to the real image
complete() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
completes the image by transforming the polygon image to the real image

D

DEBUG - Static variable in class com.mebigfatguy.polycasso.Polycasso
enable some console debugging, and show the target image
DefaultImageGenerator - Class in com.mebigfatguy.polycasso
class that generates test images iteratively looking for the best image that matches a target.
DefaultImageGenerator(Settings, Image, Dimension) - Constructor for class com.mebigfatguy.polycasso.DefaultImageGenerator
creates an ImageGenerator for the given target image, and size
DoubleDocument - Class in com.mebigfatguy.polycasso
a Document model class for text components to only allow integer values
DoubleDocument() - Constructor for class com.mebigfatguy.polycasso.DoubleDocument
 
draw(Graphics2D) - Method in class com.mebigfatguy.polycasso.PolygonData
draws this polygondata on a specified graphics object

E

equals(Object) - Method in class com.mebigfatguy.polycasso.GenerationHandler.Member
 

F

Feedback - Class in com.mebigfatguy.polycasso
an immutable class for processing a test image against target image for closeness.
Feedback(BufferedImage) - Constructor for class com.mebigfatguy.polycasso.Feedback
creates a feedback object with a given targetImage.
fetchURLData(String) - Static method in class com.mebigfatguy.polycasso.URLFetcher
retrieve arbitrary data found at a specific url - either http or file urls for http requests, sets the user-agent to mozilla to avoid sites being cranky about a java sniffer
FileSelector - Class in com.mebigfatguy.polycasso
a class for picking a save as file name given the specified file type
FileSelector(FileType) - Constructor for class com.mebigfatguy.polycasso.FileSelector
constructs a selector of the given type
FileType - Enum in com.mebigfatguy.polycasso
an enum that represents possible save-as types
findImage() - Static method in class com.mebigfatguy.polycasso.RandomImageFinder
finds an image thru lycos image search
fireImageGenerated(Image) - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
informs all listeners that a new best image has been found
fireImageGenerated(Image) - Method in interface com.mebigfatguy.polycasso.ImageGenerator
informs all listeners that a new best image has been found

G

GenerationHandler - Class in com.mebigfatguy.polycasso
class that maintains the set of polygon data for this generation of images
GenerationHandler(Settings, Dimension) - Constructor for class com.mebigfatguy.polycasso.GenerationHandler
constructs a handler for managing successive generations of image samples
GenerationHandler.Member - Class in com.mebigfatguy.polycasso
class that holds a sample set of polygons and it's score
getAlpha() - Method in class com.mebigfatguy.polycasso.PolygonData
gets the transparency of this polygon: 0.0 is transparent, 1.0 is opaque
getBestData() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
retrieves the best set of polygons for drawing the image so far
getBestData() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
retrieves the best set of polygons for drawing the image so far
getBestMember() - Method in class com.mebigfatguy.polycasso.GenerationHandler
returns the best polygon set to draw the picture
getColor() - Method in class com.mebigfatguy.polycasso.PolygonData
retrieves the color of this polygon
getCoolingRate() - Method in class com.mebigfatguy.polycasso.Settings
gets how quickly the error cutoff decrements each generation
getData() - Method in class com.mebigfatguy.polycasso.Improver
get the list of polygons usually after attempted to be improved
getDescription() - Method in enum com.mebigfatguy.polycasso.FileType
returns the description for this file type
getEliteSize() - Method in class com.mebigfatguy.polycasso.Settings
gets the elite size, the number of members that are copied from one generation to another
getExtension() - Method in enum com.mebigfatguy.polycasso.FileType
returns the extension for this type
getFileName() - Method in class com.mebigfatguy.polycasso.FileSelector
shows a dialog to pick a save target.
getGenerationSize() - Method in class com.mebigfatguy.polycasso.Settings
gets the generation size
getHeight() - Method in class com.mebigfatguy.polycasso.ImageSizer
get the height of the image, waiting if necessary
getImage() - Method in class com.mebigfatguy.polycasso.ImageGeneratedEvent
retrieve the best image as described by this event
getImageSize() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
returns the image size that is being generated.
getImageSize() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
returns the image size that is being generated.
getMaxColorChange() - Method in class com.mebigfatguy.polycasso.Settings
gets the maximum color component change
getMaxImageSize() - Method in class com.mebigfatguy.polycasso.Settings
gets the maximum image size
getMaxPoints() - Method in class com.mebigfatguy.polycasso.Settings
gets the maximum number of points per polygon
getMaxPolygons() - Method in class com.mebigfatguy.polycasso.Settings
gets the maximum polygons that can be used to image the picture
getMaxPtMovement() - Method in class com.mebigfatguy.polycasso.Settings
gets the largest movement that any polygon point can make in one improvement attempt
getPolygon() - Method in class com.mebigfatguy.polycasso.PolygonData
retrieve the polygon (points) of this polygondata
getRandomImprovementType() - Method in class com.mebigfatguy.polycasso.ImprovementTypeStats
returns a random improvement type that is influenced by how successful the types have been in the past.
getRandomPolygonData(boolean) - Method in class com.mebigfatguy.polycasso.GenerationHandler
pick a random polygon sample either from the general pool or elite pool skew the results towards the elite
getSaver() - Method in enum com.mebigfatguy.polycasso.FileType
the action to save the file
getSettings() - Method in class com.mebigfatguy.polycasso.SettingsDialog
retrieves the settings set in the dialog by the user
getStartTemperature() - Method in class com.mebigfatguy.polycasso.Settings
gets the error below wich polygon samples can be included in a generation, even if not the best
getString(PolycassoBundle.Key) - Static method in class com.mebigfatguy.polycasso.PolycassoBundle
retrieves a string from a resource bundle given a key
getTargetImage() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
retrieves the scaled target iamge
getTargetImage() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
retrieves the scaled target iamge
getWidth() - Method in class com.mebigfatguy.polycasso.ImageSizer
get the width of the image, waiting if necessary

H

hashCode() - Method in class com.mebigfatguy.polycasso.GenerationHandler.Member
 

I

ImageCompleter - Class in com.mebigfatguy.polycasso
a class that transforms the current best polygon representation to the real image thru a time lapse blend transformation of the images
ImageCompleter(ImageGenerator, BufferedImage, PolygonData[], Dimension) - Constructor for class com.mebigfatguy.polycasso.ImageCompleter
create a completer to move the image from polygon form to real form
imageGenerated(ImageGeneratedEvent) - Method in interface com.mebigfatguy.polycasso.ImageGeneratedListener
a method to be implement that will give the interested party what image is now considered to be the best
imageGenerated(ImageGeneratedEvent) - Method in class com.mebigfatguy.polycasso.PainterFrame
implements the ImageGeneratedListener interface to redraw the new best image
ImageGeneratedEvent - Class in com.mebigfatguy.polycasso
an event object that is fired when a new test image has been found that is the best so far.
ImageGeneratedEvent(Object, Image) - Constructor for class com.mebigfatguy.polycasso.ImageGeneratedEvent
creates the event object with the source of the event as well as the image that is now the best image found.
ImageGeneratedListener - Interface in com.mebigfatguy.polycasso
an interface that interested parties should implement if they wish to be informed when a new best image has been found.
ImageGenerator - Interface in com.mebigfatguy.polycasso
interface that generates test images iteratively looking for the best image that matches a target.
ImageSizer - Class in com.mebigfatguy.polycasso
ensures that the fetching of the width or height of an image will always return a non negative number
ImageSizer(Image) - Constructor for class com.mebigfatguy.polycasso.ImageSizer
constructs an image sizer for the specified image
imageUpdate(Image, int, int, int, int, int) - Method in class com.mebigfatguy.polycasso.ImageSizer
implements the callback to collect the width and height of the image
ImprovementResult - Enum in com.mebigfatguy.polycasso
an enum that describes the result of an attempted improvement on an image
ImprovementType - Enum in com.mebigfatguy.polycasso
an enumeration of all the different improvement types that an ImageGenerator can attempt to make to an image.
ImprovementTypeStats - Class in com.mebigfatguy.polycasso
a class to keep track of success statistics by improvement type, in order to further tune what improvement types to try in the future.
ImprovementTypeStats() - Constructor for class com.mebigfatguy.polycasso.ImprovementTypeStats
creates an initial state of statistics
Improver - Class in com.mebigfatguy.polycasso
a class that applies various improvement attempts to a polygon, attempts to prioritize which algorithms to pick based on what has worked in the past, as well as priorities which polygons have had success being transformed.
Improver(Settings, GenerationHandler, Dimension) - Constructor for class com.mebigfatguy.polycasso.Improver
create an improver using a specified image size
improveRandomly() - Method in class com.mebigfatguy.polycasso.Improver
attempts to improve on one polygon randomly by adjusting it according to a randomly selected improvement type
insertString(int, String, AttributeSet) - Method in class com.mebigfatguy.polycasso.DoubleDocument
intercepts string insertions to make sure that the values to be put into a text component is only a positive double value
insertString(int, String, AttributeSet) - Method in class com.mebigfatguy.polycasso.IntegerDocument
intercepts string insertions to make sure that the values to be put into a text component is only an integer value
IntegerDocument - Class in com.mebigfatguy.polycasso
a Document model class for text components to only allow positive integer values
IntegerDocument() - Constructor for class com.mebigfatguy.polycasso.IntegerDocument
 
isOK() - Method in class com.mebigfatguy.polycasso.SettingsDialog
did the user click the ok button
isUseAnnealing() - Method in class com.mebigfatguy.polycasso.Settings
gets whether to use simulating annealing

J

JavaSaver - Class in com.mebigfatguy.polycasso
generates a java source code that draws the image with polygons in a JFrame
JavaSaver() - Constructor for class com.mebigfatguy.polycasso.JavaSaver
 

M

main(String[]) - Static method in class com.mebigfatguy.polycasso.Polycasso
the main entry point to the web start app

P

paintComponent(Graphics) - Method in class com.mebigfatguy.polycasso.PainterPanel
overrides the method to redraw this panel, so that the best generated image is shown
PainterFrame - Class in com.mebigfatguy.polycasso
the main window for showing the image as it is being improved on.
PainterFrame() - Constructor for class com.mebigfatguy.polycasso.PainterFrame
creates the main window, setups up menus and listeners
PainterPanel - Class in com.mebigfatguy.polycasso
the panel that holds the image considered to be the best representation of the target image so far.
PainterPanel() - Constructor for class com.mebigfatguy.polycasso.PainterPanel
 
PNGSaver - Class in com.mebigfatguy.polycasso
generates a png file from the set of polygons
PNGSaver() - Constructor for class com.mebigfatguy.polycasso.PNGSaver
 
Polycasso - Class in com.mebigfatguy.polycasso
the main web start application class
Polycasso() - Constructor for class com.mebigfatguy.polycasso.Polycasso
 
PolycassoBundle - Class in com.mebigfatguy.polycasso
manages the resource bundle properties file for this application
PolygonData - Class in com.mebigfatguy.polycasso
a class for holding the information for one polygon, including points, color and alpha level.
PolygonData(Color, float, Polygon) - Constructor for class com.mebigfatguy.polycasso.PolygonData
creates a polygon data structure with required information

R

RandomImageFinder - Class in com.mebigfatguy.polycasso
finds an image on the web to try to draw with polygons
randomPoly(Dimension, int) - Static method in class com.mebigfatguy.polycasso.PolygonData
creates a totally random polygon that is limited by the specified size
removeImageGeneratedListener(ImageGeneratedListener) - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
allows uninterested parties to unregister to receive events when a new best image is found
removeImageGeneratedListener(ImageGeneratedListener) - Method in interface com.mebigfatguy.polycasso.ImageGenerator
allows uninterested parties to unregister to receive events when a new best image is found
run() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
the runnable interface implementation to repeatedly improve upon the image and check to see if it is closer to the target image.
run() - Method in class com.mebigfatguy.polycasso.ImageCompleter
implements the Runnable interface to gradually fade in the real image over time

S

save(String, Dimension, PolygonData[]) - Method in class com.mebigfatguy.polycasso.JavaSaver
saves the polygon data as a java file that opens a JFrame and draws the polygons
save(String, Dimension, PolygonData[]) - Method in class com.mebigfatguy.polycasso.PNGSaver
saves the set of polygons in a png file
save(String, Dimension, PolygonData[]) - Method in interface com.mebigfatguy.polycasso.Saver
saves the set of polygons to some file
save(String, Dimension, PolygonData[]) - Method in class com.mebigfatguy.polycasso.SVGSaver
saves the set of polygons in an svg file
saveImage(FileType) - Method in class com.mebigfatguy.polycasso.PainterFrame
save the image to what ever format was chosen
Saver - Interface in com.mebigfatguy.polycasso
describes how the polygon data is to be save to a file in any one of a number of formats
setAlpha(float) - Method in class com.mebigfatguy.polycasso.PolygonData
sets the transparency of this polygon: 0.0 is transparent, 1.0 is opaque
setColor(Color) - Method in class com.mebigfatguy.polycasso.PolygonData
sets the color of this polygon
setCoolingRate(double) - Method in class com.mebigfatguy.polycasso.Settings
sets how quickly the error cutoff decrements each generation
setEliteSize(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the elite size, the number of members that are copied from one generation to another
setGenerationSize(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the generation size
setImage(Image) - Method in class com.mebigfatguy.polycasso.PainterPanel
sets the best generated image thus far.
setMaxColorChange(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the maximum color component change
setMaxImageSize(Dimension) - Method in class com.mebigfatguy.polycasso.Settings
sets the maximum image size
setMaxPoints(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the maximum number of points per polygon
setMaxPolygons(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the maximum polygons that can be used to image the picture
setMaxPtMovement(int) - Method in class com.mebigfatguy.polycasso.Settings
sets the largest movement that any polygon point can make in one improvement attempt
setStartTemperature(double) - Method in class com.mebigfatguy.polycasso.Settings
sets the error below which polygon samples can be included in a generation, even if not the best
setTarget(Image) - Method in class com.mebigfatguy.polycasso.PainterPanel
set the ideal image that we are trying to generate.
Settings - Class in com.mebigfatguy.polycasso
a simple java bean holding settings that are used to control how Polycasso runs
Settings() - Constructor for class com.mebigfatguy.polycasso.Settings
constructs a settings object with rational defaults
SettingsDialog - Class in com.mebigfatguy.polycasso
a simple dialog to allow for the editing of various settings used to control how Polycasso works.
SettingsDialog(Settings) - Constructor for class com.mebigfatguy.polycasso.SettingsDialog
constructs the dialog using the passed in settings to set default values
setUseAnnealing(boolean) - Method in class com.mebigfatguy.polycasso.Settings
sets whether to use simulated annealing
startGenerating() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
starts up threads to start looking for images that are closest to the target
startGenerating() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
starts up threads to start looking for images that are closest to the target
stopGenerating() - Method in class com.mebigfatguy.polycasso.DefaultImageGenerator
shuts down threads that were looking for images
stopGenerating() - Method in interface com.mebigfatguy.polycasso.ImageGenerator
shuts down threads that were looking for images
SVGSaver - Class in com.mebigfatguy.polycasso
generates an svg file from the set of polygons
SVGSaver() - Constructor for class com.mebigfatguy.polycasso.SVGSaver
 

T

toString() - Method in class com.mebigfatguy.polycasso.GenerationHandler.Member
 
toString() - Method in class com.mebigfatguy.polycasso.ImprovementTypeStats
builds a string of all the different types success statistics
toString() - Method in class com.mebigfatguy.polycasso.PolygonData
 
typeWasSuccessful(ImprovementType, boolean) - Method in class com.mebigfatguy.polycasso.ImprovementTypeStats
increment a type's statistics whether success or fail
typeWasSuccessful(ImprovementType, boolean) - Method in class com.mebigfatguy.polycasso.Improver
updates the stats for types that successfully improved the image

U

URLFetcher - Class in com.mebigfatguy.polycasso
manages downloading data from a url

V

valueOf(String) - Static method in enum com.mebigfatguy.polycasso.FileType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mebigfatguy.polycasso.ImprovementResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mebigfatguy.polycasso.ImprovementType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mebigfatguy.polycasso.FileType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mebigfatguy.polycasso.ImprovementResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mebigfatguy.polycasso.ImprovementType
Returns an array containing the constants of this enum type, in the order they are declared.

A C D E F G H I J M P R S T U V

Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.