net.thucydides.core.reports.json
Class RelativeSizeColorScheme

Package class diagram package RelativeSizeColorScheme
java.lang.Object
  extended by 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.


Constructor Summary
RelativeSizeColorScheme()
           
 
Method Summary
 Color colorFor(FeatureResults feature)
          What color should a given feature be?
 Color colorFor(StoryTestResults storyResult)
           
 Color colorFor(TestOutcome outcome)
           
 Color colorFor(TestOutcomes outcome)
           
 Color colorFor(TestStep step)
           
static String rgbFormatOf(Color color)
          Utility method to format a color to HTML RGB color format (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeSizeColorScheme

public RelativeSizeColorScheme()
Method Detail

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.