public class Tileset extends CustomPropertyProvider implements ITileset
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION |
protected Tileset |
sourceTileset |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTile(int tileId) |
boolean |
containsTile(ITile tile) |
boolean |
containsTile(ITilesetEntry entry) |
void |
finish(java.net.URL location) |
int |
getColumns() |
int |
getFirstGridId()
Gets the first grid id.
|
IMapImage |
getImage()
Gets the image.
|
int |
getMargin()
Gets the margin.
|
java.lang.String |
getName()
Gets the name.
|
java.util.Map<java.lang.String,ICustomProperty> |
getProperties()
Returns a
Map view of the custom properties for this ICustomPropertyProvider. |
int |
getSpacing()
Gets the spacing.
|
Spritesheet |
getSpritesheet() |
ITerrain[] |
getTerrain(int tileId) |
java.util.List<ITerrain> |
getTerrainTypes() |
ITilesetEntry |
getTile(int id) |
int |
getTileCount() |
java.awt.Dimension |
getTileDimension()
Gets the tile dimension.
|
int |
getTileHeight()
Gets the tile height.
|
ITileOffset |
getTileOffset() |
int |
getTileWidth()
Gets the tile width.
|
boolean |
isExternal() |
void |
load(java.util.List<Tileset> rawTilesets) |
void |
saveSource(java.lang.String basePath) |
void |
setName(java.lang.String name) |
void |
updateTileTerrain() |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValuepublic static final java.lang.String FILE_EXTENSION
protected Tileset sourceTileset
public Tileset()
public Tileset(Tileset source)
public java.util.Map<java.lang.String,ICustomProperty> getProperties()
ICustomPropertyProviderMap view of the custom properties for this ICustomPropertyProvider.getProperties in interface ICustomPropertyProvidergetProperties in class CustomPropertyProviderMap view of the custom properties for this ICustomPropertyProviderpublic int getFirstGridId()
ITilesetgetFirstGridId in interface ITilesetpublic int getMargin()
public java.lang.String getName()
Resourcepublic int getSpacing()
getSpacing in interface ITilesetpublic Spritesheet getSpritesheet()
getSpritesheet in interface ITilesetpublic java.awt.Dimension getTileDimension()
ITilesetgetTileDimension in interface ITilesetpublic int getTileHeight()
getTileHeight in interface ITilesetpublic int getTileWidth()
getTileWidth in interface ITilesetpublic void finish(java.net.URL location)
throws TmxException
TmxExceptionpublic java.util.List<ITerrain> getTerrainTypes()
getTerrainTypes in interface ITilesetpublic ITerrain[] getTerrain(int tileId)
getTerrain in interface ITilesetpublic int getColumns()
getColumns in interface ITilesetpublic ITileOffset getTileOffset()
getTileOffset in interface ITilesetpublic int getTileCount()
getTileCount in interface ITilesetpublic ITilesetEntry getTile(int id)
public boolean containsTile(ITile tile)
containsTile in interface ITilesetpublic boolean containsTile(int tileId)
containsTile in interface ITilesetpublic void saveSource(java.lang.String basePath)
public boolean isExternal()
public void load(java.util.List<Tileset> rawTilesets)
public void updateTileTerrain()
public boolean containsTile(ITilesetEntry entry)
containsTile in interface ITileset