HTML Parser Home Page

org.htmlparser.lexerapplications.thumbelina
Interface Tile

All Superinterfaces:
Cloneable
All Known Implementing Classes:
Picture

public interface Tile
extends Cloneable

Specifies the interface for Tile objects handled by the TileSet class. Basically a Rectangle with auxillary attributes.


Method Summary
 Object clone()
          Clone this object.
 Rectangle getBounds()
          Get the rectangular region for this tile.
 Object getIdentity()
          Return the distinguishing identity for this tile.
 boolean getValid()
           
 void reset()
          Reset the tile to it's uncropped size.
 void setBounds(Rectangle rectangle)
          Set the rectangular region for this tile.
 void setIdentity(Object object)
          Set the distinguishing identity for this tile.
 void setValid(boolean valid)
          Sets the validity of the tile.
 

Method Detail

getBounds

Rectangle getBounds()
Get the rectangular region for this tile.

Returns:
A rectangle boundary.

setBounds

void setBounds(Rectangle rectangle)
Set the rectangular region for this tile. Crops the tile to the size provided.

Parameters:
rectangle - The new boundary.

getValid

boolean getValid()

setValid

void setValid(boolean valid)
Sets the validity of the tile.

Parameters:
valid - If true the tile is marked valid, false otherwise.

getIdentity

Object getIdentity()
Return the distinguishing identity for this tile.

Returns:
An object suitable for use in hashing or testing for equality.

setIdentity

void setIdentity(Object object)
Set the distinguishing identity for this tile. This will usually have semantic meaning for the tile, so it should be of the type expected by the implementing class.

Parameters:
object - An object defining this tile's identity.

reset

void reset()
Reset the tile to it's uncropped size.


clone

Object clone()
Clone this object. Exposes java.lang.Object clone() as a public method.

Returns:
A clone of this object.

© 2006 Derrick Oswald
Sep 17, 2006

HTML Parser is an open source library released under Common Public License. SourceForge.net