public class TileSet
extends java.lang.Object
构造器和说明 |
---|
TileSet()
Construct a tile set.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.util.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
|
public int getSize()
public java.util.Enumeration getPictures()
public void add(Picture r)
r
- The picture to add.public Picture pictureAt(int x, int y)
x
- The x coordinate of the point to examine.y
- The y coordinate of the point to examine.null
if there are none.public void bringToTop(Picture picture)
picture
- The picture to add.