JRubik v0.6

es.aeat.eett.plugins.chart
Class ConfiLegend

java.lang.Object
  extended byes.aeat.eett.plugins.chart.ConfiLegend
All Implemented Interfaces:
Confi

class ConfiLegend
extends java.lang.Object
implements Confi

Author:
f00992

Field Summary
private  java.awt.Color backgroundColor
          The Color used to draw the background of the legend.
private  java.awt.Color itemColor
          The Color used to display the legend item names.
private  java.awt.Font itemFont
          The font used to display the legend item names.
private static java.lang.String KEY_BACKGROUNDCOLOR
           
private static java.lang.String KEY_CONFI_LEGEND
           
private static java.lang.String KEY_ITEM_COLOR
           
private static java.lang.String KEY_ITEM_FONT
           
private static java.lang.String KEY_LINE_COLOR
           
private static java.lang.String KEY_SHOW_LEGEND
           
private  java.awt.Color outlineColor
          The Color used to draw the outline of the legend.
private  boolean showLegend
          Whether or not to display the Legend on the chart.
 
Constructor Summary
(package private) ConfiLegend()
           
 
Method Summary
(package private)  java.awt.Color getBackgroundColor()
           
(package private)  java.awt.Color getItemColor()
           
(package private)  java.awt.Font getItemFont()
           
(package private) static java.lang.String getKEY_BACKGROUNDCOLOR()
           
(package private) static java.lang.String getKEY_CONFI_LEGEND()
           
(package private) static java.lang.String getKEY_ITEM_COLOR()
           
(package private) static java.lang.String getKEY_ITEM_FONT()
           
(package private) static java.lang.String getKEY_LINE_COLOR()
           
(package private) static java.lang.String getKEY_SHOW_LEGEND()
           
(package private)  java.awt.Color getOutlineColor()
           
 org.jdom.Element getRootElement()
           
(package private)  boolean isShowLegend()
           
 void load(org.jfree.chart.JFreeChart chart)
          Carga, guarda, la configuracion del grafico
 boolean loadRootElement(org.jdom.Element eRoot)
           
 void restore(org.jfree.chart.JFreeChart chart)
          Restaura, aplica, la configuracion al grafico;
(package private)  void setBackgroundColor(java.awt.Color backgroundColor)
           
(package private)  void setItemColor(java.awt.Color itemColor)
           
(package private)  void setItemFont(java.awt.Font itemFont)
           
(package private)  void setOutlineColor(java.awt.Color outlineColor)
           
(package private)  void setShowLegend(boolean showLegend)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_CONFI_LEGEND

private static final java.lang.String KEY_CONFI_LEGEND
See Also:
Constant Field Values

KEY_SHOW_LEGEND

private static final java.lang.String KEY_SHOW_LEGEND
See Also:
Constant Field Values

KEY_LINE_COLOR

private static final java.lang.String KEY_LINE_COLOR
See Also:
Constant Field Values

KEY_BACKGROUNDCOLOR

private static final java.lang.String KEY_BACKGROUNDCOLOR
See Also:
Constant Field Values

KEY_ITEM_FONT

private static final java.lang.String KEY_ITEM_FONT
See Also:
Constant Field Values

KEY_ITEM_COLOR

private static final java.lang.String KEY_ITEM_COLOR
See Also:
Constant Field Values

showLegend

private boolean showLegend
Whether or not to display the Legend on the chart.


outlineColor

private java.awt.Color outlineColor
The Color used to draw the outline of the legend.


backgroundColor

private java.awt.Color backgroundColor
The Color used to draw the background of the legend.


itemFont

private java.awt.Font itemFont
The font used to display the legend item names.


itemColor

private java.awt.Color itemColor
The Color used to display the legend item names.

Constructor Detail

ConfiLegend

ConfiLegend()
Method Detail

loadRootElement

public boolean loadRootElement(org.jdom.Element eRoot)
Specified by:
loadRootElement in interface Confi

getRootElement

public org.jdom.Element getRootElement()
Specified by:
getRootElement in interface Confi

load

public void load(org.jfree.chart.JFreeChart chart)
Description copied from interface: Confi
Carga, guarda, la configuracion del grafico

Specified by:
load in interface Confi
Parameters:
chart -

restore

public void restore(org.jfree.chart.JFreeChart chart)
Description copied from interface: Confi
Restaura, aplica, la configuracion al grafico;

Specified by:
restore in interface Confi
Parameters:
chart -

getKEY_CONFI_LEGEND

static java.lang.String getKEY_CONFI_LEGEND()
Returns:
Returns the kEY_CONFI_LEGEND.

getKEY_SHOW_LEGEND

static java.lang.String getKEY_SHOW_LEGEND()
Returns:
Returns the kEY_SHOW_LEGEND.

getKEY_BACKGROUNDCOLOR

static java.lang.String getKEY_BACKGROUNDCOLOR()
Returns:
Returns the kEY_BACKGROUNDCOLOR.

getKEY_ITEM_COLOR

static java.lang.String getKEY_ITEM_COLOR()
Returns:
Returns the kEY_ITEM_COLOR.

getKEY_ITEM_FONT

static java.lang.String getKEY_ITEM_FONT()
Returns:
Returns the kEY_ITEM_FONT.

getKEY_LINE_COLOR

static java.lang.String getKEY_LINE_COLOR()
Returns:
Returns the kEY_LINE_COLOR.

getBackgroundColor

java.awt.Color getBackgroundColor()
Returns:
Returns the backgroundColor.

setBackgroundColor

void setBackgroundColor(java.awt.Color backgroundColor)
Parameters:
backgroundColor - The backgroundColor to set.

getItemColor

java.awt.Color getItemColor()
Returns:
Returns the itemColor.

setItemColor

void setItemColor(java.awt.Color itemColor)
Parameters:
itemColor - The itemColor to set.

getItemFont

java.awt.Font getItemFont()
Returns:
Returns the itemFont.

setItemFont

void setItemFont(java.awt.Font itemFont)
Parameters:
itemFont - The itemFont to set.

getOutlineColor

java.awt.Color getOutlineColor()
Returns:
Returns the outlineColor.

setOutlineColor

void setOutlineColor(java.awt.Color outlineColor)
Parameters:
outlineColor - The outlineColor to set.

isShowLegend

boolean isShowLegend()
Returns:
Returns the showLegend.

setShowLegend

void setShowLegend(boolean showLegend)
Parameters:
showLegend - The showLegend to set.

JRubik v0.6

JRubik v0.6