Class TraceColorRepository

java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.repository.AbstractRepository
kieker.tools.trace.analysis.repository.TraceColorRepository
All Implemented Interfaces:
kieker.analysis.analysisComponent.IAnalysisComponent, kieker.analysis.repository.IRepository

@Deprecated
public class TraceColorRepository
extends kieker.analysis.repository.AbstractRepository
Deprecated.
since 2.0.0
Implementation of a trace color repository, which associates colors to traces. These colors can, for instance, be used to highlight traces in graph renderings.
Since:
1.6
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  TraceColorRepository.TraceColorRepositoryData
    Deprecated.
    This class groups the data required for a TraceColorRepository.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONFIG_PROPERTY_NAME_TRACE_COLOR_FILE_NAME
    Deprecated.
    Name of the configuration property that contains the file name of the trace color file.

    Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent

    CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
  • Constructor Summary

    Constructors 
    Constructor Description
    TraceColorRepository​(kieker.common.configuration.Configuration configuration, kieker.analysis.IProjectContext projectContext)
    Deprecated.
    Creates a new description repository using the given configuration.
    TraceColorRepository​(kieker.common.configuration.Configuration configuration, TraceColorRepository.TraceColorRepositoryData colorData, kieker.analysis.IProjectContext projectContext)
    Deprecated.
    Creates a new color repository with the given data.
  • Method Summary

    Modifier and Type Method Description
    static TraceColorRepository createFromFile​(java.lang.String fileName, kieker.analysis.IProjectContext projectContext)
    Deprecated.
    Initializes a trace color repository from a given file.
    Color getCollisionColor()
    Deprecated.
    Returns the color to use for elements for which no unique color can be determined.
    java.util.Map<java.lang.Long,​Color> getColorMap()
    Deprecated.
    Returns the color map stored in this repository.
    kieker.common.configuration.Configuration getCurrentConfiguration()
    Deprecated.
    Color getDefaultColor()
    Deprecated.
    Returns the color to use for elements which are not defined in the color map.

    Methods inherited from class kieker.analysis.repository.AbstractRepository

    getDefaultConfiguration, getRepositoryDescription, getRepositoryName

    Methods inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent

    getName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface kieker.analysis.analysisComponent.IAnalysisComponent

    getName
  • Field Details

  • Constructor Details

    • TraceColorRepository

      public TraceColorRepository​(kieker.common.configuration.Configuration configuration, kieker.analysis.IProjectContext projectContext) throws java.io.IOException
      Deprecated.
      Creates a new description repository using the given configuration.
      Parameters:
      configuration - The configuration to use
      projectContext - The project context for this plugin.
      Throws:
      java.io.IOException - If an I/O error occurs during initialization
    • TraceColorRepository

      public TraceColorRepository​(kieker.common.configuration.Configuration configuration, TraceColorRepository.TraceColorRepositoryData colorData, kieker.analysis.IProjectContext projectContext)
      Deprecated.
      Creates a new color repository with the given data.
      Parameters:
      configuration - The configuration to use
      colorData - The color data to use for this repository
      projectContext - The project context to use for this repository.
  • Method Details

    • getCurrentConfiguration

      public kieker.common.configuration.Configuration getCurrentConfiguration()
      Deprecated.
      Specified by:
      getCurrentConfiguration in interface kieker.analysis.analysisComponent.IAnalysisComponent
      Specified by:
      getCurrentConfiguration in class kieker.analysis.analysisComponent.AbstractAnalysisComponent
    • getColorMap

      public java.util.Map<java.lang.Long,​Color> getColorMap()
      Deprecated.
      Returns the color map stored in this repository.
      Returns:
      See above
    • getDefaultColor

      public Color getDefaultColor()
      Deprecated.
      Returns the color to use for elements which are not defined in the color map.
      Returns:
      See above
    • getCollisionColor

      public Color getCollisionColor()
      Deprecated.
      Returns the color to use for elements for which no unique color can be determined.
      Returns:
      See above
    • createFromFile

      public static TraceColorRepository createFromFile​(java.lang.String fileName, kieker.analysis.IProjectContext projectContext) throws java.io.IOException
      Deprecated.
      Initializes a trace color repository from a given file.
      Parameters:
      fileName - The name of the file to read from
      projectContext - The project context to use.
      Returns:
      The initialized trace color repository
      Throws:
      java.io.IOException - If an I/O error occurs