cyvis.gui.charts
Class ColorSelector
java.lang.Object
cyvis.gui.charts.ColorSelector
public class ColorSelector
- extends Object
Holds the cyclomati complexity ranges and their respctive colors.
Method Summary |
static Color |
getColor(int cyclomaticComplexity)
returns a color for that cyclomatic complexity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
highColor
public static Color highColor
modColor
public static Color modColor
lowColor
public static Color lowColor
high
public static int high
mod
public static int mod
low
public static int low
ColorSelector
public ColorSelector()
getColor
public static Color getColor(int cyclomaticComplexity)
- returns a color for that cyclomatic complexity
- Parameters:
cyclomaticComplexity
-
- Returns:
- the color for that particular cyclomatic complexity