public class IlvTile extends Object
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
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
IlvTile(int column,
int row,
IlvTileController controller)
Constructs a tile whose column and row are specified.
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final int EMPTY
public static final int LOCKED
public static final int CACHED
public IlvTile(int column, int row, IlvTileController controller)
public final int getColumn()
public final int getRow()
public final int getStatus()
public void boundingBox(IlvRect rect)
public boolean equals(Object o)
true
if the tile is equal to the object.public int hashCode()
public 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)
,
IlvTileLoader
public 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()
public boolean isLoadComplete()
true
if the tile is fully loaded.loadComplete()
public void loadComplete()
IlvTileLoader
public void notifyError(Throwable errorReason)
errorReason
- The reason of the error© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.