Htmlparser Learning (original)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.