public class IlvDataTile extends Object
IlvDataTile
instance is created and controlled by an
IlvDataTileController
object. A tile is described by an interval
along the x-axis, as well as an integer identifier computed according to
the tile origin of its associated controller.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.
|
Modifier and Type | Method and Description |
---|---|
IlvDataTileController |
getController()
Returns the controller of the tile.
|
int |
getindex()
Returns the ID of the tile.
|
Integer |
getIndex()
Returns the ID of the tile.
|
Iterator |
getLocks()
Returns an iterator over the objects that have locked the tile.
|
IlvDataInterval |
getRange()
Returns the interval covered by the tile.
|
int |
getStatus()
Returns the status of the tile.
|
int |
hashCode()
Returns the hash code of the tile.
|
boolean |
isLoadComplete()
Indicates whether the tile loading has been completed.
|
boolean |
isLocked()
Indicates whether the tile is locked.
|
boolean |
isLocked(Object lock)
Indicates whether the tile is locked by the specified object.
|
void |
loadComplete()
Notifies the tile that its loading is completed.
|
void |
lock(Object lock)
Locks the tile.
|
void |
notifyLoadError(Throwable errorReason)
Notifies the tile that an error occurred during loading.
|
void |
setData(IlvDoublePoints dataPts)
Fills the tile with the specified data.
|
String |
toString()
Returns a string representation of the tile.
|
boolean |
unlock(Object lock)
Removes the specified lock from the tile.
|
public static final int EMPTY
getStatus()
,
Constant Field Valuespublic static final int LOCKED
getStatus()
,
Constant Field Valuespublic static final int CACHED
getStatus()
,
Constant Field Valuespublic final IlvDataTileController getController()
public final int getindex()
public final Integer getIndex()
public final IlvDataInterval getRange()
public final int getStatus()
public final boolean isLocked()
getStatus()
public final boolean isLocked(Object lock)
public void lock(Object lock)
lock
- The object requesting a lock on the tile.public boolean unlock(Object lock)
lock
- The considered lock.public Iterator getLocks()
public final boolean isLoadComplete()
loadComplete()
public void loadComplete()
public void notifyLoadError(Throwable errorReason)
errorReason
- The reason of the error.DataTileEvent.ERROR
public void setData(IlvDoublePoints dataPts)
dataPts
- The new data for the tile. Data previously stored are
replaced by this method.public int hashCode()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.