public class MapObjectLayer extends Layer implements IMapObjectLayer
| Constructor and Description |
|---|
MapObjectLayer() |
MapObjectLayer(MapObjectLayer layerToBeCopied)
Copy Constructor for copying instances of MapObjectLayers.
|
| 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, setWidthgetBoolValue, 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, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeight, getId, getMap, getName, getOffset, getOffsetX, getOffsetY, getOpacity, getRenderType, getWidth, isVisible, setHeight, setName, setVisible, setWidthgetBoolValue, 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, setValuepublic MapObjectLayer()
public MapObjectLayer(MapObjectLayer layerToBeCopied)
layerToBeCopied - the layer we want to copypublic java.util.List<IMapObject> getMapObjects()
IMapObjectLayergetMapObjects in interface IMapObjectLayerpublic void removeMapObject(IMapObject mapObject)
removeMapObject in interface IMapObjectLayerpublic java.awt.Dimension getSizeInTiles()
ILayergetSizeInTiles in interface ILayergetSizeInTiles in class Layerpublic java.lang.String toString()
toString in class java.lang.Objectpublic void addMapObject(IMapObject mapObject)
addMapObject in interface IMapObjectLayerpublic java.awt.Color getColor()
getColor in interface IMapObjectLayerpublic java.lang.String getColorHexString()
getColorHexString in interface IMapObjectLayerpublic void setColor(java.lang.String color)
setColor in interface IMapObjectLayerpublic java.util.Collection<IMapObject> getMapObjects(java.lang.String... types)
getMapObjects in interface IMapObjectLayerpublic java.util.Collection<IMapObject> getMapObjects(int... mapIDs)
getMapObjects in interface IMapObjectLayerprotected void afterUnmarshal(javax.xml.bind.Unmarshaller u,
java.lang.Object parent)
afterUnmarshal in class Layer