|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.tiling.IlvTile
ilog.views.tiling.IlvFreeTile
public class IlvFreeTile
A tile represents an elementary rectangular area that is loaded
or released when needed by the application. Tiles are managed
by an IlvTileController.
The tile controller has two modes: grid mode or free mode.
In grid mode, the tiles are organized in rows and columns.
Tiles of class IlvTile are allocated automatically in
this mode as needed.
In free mode, the tiles have no special organization but are
just a collection of rectangles. In free mode, tiles of class
IlvFreeTile must be added to the tile controller before
the tiling can starts.
Since the IlvFreeTile is only used in free mode of the
tile controller, the row and column index of the tile has no meaning.
IlvTile,
IlvTileController,
IlvTiledLayer| Field Summary |
|---|
| Fields inherited from class ilog.views.tiling.IlvTile |
|---|
CACHED, EMPTY, LOCKED |
| Constructor Summary | |
|---|---|
IlvFreeTile(IlvInputStream stream)
Constructs a tile from an IlvInputStream.. |
|
IlvFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller)
Constructs a free tile whose bounds are specified. |
|
IlvFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller,
int row,
int column)
Constructs a free tile whose bounds are specified. |
|
| Method Summary | |
|---|---|
void |
boundingBox(IlvRect rect)
Returns the bounding box of the tile in the manager coordinate system. |
void |
boundingPoints(Point2D.Double p1,
Point2D.Double p2)
Sets the bounding box of the tile. |
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 |
hashCode()
Returns the hash code of the tile. |
boolean |
isObjectShared(IlvGraphic object)
Returns true if the object is shared by other tiles. |
boolean |
isPersistent()
Returns true if the object must be saved by a tile controller. |
void |
reDraw()
Redraws a tile. |
String |
toString()
Returns the tile description |
void |
write(IlvOutputStream stream)
Writes the tile loader to an IlvOutputStream |
| Methods inherited from class ilog.views.tiling.IlvTile |
|---|
addObject, getColumn, getController, getLocks, getObject, getRow, getStatus, isLoadComplete, loadComplete, notifyError, removeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller)
public IlvFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller,
int row,
int column)
public IlvFreeTile(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream..
IlvReadFileException| Method Detail |
|---|
public void boundingBox(IlvRect rect)
boundingBox in class IlvTile
public void boundingPoints(Point2D.Double p1,
Point2D.Double p2)
p1 - a point defining x and y min of the boxp2 - a point defining x and y max of the boxpublic boolean equals(Object o)
true if the tile is equal to the object.
equals in class IlvTileo - The object to compare with the tilepublic int hashCode()
hashCode in class IlvTilepublic void deleteAll()
deleteAll in class IlvTilepublic void reDraw()
reDraw in class IlvTilepublic 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.
isObjectShared in class IlvTileobject - The graphic objectpublic String toString()
toString in class IlvTilepublic boolean isPersistent()
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||