This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[JENKINS-14727] Make dependency to bundled maven-plugin optional
- Loading branch information
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 17 additions & 15 deletions
32
src/main/java/hudson/plugins/analysis/graph/ColorPalette.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
package hudson.plugins.analysis.graph; | ||
|
||
import java.awt.Color; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
|
||
/** | ||
* Replacement for Jenkins {@link hudson.util.ColorPalette} in order to get good | ||
* looking graphs even if the green balls plug-in is installed. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
public class ColorPalette { | ||
public static final Color RED = new Color(0xEF,0x29,0x29); | ||
public static final Color YELLOW = new Color(0xFC,0xE9,0x4F); | ||
public static final Color BLUE = new Color(0x72,0x9F,0xCF); | ||
public static final Color GREY = new Color(0xAB,0xAB,0xAB); | ||
@SuppressWarnings("javadoc") | ||
public final class ColorPalette { | ||
public static final Color RED = new Color(0xEF, 0x29, 0x29); // NOCHECKSTYLE | ||
public static final Color YELLOW = new Color(0xFC, 0xE9, 0x4F); // NOCHECKSTYLE | ||
public static final Color BLUE = new Color(0x72, 0x9F, 0xCF); // NOCHECKSTYLE | ||
public static final Color GREY = new Color(0xAB, 0xAB, 0xAB); // NOCHECKSTYLE | ||
|
||
/** | ||
* Color list usable for generating line charts. | ||
*/ | ||
public static List<Color> LINE_GRAPH = Collections.unmodifiableList(Arrays.asList( | ||
new Color(0xCC0000), | ||
new Color(0x3465a4), | ||
new Color(0x73d216), | ||
new Color(0xedd400) | ||
)); | ||
} | ||
public static final ImmutableList<Color> LINE_GRAPH = ImmutableList.of( | ||
new Color(0xCC0000), new Color(0x3465a4), new Color(0x73d216), new Color(0xedd400)); | ||
|
||
/** | ||
* Creates a new instance of {@link ColorPalette}. | ||
*/ | ||
private ColorPalette() { | ||
// prevents instantiation | ||
} | ||
} |