Class TraceColorRepository
java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.repository.AbstractRepository
kieker.tools.trace.analysis.repository.TraceColorRepository
- All Implemented Interfaces:
IAnalysisComponent,IRepository
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.This class groups the data required for aTraceColorRepository. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.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
ConstructorsConstructorDescriptionTraceColorRepository(Configuration configuration, IProjectContext projectContext) Deprecated.Creates a new description repository using the given configuration.TraceColorRepository(Configuration configuration, TraceColorRepository.TraceColorRepositoryData colorData, IProjectContext projectContext) Deprecated.Creates a new color repository with the given data. -
Method Summary
Modifier and TypeMethodDescriptionstatic TraceColorRepositorycreateFromFile(String fileName, IProjectContext projectContext) Deprecated.Initializes a trace color repository from a given file.Deprecated.Returns the color to use for elements for which no unique color can be determined.Deprecated.Returns the color map stored in this repository.Deprecated.This method should deliver aConfigurationobject containing the current configuration of this instance.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, getRepositoryNameMethods inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kieker.analysis.analysisComponent.IAnalysisComponent
getName
-
Field Details
-
CONFIG_PROPERTY_NAME_TRACE_COLOR_FILE_NAME
Deprecated.Name of the configuration property that contains the file name of the trace color file.- See Also:
-
-
Constructor Details
-
TraceColorRepository
public TraceColorRepository(Configuration configuration, IProjectContext projectContext) throws IOException Deprecated.Creates a new description repository using the given configuration.- Parameters:
configuration- The configuration to useprojectContext- The project context for this plugin.- Throws:
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 usecolorData- The color data to use for this repositoryprojectContext- The project context to use for this repository.
-
-
Method Details
-
getCurrentConfiguration
Deprecated.This method should deliver aConfigurationobject 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:
getCurrentConfigurationin interfaceIAnalysisComponent- Specified by:
getCurrentConfigurationin classAbstractAnalysisComponent- Returns:
- A completely filled configuration object.
-
getColorMap
Deprecated.Returns the color map stored in this repository.- Returns:
- See above
-
getDefaultColor
Deprecated.Returns the color to use for elements which are not defined in the color map.- Returns:
- See above
-
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(String fileName, IProjectContext projectContext) throws IOException Deprecated.Initializes a trace color repository from a given file.- Parameters:
fileName- The name of the file to read fromprojectContext- The project context to use.- Returns:
- The initialized trace color repository
- Throws:
IOException- If an I/O error occurs
-