public abstract class Layer
extends java.lang.Object
TiledMap layers| Modifier 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  TiledMapof this layer | 
| LayerType | getLayerType() | 
| java.lang.String | getName()Returns the name of this layer | 
| com.badlogic.gdx.utils.ObjectMap<java.lang.String,java.lang.String> | getProperties()Returns the properties  ObjectMapof thisLayer | 
| java.lang.String | getProperty(java.lang.String propertyName)Returns the value of a specified property | 
| boolean | isVisible()Returns if this  Layeris visible | 
| void | setIndex(int index)Sets the index in the  TiledMapof 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  Layeris 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 com.badlogic.gdx.utils.ObjectMap<java.lang.String,java.lang.String> getProperties()
ObjectMap of this Layerpublic boolean isVisible()
Layer is visiblepublic void setVisible(boolean visible)
Layer is visiblevisible - True if visiblepublic LayerType getLayerType()