public class IlvFreeTile extends IlvTile implements IlvPersistentObject
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
,
Serialized FormConstructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
addObject, getColumn, getController, getLocks, getObject, getRow, getStatus, isLoadComplete, loadComplete, notifyError, removeObject
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
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.public int hashCode()
public void deleteAll()
public void reDraw()
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.isObjectShared
in class IlvTile
object
- The graphic objectpublic boolean isPersistent()
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.