org.jactr.modules.pm.visual.memory.impl.map
Class ColorChunkCache

java.lang.Object
  extended by org.jactr.modules.pm.visual.memory.impl.map.ColorChunkCache
All Implemented Interfaces:
java.util.EventListener, IChunkTypeListener, IParameterListener

public class ColorChunkCache
extends java.lang.Object
implements IChunkTypeListener


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
ColorChunkCache(IModel model)
           
 
Method Summary
 void childAdded(ChunkTypeEvent cte)
          a child chunk type has been added ...
 void chunkAdded(ChunkTypeEvent cte)
          a chunk has been added.
 void chunkAdded(IChunk chunk)
           
 void chunkTypeEncoded(ChunkTypeEvent cte)
          chunktype has been encoded by the model
 void clear()
           
 void dispose()
           
 org.commonreality.modalities.visual.Color getColor(IChunk chunk)
           
 IChunk getColorChunk(org.commonreality.modalities.visual.Color awtColor)
           
 void parameterChanged(IParameterEvent pe)
           
 void slotAdded(ChunkTypeEvent cte)
          a slot was added
 void slotChanged(ChunkTypeEvent cte)
          a slot value has changed
 void slotRemoved(ChunkTypeEvent cte)
          slot has been removed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

ColorChunkCache

public ColorChunkCache(IModel model)
Method Detail

clear

public void clear()

dispose

public void dispose()

chunkAdded

public void chunkAdded(IChunk chunk)

getColorChunk

public IChunk getColorChunk(org.commonreality.modalities.visual.Color awtColor)

getColor

public org.commonreality.modalities.visual.Color getColor(IChunk chunk)

childAdded

public void childAdded(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
a child chunk type has been added ... this chunktype may not have been encoded yet though..

Specified by:
childAdded in interface IChunkTypeListener

chunkAdded

public void chunkAdded(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
a chunk has been added. this chunk will necessarily have been encoded

Specified by:
chunkAdded in interface IChunkTypeListener

chunkTypeEncoded

public void chunkTypeEncoded(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
chunktype has been encoded by the model

Specified by:
chunkTypeEncoded in interface IChunkTypeListener

slotAdded

public void slotAdded(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
a slot was added

Specified by:
slotAdded in interface IChunkTypeListener

slotChanged

public void slotChanged(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
a slot value has changed

Specified by:
slotChanged in interface IChunkTypeListener

slotRemoved

public void slotRemoved(ChunkTypeEvent cte)
Description copied from interface: IChunkTypeListener
slot has been removed

Specified by:
slotRemoved in interface IChunkTypeListener

parameterChanged

public void parameterChanged(IParameterEvent pe)
Specified by:
parameterChanged in interface IParameterListener