Constructor and Description |
---|
TiledObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String propertyName)
Returns if the object contains the specified property
|
int |
getGid()
Returns the GID of this object
|
int |
getHeight()
Returns the height of this object in pixels
|
String |
getName()
Returns the name of this object
|
String |
getPolygon() |
String |
getPolyline() |
String |
getProperty(String propertyName)
Returns the value of a specified property
|
String |
getType()
Returns the type of this object
|
int |
getWidth()
Returns the width of this object in pixels
|
int |
getX()
Returns the x coordinate of this object in pixels
|
int |
getY()
Returns the y coordinate of this object in pixels
|
void |
setGid(int gid)
Sets the GID of this object
|
void |
setHeight(int height)
Sets the height of this object in pixels
|
void |
setName(String name)
Sets the name of this object
|
void |
setPolygon(String polygon) |
void |
setPolyline(String polyline) |
void |
setProperty(String propertyName,
String value)
Sets the value of a specified property
|
void |
setType(String type)
Sets the type of this object
|
void |
setWidth(int width)
Sets the width of this object in pixels
|
void |
setX(int x)
Sets the x coordinate of this object in pixels
|
void |
setY(int y)
Sets the y coordinate of this object in pixels
|
public boolean containsProperty(String propertyName)
propertyName
- The property name to search forpublic String getProperty(String propertyName)
propertyName
- The property name to search forpublic void setProperty(String propertyName, String value)
propertyName
- The property name to set the value forvalue
- The value of the property to setpublic String getName()
public void setName(String name)
name
- The name to setpublic String getType()
public void setType(String type)
type
- public int getX()
public void setX(int x)
x
- public int getY()
public void setY(int y)
y
- public int getWidth()
public void setWidth(int width)
width
- public int getHeight()
public void setHeight(int height)
height
- public int getGid()
public void setGid(int gid)
gid
- public String getPolyline()
public void setPolyline(String polyline)
public String getPolygon()
public void setPolygon(String polygon)
Copyright © 2014. All rights reserved.