Class TraceColorRepository

java.lang.Object
All Implemented Interfaces:
IAnalysisComponent, IRepository

@Deprecated
public class TraceColorRepository
extends 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
Author:
Holger Knoche
  • Field Details

  • Constructor Details

    • TraceColorRepository

      public TraceColorRepository​(Configuration configuration, 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​(Configuration configuration, TraceColorRepository.TraceColorRepositoryData colorData, 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 Configuration getCurrentConfiguration()
      Deprecated.
      This method should deliver a Configuration object containing the current configuration of this instance. In other words: The constructor should be able to use the given object to initialize a new instance of this class with the same intern properties.
      Specified by:
      getCurrentConfiguration in interface IAnalysisComponent
      Specified by:
      getCurrentConfiguration in class AbstractAnalysisComponent
      Returns:
      A completely filled configuration object.
    • 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, 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