org.archive.wayback.util.graph
Class GraphConfiguration

java.lang.Object
  extended by org.archive.wayback.util.graph.GraphConfiguration

public class GraphConfiguration
extends Object

Author:
brad

Field Summary
 Color backgroundColor
          Main background color for graphs
 int fontPadX
          left font padding for Year/Month labels
 int fontPadY
          top/bottom font padding for Year/Month labels
static int imageType
          type of BufferedImage to create, specifically the final constructor arg.
 Color regionBorderColor
          color for Year/Month border lines
 Stroke regionBorderStroke
          Stroke for Year/Month border lines
 String regionFontName
          font name for Year/Month labels
 int regionFontSize
          font size for Year/Month labels
 int regionFontStyle
          font style for Year/Month labels
 Color regionHighlightColor
          Background color for active/selected Year/Month
 Color regionLabelColor
          font Color for Year/Month labels
 Color valueColor
          color for non-active/selected graph values
 Color valueHighlightColor
          color for active/selected graph values ( #ec008c )
 int valueMinHeight
          Minimum pixel height for non-zero graph values
 
Constructor Summary
GraphConfiguration()
           
 
Method Summary
 Font getRegionLabelFont()
           
 void setRenderingHints(Graphics2D g2d)
          Set whatever redneringHints are needed to properly draw the graph, ie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageType

public static int imageType
type of BufferedImage to create, specifically the final constructor arg.


backgroundColor

public Color backgroundColor
Main background color for graphs


regionFontSize

public int regionFontSize
font size for Year/Month labels


regionFontName

public String regionFontName
font name for Year/Month labels


regionFontStyle

public int regionFontStyle
font style for Year/Month labels


regionLabelColor

public Color regionLabelColor
font Color for Year/Month labels


fontPadY

public int fontPadY
top/bottom font padding for Year/Month labels


fontPadX

public int fontPadX
left font padding for Year/Month labels


regionBorderColor

public Color regionBorderColor
color for Year/Month border lines


regionBorderStroke

public Stroke regionBorderStroke
Stroke for Year/Month border lines


regionHighlightColor

public Color regionHighlightColor
Background color for active/selected Year/Month


valueColor

public Color valueColor
color for non-active/selected graph values


valueHighlightColor

public Color valueHighlightColor
color for active/selected graph values ( #ec008c )


valueMinHeight

public int valueMinHeight
Minimum pixel height for non-zero graph values

Constructor Detail

GraphConfiguration

public GraphConfiguration()
Method Detail

getRegionLabelFont

public Font getRegionLabelFont()
Returns:
the current Font to use for Month/Year labels, combination of regionFontStyle, regionFontSize, regionFontName

setRenderingHints

public void setRenderingHints(Graphics2D g2d)
Set whatever redneringHints are needed to properly draw the graph, ie. AntiAliasing, etc.

Parameters:
g2d - The Graphics2D objects on which the hints should be set.


Copyright © 2005-2011 Internet Archive. All Rights Reserved.