public abstract class Layer extends CustomPropertyProvider implements ILayer
| Constructor and Description |
|---|
Layer() |
Layer(Layer layerToBeCopied)
Copy Constructor for copying instances of Layers.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterUnmarshal(javax.xml.bind.Unmarshaller u,
java.lang.Object parent) |
int |
getHeight()
Gets the height.
|
int |
getId() |
IMap |
getMap() |
java.lang.String |
getName()
Gets the name.
|
java.awt.Point |
getOffset()
Gets both the X and the Y offset of the layer.
|
int |
getOffsetX()
Gets the horizontal offset of the layer.
|
int |
getOffsetY()
Gets the vertical offset of the layer.
|
float |
getOpacity()
Gets the opacity.
|
RenderType |
getRenderType() |
java.awt.Dimension |
getSizeInTiles()
Gets the size in tiles.
|
int |
getWidth()
Gets the width.
|
boolean |
isVisible()
Checks if is visible.
|
void |
setHeight(int height) |
protected void |
setMap(TmxMap map) |
void |
setName(java.lang.String name) |
void |
setOpacity(float opacity) |
void |
setRenderType(RenderType renderType) |
void |
setVisible(boolean visible) |
void |
setWidth(int width) |
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, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolValue, 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 Layer()
public Layer(Layer layerToBeCopied)
layerToBeCopied - the layer we want to copypublic int getHeight()
public java.lang.String getName()
ILayerpublic float getOpacity()
ILayergetOpacity in interface ILayerpublic java.awt.Point getOffset()
ILayerpublic int getOffsetX()
ILayergetOffsetX in interface ILayerpublic int getOffsetY()
ILayergetOffsetY in interface ILayerpublic RenderType getRenderType()
getRenderType in interface ILayerpublic java.awt.Dimension getSizeInTiles()
ILayergetSizeInTiles in interface ILayerpublic int getWidth()
public boolean isVisible()
ILayerpublic void setOpacity(float opacity)
public void setRenderType(RenderType renderType)
public void setVisible(boolean visible)
setVisible in interface ILayerprotected void setMap(TmxMap map)
protected void afterUnmarshal(javax.xml.bind.Unmarshaller u,
java.lang.Object parent)