public class MapObjectLayer extends Layer implements IMapObjectLayer
Constructor and Description |
---|
MapObjectLayer()
Instantiates a new
MapObjectLayer instance. |
MapObjectLayer(MapObjectLayer original)
Instantiates a new
MapObjectLayer instance by copying from the specified original. |
Modifier and Type | Method and Description |
---|---|
void |
addMapObject(IMapObject mapObject) |
protected void |
afterUnmarshal(javax.xml.bind.Unmarshaller u,
java.lang.Object parent) |
java.awt.Color |
getColor() |
java.lang.String |
getColorHexString() |
java.util.List<IMapObject> |
getMapObjects()
Gets the shapes.
|
java.util.Collection<IMapObject> |
getMapObjects(int... mapIDs) |
java.util.Collection<IMapObject> |
getMapObjects(java.lang.String... types) |
java.awt.Dimension |
getSizeInTiles()
Gets the size in tiles.
|
void |
removeMapObject(IMapObject mapObject) |
void |
setColor(java.lang.String color) |
java.lang.String |
toString() |
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getWidth, isVisible, setHeight, setMap, setName, setOpacity, setRenderType, setVisible, setWidth
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getWidth, isVisible, setHeight, setName, setVisible, setWidth
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
public MapObjectLayer()
MapObjectLayer
instance.public MapObjectLayer(MapObjectLayer original)
MapObjectLayer
instance by copying from the specified original.original
- the layer we want to copypublic java.util.List<IMapObject> getMapObjects()
IMapObjectLayer
getMapObjects
in interface IMapObjectLayer
public void removeMapObject(IMapObject mapObject)
removeMapObject
in interface IMapObjectLayer
public java.awt.Dimension getSizeInTiles()
ILayer
getSizeInTiles
in interface ILayer
getSizeInTiles
in class Layer
public java.lang.String toString()
toString
in class java.lang.Object
public void addMapObject(IMapObject mapObject)
addMapObject
in interface IMapObjectLayer
public java.awt.Color getColor()
getColor
in interface IMapObjectLayer
public java.lang.String getColorHexString()
getColorHexString
in interface IMapObjectLayer
public void setColor(java.lang.String color)
setColor
in interface IMapObjectLayer
public java.util.Collection<IMapObject> getMapObjects(java.lang.String... types)
getMapObjects
in interface IMapObjectLayer
public java.util.Collection<IMapObject> getMapObjects(int... mapIDs)
getMapObjects
in interface IMapObjectLayer
protected void afterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)
afterUnmarshal
in class Layer