com.mindtree.techworks.insight.receiver
Class RuntimeNamespaceContainer

java.lang.Object
  extended by com.mindtree.techworks.insight.receiver.RuntimeNamespaceContainer

public class RuntimeNamespaceContainer
extends java.lang.Object

The RuntimeNamespaceContainer class is a container for runtime namespace data. Holds data on loaded namespaces and available namespace colors

Version:
1.0, 05/08/08
Author:
Regunath B
See Also:
Insight

Constructor Summary
RuntimeNamespaceContainer()
           
 
Method Summary
static void clearLoadedNamespaces()
          Clears the set of namespaces contained by this container
static java.util.LinkedList getAvailableNamespaceColors()
          Returns the list of vailable namespace colors
static java.util.List getLoadedNamespaces()
          Returns the list of loaded namespaces
static java.awt.Color getNamespaceColor(LogNamespace namespace)
          Gets the Color for distinguishing the specified LogNamespace in the display
static java.util.HashMap getNamespaceColorMap()
          Returns the Map of loaded namespaces
static void initializeAvailableNamespaceColorList()
          Initializes the available namespace colors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeNamespaceContainer

public RuntimeNamespaceContainer()
Method Detail

getNamespaceColor

public static java.awt.Color getNamespaceColor(LogNamespace namespace)
Gets the Color for distinguishing the specified LogNamespace in the display

Parameters:
namespace - the LogNamespace for which a Color is needed
Returns:
default Insight background color if all available colors are exhausted or the Color to distinguish the specified LogNamespace

getLoadedNamespaces

public static java.util.List getLoadedNamespaces()
Returns the list of loaded namespaces

Returns:
Returns the loadedNamespaces.

getNamespaceColorMap

public static java.util.HashMap getNamespaceColorMap()
Returns the Map of loaded namespaces

Returns:
Returns the namespaceColorMap.

getAvailableNamespaceColors

public static java.util.LinkedList getAvailableNamespaceColors()
Returns the list of vailable namespace colors

Returns:
Returns the availableNamespaceColors.

initializeAvailableNamespaceColorList

public static final void initializeAvailableNamespaceColorList()
Initializes the available namespace colors


clearLoadedNamespaces

public static void clearLoadedNamespaces()
Clears the set of namespaces contained by this container



Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.