lt.monarch.chart.style
Class PaletteStyle<Tag extends AbstractPaintTags>

java.lang.Object
  extended by lt.monarch.chart.style.AbstractStyle<Tag>
      extended by lt.monarch.chart.style.PaletteStyle<Tag>
All Implemented Interfaces:
java.io.Serializable

public class PaletteStyle<Tag extends AbstractPaintTags>
extends AbstractStyle<Tag>

Color palette style class

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Constructor and Description
PaletteStyle(Style style)
          Default color palette style constructor
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes style object
 java.awt.Color[] getPalette()
          Gets color palette from the stylesheet
 void setPalette(java.awt.Color[] palette)
          Set color palette to the stylesheet
 
Methods inherited from class lt.monarch.chart.style.AbstractStyle
finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteStyle

public PaletteStyle(Style style)
Default color palette style constructor

Parameters:
style - style object
Method Detail

getPalette

public java.awt.Color[] getPalette()
Gets color palette from the stylesheet

Returns:
color palette

setPalette

public void setPalette(java.awt.Color[] palette)
Set color palette to the stylesheet

Parameters:
palette - color palette

dispose

public void dispose()
Description copied from class: AbstractStyle
Disposes style object

Overrides:
dispose in class AbstractStyle<Tag extends AbstractPaintTags>