public class IlvMapFreeTile extends IlvFreeTile
IlvMapFreeTile
represents a free tile that applies the style
of a map layer to IlvGraphic
components before adding them to an
IlvTiledLayer
.Constructor and Description |
---|
IlvMapFreeTile(IlvInputStream stream)
Constructs a stylable free tile from an input stream.
|
IlvMapFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller)
Constructs a free tile whose bounds are specified.
|
IlvMapFreeTile(Point2D tileP1,
Point2D tileP2,
IlvTileController controller,
int row,
int column)
Constructs a free tile whose bounds, row, and column indices are
specified.
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(IlvGraphic g,
Object id)
Overrides the
addObject method in the
IlvFreeTile class so the IlvMapStyle of
the IlvMapLayer containing the IlvTiledLayer
of this tile is applied to every IlvGraphic object added
to the tile. |
void |
removeObject(IlvGraphic g)
Overrides the
removeObject method in the
IlvFreeTile class to remove the reference to
IlvMapStyle . |
boundingBox, boundingPoints, deleteAll, equals, hashCode, isObjectShared, isPersistent, reDraw, toString, write
getColumn, getController, getLocks, getObject, getRow, getStatus, isLoadComplete, loadComplete, notifyError
public IlvMapFreeTile(Point2D tileP1, Point2D tileP2, IlvTileController controller)
This tile is created to be used with controller
.
tileP1
- The upper left coordinate of the tiletileP2
- The lower right coordinate of the tilecontroller
- The IlvTileController
object this tile
will be added to.public IlvMapFreeTile(Point2D tileP1, Point2D tileP2, IlvTileController controller, int row, int column)
This tile is created to be used with controller
.
tileP1
- The upper left coordinate of the tile.tileP2
- The lower right coordinate of the tile.controller
- The IlvTileController
instance this tile
will be added to.row
- The row index of this tilecolumn
- The column index of this tilepublic IlvMapFreeTile(IlvInputStream stream) throws IlvReadFileException
stream
- The IlvInputStream
to construct this tile
from.IlvReadFileException
- if an error was encountered when
deserializing this object.public void addObject(IlvGraphic g, Object id)
addObject
method in the
IlvFreeTile
class so the IlvMapStyle
of
the IlvMapLayer
containing the IlvTiledLayer
of this tile is applied to every IlvGraphic
object added
to the tile.addObject
in class IlvTile
g
- The graphic object to addid
- The id of the object. This parameter can take a
null
value.IlvTile.getObject(java.lang.Object)
,
IlvTileLoader
public void removeObject(IlvGraphic g)
removeObject
method in the
IlvFreeTile
class to remove the reference to
IlvMapStyle
.removeObject
in class IlvTile
g
- The graphic object to remove.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.