Constructor and Description |
---|
TiledObject(float x,
float y,
float width,
float height) |
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
|
float |
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
|
float |
getWidth()
Returns the width of this object in pixels
|
float |
getX()
Returns the x coordinate of this object in pixels
|
float |
getY()
Returns the y coordinate of this object in pixels
|
boolean |
isVisible() |
void |
setGid(int gid)
Sets the GID of this object
|
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 |
setVisible(boolean visible) |
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 float getX()
public float getY()
public float getWidth()
public float getHeight()
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)
public boolean isVisible()
public void setVisible(boolean visible)
Copyright © 2014. All rights reserved.