|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.tiling.IlvTile
public class IlvTile
A tile represents an elementary rectangular area that is loaded
or released when needed by the application. Tiles are managed
by an IlvTileController.
In most cases, the tile controller will be associated with an
IlvTiledLayer. This means that the tiles represent
areas that must be filled with graphic objects when they become
visible due to the user of the application scrolling or zooming
on a view.
More sophisticated applications can use a tile controller without attaching it to a layer, for example, to load data that is needed to process an area that becomes visible.
IlvTileController,
IlvTiledLayer| Field Summary | |
|---|---|
static int |
CACHED
The status of a cached tile. |
static int |
EMPTY
The status of an empty tile (neither loaded nor cached). |
static int |
LOCKED
The status of a locked tile. |
| Constructor Summary | |
|---|---|
IlvTile(int column,
int row,
IlvTileController controller)
Constructs a tile whose column and row are specified. |
|
| Method Summary | |
|---|---|
void |
addObject(IlvGraphic g,
Object id)
Adds a graphic object to an IlvTiledLayer. |
void |
boundingBox(IlvRect rect)
Returns the bounding box of the tile in the manager coordinate system. |
void |
deleteAll()
Empties the tile except for the objects that are shared by another non empty tile. |
boolean |
equals(Object o)
Returns true if the tile is equal to the object. |
int |
getColumn()
Returns the column of the tile. |
IlvTileController |
getController()
Returns the controller of the tile. |
Enumeration |
getLocks()
Returns the enumeration of objects that have locked the tile. |
IlvGraphic |
getObject(Object id)
Returns the object of the specified id if it is already loaded in the layer. |
int |
getRow()
Returns the row of the tile. |
int |
getStatus()
Returns the status of the tile. |
int |
hashCode()
Returns the hash code of the tile. |
boolean |
isLoadComplete()
Returns true if the tile is fully loaded. |
boolean |
isObjectShared(IlvGraphic object)
Returns true if the object is shared by other tiles. |
void |
loadComplete()
Notifies the tile that it has been fully loaded, thus, the method must be called by the tile loaders. |
void |
notifyError(Throwable errorReason)
Notifies the tile that an error occurred. |
void |
reDraw()
Redraws a tile. |
void |
removeObject(IlvGraphic g)
Removes the specified object from the tile. |
String |
toString()
Returns the tile description |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int EMPTY
public static final int LOCKED
public static final int CACHED
| Constructor Detail |
|---|
public IlvTile(int column,
int row,
IlvTileController controller)
| Method Detail |
|---|
public final int getColumn()
public final int getRow()
public final int getStatus()
EMPTY,
CACHED,
LOCKEDpublic void boundingBox(IlvRect rect)
public boolean equals(Object o)
true if the tile is equal to the object.
equals in class Objecto - The object to compare with the tilepublic int hashCode()
hashCode in class Objectpublic IlvTileController getController()
public void addObject(IlvGraphic g,
Object id)
IlvTiledLayer.
When implementing an IlvTileLoader, objects should
not be added to a manager using IlvManager.addObject.
This method must be called only if the tile controller is
attached to a layer.
g - The graphic object to addid - The id of the object. This parameter can take the
null value.getObject(java.lang.Object),
IlvTileLoaderpublic void deleteAll()
public void removeObject(IlvGraphic g)
public void reDraw()
public IlvGraphic getObject(Object id)
id - The id of the objectaddObject(ilog.views.IlvGraphic, java.lang.Object)public boolean isObjectShared(IlvGraphic object)
true if the object is shared by other tiles.
This method must be called only if the tile controller is
attached to a layer.
object - The graphic objectpublic Enumeration getLocks()
IlvTileController.lockTile(int, int, java.lang.Object)public boolean isLoadComplete()
true if the tile is fully loaded.
loadComplete()public void loadComplete()
IlvTileLoaderpublic void notifyError(Throwable errorReason)
errorReason - The reason of the errorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||