org.jactr.modules.pm.visual.visicon.map.feature
Class ColorChunkCache

java.lang.Object
  extended by org.jactr.modules.pm.visual.visicon.map.feature.ColorChunkCache
All Implemented Interfaces:
java.util.EventListener, IParameterListener, IDeclarativeModuleListener

public class ColorChunkCache
extends java.lang.Object
implements IDeclarativeModuleListener


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
ColorChunkCache(IModel model)
           
 
Method Summary
 void chunkAdded(DeclarativeModuleEvent me)
           
 void chunkCreated(DeclarativeModuleEvent dme)
           
 void chunksMerged(DeclarativeModuleEvent dme)
           
 void chunkTypeAdded(DeclarativeModuleEvent dme)
          called when a chunk type is added to the model
 void chunkTypeCreated(DeclarativeModuleEvent dme)
          called when a chunktype is created, but not necessarily fully defined
 void chunkTypesMerged(DeclarativeModuleEvent dme)
          called when two chunktypes are merged
 void clear()
           
 void dispose()
           
 org.commonreality.modalities.visual.Color getColor(IChunk chunk)
           
 IChunk getColorChunk(org.commonreality.modalities.visual.Color awtColor)
           
 void parameterChanged(IParameterEvent pe)
           
 
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(DeclarativeModuleEvent me)
Specified by:
chunkAdded in interface IDeclarativeModuleListener

getColorChunk

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

getColor

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

chunkCreated

public void chunkCreated(DeclarativeModuleEvent dme)
Specified by:
chunkCreated in interface IDeclarativeModuleListener
See Also:
IDeclarativeModuleListener.chunkCreated(org.jactr.core.module.declarative.event.DeclarativeModuleEvent)

chunkTypeAdded

public void chunkTypeAdded(DeclarativeModuleEvent dme)
Description copied from interface: IDeclarativeModuleListener
called when a chunk type is added to the model

Specified by:
chunkTypeAdded in interface IDeclarativeModuleListener
See Also:
IDeclarativeModuleListener.chunkTypeAdded(org.jactr.core.module.declarative.event.DeclarativeModuleEvent)

chunkTypeCreated

public void chunkTypeCreated(DeclarativeModuleEvent dme)
Description copied from interface: IDeclarativeModuleListener
called when a chunktype is created, but not necessarily fully defined

Specified by:
chunkTypeCreated in interface IDeclarativeModuleListener
See Also:
IDeclarativeModuleListener.chunkTypeCreated(org.jactr.core.module.declarative.event.DeclarativeModuleEvent)

chunkTypesMerged

public void chunkTypesMerged(DeclarativeModuleEvent dme)
Description copied from interface: IDeclarativeModuleListener
called when two chunktypes are merged

Specified by:
chunkTypesMerged in interface IDeclarativeModuleListener
See Also:
IDeclarativeModuleListener.chunkTypesMerged(org.jactr.core.module.declarative.event.DeclarativeModuleEvent)

chunksMerged

public void chunksMerged(DeclarativeModuleEvent dme)
Specified by:
chunksMerged in interface IDeclarativeModuleListener
See Also:
IDeclarativeModuleListener.chunksMerged(org.jactr.core.module.declarative.event.DeclarativeModuleEvent)

parameterChanged

public void parameterChanged(IParameterEvent pe)
Specified by:
parameterChanged in interface IParameterListener
See Also:
IParameterListener.parameterChanged(org.jactr.core.event.IParameterEvent)