lt.monarch.chart.themes
Class ParametricTheme

java.lang.Object
  extended by lt.monarch.chart.themes.AbstractColorThemes
      extended by lt.monarch.chart.themes.ParametricTheme
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ParametricDesaturationTheme, ParametricGrayscaleTheme

public abstract class ParametricTheme
extends AbstractColorThemes

Base class for parametric themes

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.themes.AbstractColorThemes
palette_size
 
Constructor Summary
Constructor and Description
ParametricTheme(java.lang.String name)
           
 
Method Summary
Modifier and Type Method and Description
 java.awt.Color[] getAxesColors()
           
 java.awt.Color getBackgroundColor()
           
abstract  java.awt.Color getColor(int index, int max)
           
 java.awt.Color getForgroundColor(int index, int max)
           
 java.awt.Color[] getGridColors()
           
 java.awt.Color[] getLegendColors()
           
 java.awt.Color[] getMarkerColors()
           
 java.awt.Color[] getMarkerLineColors()
           
 java.lang.String getName()
          Returns theme name.
 java.awt.Color[] getPalette(int seriesQuantity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametricTheme

public ParametricTheme(java.lang.String name)
Method Detail

getColor

public abstract java.awt.Color getColor(int index,
                                        int max)

getForgroundColor

public java.awt.Color getForgroundColor(int index,
                                        int max)

getPalette

public java.awt.Color[] getPalette(int seriesQuantity)
Specified by:
getPalette in class AbstractColorThemes
Returns:
series palette colors

getBackgroundColor

public java.awt.Color getBackgroundColor()
Specified by:
getBackgroundColor in class AbstractColorThemes
Returns:
chart background color

getAxesColors

public java.awt.Color[] getAxesColors()
Specified by:
getAxesColors in class AbstractColorThemes
Returns:
axes foreground colors in the following order: 0)ticks, 1)labels, 2)axis, 3)title.

getGridColors

public java.awt.Color[] getGridColors()
Specified by:
getGridColors in class AbstractColorThemes
Returns:
grid colors in the following order: 0)background color 1)grid-line color. 3)second background color - for gradient paint (null for toFill paint)

getMarkerLineColors

public java.awt.Color[] getMarkerLineColors()
Specified by:
getMarkerLineColors in class AbstractColorThemes
Returns:
marker lines colors: 0)marker line 1)label background 2)label foreground colors.

getMarkerColors

public java.awt.Color[] getMarkerColors()
Specified by:
getMarkerColors in class AbstractColorThemes
Returns:
marker colors: 0)background color 1)foreground color.

getLegendColors

public java.awt.Color[] getLegendColors()
Specified by:
getLegendColors in class AbstractColorThemes
Returns:
legend colors: 0)background, 1)foreground 2)border colors. 3)second background color - for gradient paint (null for toFill paint)

getName

public java.lang.String getName()
Description copied from class: AbstractColorThemes
Returns theme name.

Overrides:
getName in class AbstractColorThemes