net.thucydides.core.reports.json
Class RelativeSizeColorScheme
java.lang.Object
net.thucydides.core.reports.json.RelativeSizeColorScheme
- All Implemented Interfaces:
- ColorScheme
public class RelativeSizeColorScheme
- extends Object
- implements ColorScheme
Determine what color boxes should be in the feature/story/scenario treemap.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelativeSizeColorScheme
public RelativeSizeColorScheme()
rgbFormatOf
public static String rgbFormatOf(Color color)
- Utility method to format a color to HTML RGB color format (e.g. #FF0000 for Color.red).
- Parameters:
color - The color.
- Returns:
- the HTML RGB color string.
colorFor
public Color colorFor(FeatureResults feature)
- What color should a given feature be?
- Specified by:
colorFor in interface ColorScheme
colorFor
public Color colorFor(StoryTestResults storyResult)
- Specified by:
colorFor in interface ColorScheme
colorFor
public Color colorFor(TestOutcomes outcome)
- Specified by:
colorFor in interface ColorScheme
colorFor
public Color colorFor(TestOutcome outcome)
- Specified by:
colorFor in interface ColorScheme
colorFor
public Color colorFor(TestStep step)
- Specified by:
colorFor in interface ColorScheme
Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.