Class TileSet
java.lang.Object
org.htmlparser.lexerapplications.thumbelina.TileSet
Class to track picture regions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a single picture to the list.void
bringToTop
(Picture picture) Move the given picture to the top of the Z order.Get the list of pictures.int
getSize()
Get the number of tiles in this collection.pictureAt
(int x, int y) Find the Picture at position x,y
-
Field Details
-
mRegions
The list of Pictures.
-
-
Constructor Details
-
TileSet
public TileSet()Construct a tile set.
-
-
Method Details
-
getSize
public int getSize()Get the number of tiles in this collection.- Returns:
- The number of pictures showing. Note that the same image and URL may be showing (different pieces) in several locations.
-
getPictures
Get the list of pictures.- Returns:
- An enumeration over the picture objects in this set.
-
add
Add a single picture to the list.- Parameters:
r
- The picture to add.
-
pictureAt
Find the Picture at position x,y- Parameters:
x
- The x coordinate of the point to examine.y
- The y coordinate of the point to examine.- Returns:
- The picture at that point, or
null
if there are none.
-
bringToTop
Move the given picture to the top of the Z order.- Parameters:
picture
- The picture to add.
-