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, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 Layer()
public Layer(Layer layerToBeCopied)
layerToBeCopied
- the layer we want to copypublic int getHeight()
public java.lang.String getName()
ILayer
public float getOpacity()
ILayer
getOpacity
in interface ILayer
public java.awt.Point getOffset()
ILayer
public int getOffsetX()
ILayer
getOffsetX
in interface ILayer
public int getOffsetY()
ILayer
getOffsetY
in interface ILayer
public RenderType getRenderType()
getRenderType
in interface ILayer
public java.awt.Dimension getSizeInTiles()
ILayer
getSizeInTiles
in interface ILayer
public int getWidth()
public boolean isVisible()
ILayer
public void setOpacity(float opacity)
public void setRenderType(RenderType renderType)
public void setVisible(boolean visible)
setVisible
in interface ILayer
protected void setMap(TmxMap map)
protected void afterUnmarshal(javax.xml.bind.Unmarshaller u, java.lang.Object parent)