public abstract class Layer
extends java.lang.Object
TiledMap
layersModifier and Type | Method and Description |
---|---|
boolean |
containsProperty(java.lang.String propertyName)
Returns if the layer contains the specified property
|
int |
getIndex()
Returns the index in the
TiledMap of this layer |
LayerType |
getLayerType() |
java.lang.String |
getName()
Returns the name of this layer
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns the properties
Map of this Layer |
java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of a specified property
|
boolean |
isVisible()
Returns if this
Layer is visible |
void |
setIndex(int index)
Sets the index in the
TiledMap of this layer |
void |
setName(java.lang.String name)
Sets the name of this layer
|
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Sets the value of a specified property
|
void |
setVisible(boolean visible)
Sets if this
Layer is visible |
public Layer(LayerType layerType)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to setpublic int getIndex()
TiledMap
of this layerpublic void setIndex(int index)
TiledMap
of this layerindex
- The index of the layerpublic boolean containsProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic java.lang.String getProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic void setProperty(java.lang.String propertyName, java.lang.String value)
propertyName
- The property name to set the value forvalue
- The value of the property to setpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
Map
of this Layer
public boolean isVisible()
Layer
is visiblepublic void setVisible(boolean visible)
Layer
is visiblevisible
- True if visiblepublic LayerType getLayerType()