org.htmlparser.lexerapplications.thumbelina
Class TileSet
Class to track picture regions.
protected Vector | mRegions - The list of Pictures.
|
void | add(Picture r) - Add a single picture to the list.
|
void | bringToTop(Picture picture) - Move the given picture to the top of the Z order.
|
Enumeration | getPictures() - Get the list of pictures.
|
int | getSize() - Get the number of tiles in this collection.
|
Picture | pictureAt(int x, int y) - Find the Picture at position x,y
|
mRegions
protected Vector mRegions
The list of Pictures.
TileSet
public TileSet()
Construct a tile set.
add
public void add(Picture r)
Add a single picture to the list.
bringToTop
public void bringToTop(Picture picture)
Move the given picture to the top of the Z order.
picture
- The picture to add.
getPictures
public Enumeration getPictures()
Get the list of pictures.
- An enumeration over the picture objects in this set.
getSize
public int getSize()
Get the number of tiles in this collection.
- The number of pictures showing.
Note that the same image and URL may be showing
(different pieces) in several locations.
pictureAt
public Picture pictureAt(int x,
int y)
Find the Picture at position x,y
x
- The x coordinate of the point to examine.y
- The y coordinate of the point to examine.
- The picture at that point, or
null
if there are none.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |