public abstract class Layer extends CustomPropertyProvider implements ILayer, java.io.Serializable
| Constructor and Description |
|---|
Layer() |
Layer(Layer layerToBeCopied)
Copy Constructor for copying instances of Layers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Gets the height.
|
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.
|
int |
getOrder() |
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(Map map) |
void |
setName(java.lang.String name) |
void |
setOpacity(float opacity) |
void |
setVisible(boolean visible) |
void |
setWidth(int width) |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, 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, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, 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 setVisible(boolean visible)
setVisible in interface ILayerprotected void setMap(Map map)