Class SvgIconLabelProvider
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
-
- io.jenkins.plugins.analysis.core.model.SvgIconLabelProvider
-
- All Implemented Interfaces:
DescriptionProvider
public class SvgIconLabelProvider extends StaticAnalysisLabelProvider
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
EMPTY_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description SvgIconLabelProvider(String id, String name)
Creates a new label provider with the specified ID and name.SvgIconLabelProvider(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLargeIconUrl()
Returns the absolute URL to the large icon for the tool.String
getSmallIconUrl()
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, getFixedIssuesLabel, getId, getIssuesModel, getLinkName, getName, getNewIssuesLabel, getNoIssuesSinceLabel, getQualityGateResult, getQualityGateResult, getRawLinkName, getReferenceBuild, getSourceCodeDescription, getTitle, getToolTip, getTrendName, setName, toString
-
-
-
-
Constructor Detail
-
SvgIconLabelProvider
public SvgIconLabelProvider(String id, String name)
Creates a new label provider with the specified ID and name.- Parameters:
id
- the ID (i.e., URL)name
- the name of the tool
-
SvgIconLabelProvider
public SvgIconLabelProvider(String id, String name, DescriptionProvider descriptionProvider)
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 Detail
-
getSmallIconUrl
public String getSmallIconUrl()
Description copied from class:StaticAnalysisLabelProvider
Returns the absolute URL to the small icon for the tool.- Overrides:
getSmallIconUrl
in classStaticAnalysisLabelProvider
- Returns:
- absolute URL
-
getLargeIconUrl
public String getLargeIconUrl()
Description copied from class:StaticAnalysisLabelProvider
Returns the absolute URL to the large icon for the tool.- Overrides:
getLargeIconUrl
in classStaticAnalysisLabelProvider
- Returns:
- absolute URL
-
-