--thumbelina.jar This is a demo image search and Display applet JFrame
Preferences.usernodeforpackage (GetClass ()); Creates a preferences based on the path of the package in which the class is passed in
Prefs.flush (); Save to File
The string concatenation in the project uses StringBuilder more
The Lexer class is used to parse HTML-formatted strings into node
Mimage = Toolkit.getdefaulttoolkit (). createimage (bytes); Create a picture from byte[]
The rectangle feature is powerful and can be used to calculate overlap with another rectangle, and to get overlapping rectangles
File = File.createtempfile ("Thumbelina", suffix); File.deleteonexit (); Create a temporary file
The JViewport is used to view the "viewport" or "observation hole" of the underlying information. When scrolling, the moving part is referred to as a viewport. This seems to be viewed through the viewfinder of the camera. Moving the viewfinder up moves the interior of the top of the picture into view, and the contents of the bottom disappear.
Tile class English is tile, brick meaning, very image, interface programming, can get "brick" size and position rectangle, its status valid (valid/invalid), its ID, the project is the image corresponding URL
The picture class is responsible for downloading the image, and it implements the tile, which can be displayed in the Tileset. It also has the Picturelistener attribute, which can expose the change events of the picture state.
Picturelistener interface to monitor the status of pictures
Picturepanel class did not understand the role of embedded class watcher inside??
The Sequencer class puts the picture in the queue, and a thread periodically takes pictures of the queue and presents them.
Tileset class put the rectangle "tile" together to deal with some of the problems of overlapping rectangles, the image segmentation and integration part can not understand.
Main interface of Thumbelinaframe class program
The Thumbelina class is primarily about acquiring logic for pictures and links. 2014-6-3