jadex.application.space.envsupport.observer.graphics.layer
Class Layer

java.lang.Object
  extended by jadex.application.space.envsupport.observer.graphics.layer.Layer
Direct Known Subclasses:
GridLayer, TiledLayer

public class Layer
extends Object


Field Summary
static int LAYER_TYPE_COLOR
           
static int LAYER_TYPE_GRID
           
static int LAYER_TYPE_TILED
           
 
Constructor Summary
Layer(int type)
           
Layer(int type, Object color)
           
 
Method Summary
 void flushRenderInfo()
          Flushes the render information.
 Object getColor()
           
 Object getRenderInfo(int infoId)
          Returns cached render information.
 int getType()
          Returns the type of the layer.
 void setColor(Object color)
           
 void setRenderInfo(int infoId, Object info)
          Sets cached render information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAYER_TYPE_COLOR

public static final int LAYER_TYPE_COLOR
See Also:
Constant Field Values

LAYER_TYPE_GRID

public static final int LAYER_TYPE_GRID
See Also:
Constant Field Values

LAYER_TYPE_TILED

public static final int LAYER_TYPE_TILED
See Also:
Constant Field Values
Constructor Detail

Layer

public Layer(int type)

Layer

public Layer(int type,
             Object color)
Method Detail

getColor

public Object getColor()

setColor

public void setColor(Object color)

getType

public int getType()
Returns the type of the layer.

Returns:
Type of the layer.

getRenderInfo

public Object getRenderInfo(int infoId)
Returns cached render information.

Parameters:
infoId - id of the information
Returns:
render info

setRenderInfo

public void setRenderInfo(int infoId,
                          Object info)
Sets cached render information.

Parameters:
infoId - id of the information
info - the render info

flushRenderInfo

public void flushRenderInfo()
Flushes the render information.



Copyright © 2010. All Rights Reserved.