Class SvgIconLabelProvider
java.lang.Object
io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
io.jenkins.plugins.analysis.core.model.SvgIconLabelProvider
- All Implemented Interfaces:
DescriptionProvider
Provides SVG icons that have the same name as the URL (or ID) of a tool.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
StaticAnalysisLabelProvider.AgeBuilder, StaticAnalysisLabelProvider.DefaultAgeBuilder -
Field Summary
Fields inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
ANALYSIS_SVG_ICON, EMPTY_DESCRIPTION -
Constructor Summary
ConstructorsConstructorDescriptionSvgIconLabelProvider(String id, String name, DescriptionProvider descriptionProvider) Creates a new label provider with the specified ID and name.SvgIconLabelProvider(String id, String name, DescriptionProvider descriptionProvider, String iconName) Creates a new label provider with the specified ID and name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute URL to the large icon for the tool.Returns the absolute URL to the small icon for the tool.Methods inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
getAgeBuilder, getDescription, getFileNameRenderer, getId, getIssuesModel, getLinkName, getName, getSourceCodeDescription, getToolTip, getTrendName, setName, toString
-
Constructor Details
-
SvgIconLabelProvider
Creates a new label provider with the specified ID and name.- Parameters:
id- the ID (i.e., URL)name- the name of the tooldescriptionProvider- provides additional descriptions for an issue
-
SvgIconLabelProvider
public SvgIconLabelProvider(String id, String name, DescriptionProvider descriptionProvider, String iconName) Creates a new label provider with the specified ID and name.- Parameters:
id- the ID (i.e., URL)name- the name of the tooldescriptionProvider- provides additional descriptions for an issueiconName- the unique name of the icon file
-
-
Method Details
-
getSmallIconUrl
Description copied from class:StaticAnalysisLabelProviderReturns the absolute URL to the small icon for the tool.- Overrides:
getSmallIconUrlin classStaticAnalysisLabelProvider- Returns:
- absolute URL
-
getLargeIconUrl
Description copied from class:StaticAnalysisLabelProviderReturns the absolute URL to the large icon for the tool.- Overrides:
getLargeIconUrlin classStaticAnalysisLabelProvider- Returns:
- absolute URL
-