es.aeat.eett.plugins.chart
Class ConfiChart
java.lang.Object
es.aeat.eett.plugins.chart.ConfiChart
- All Implemented Interfaces:
- Confi
- public final class ConfiChart
- extends java.lang.Object
- implements Confi
- Author:
- f00992
Constructor Summary |
private |
ConfiChart()
crea una nueva instancia de ConfiChart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localizationResources
private static java.util.ResourceBundle localizationResources
KEY_CONFI_CHART
public static final java.lang.String KEY_CONFI_CHART
- See Also:
- Constant Field Values
NAME_DIR
private static final java.lang.String NAME_DIR
- See Also:
- Constant Field Values
fUser
private java.io.File fUser
tiposCharts
private java.lang.String[] tiposCharts
confiTitle
private ConfiTitle confiTitle
confiLegend
private ConfiLegend confiLegend
confiPlot
private ConfiPlot confiPlot
confiOther
private ConfiOther confiOther
confiMisc
private ConfiMisc confiMisc
instance
private static ConfiChart instance
KEY_FONT
static final java.lang.String KEY_FONT
- See Also:
- Constant Field Values
KEY_FONT_NAME
static final java.lang.String KEY_FONT_NAME
- See Also:
- Constant Field Values
KEY_FONT_SIZE
static final java.lang.String KEY_FONT_SIZE
- See Also:
- Constant Field Values
KEY_FONT_IS_BOLD
static final java.lang.String KEY_FONT_IS_BOLD
- See Also:
- Constant Field Values
KEY_FONT_IS_ITALIC
static final java.lang.String KEY_FONT_IS_ITALIC
- See Also:
- Constant Field Values
KEY_COLOR
static final java.lang.String KEY_COLOR
- See Also:
- Constant Field Values
KEY_RED
static final java.lang.String KEY_RED
- See Also:
- Constant Field Values
KEY_GREEN
static final java.lang.String KEY_GREEN
- See Also:
- Constant Field Values
KEY_BLUE
static final java.lang.String KEY_BLUE
- See Also:
- Constant Field Values
KEY_INSETS
static final java.lang.String KEY_INSETS
- See Also:
- Constant Field Values
KEY_TOP
static final java.lang.String KEY_TOP
- See Also:
- Constant Field Values
KEY_LEFT
static final java.lang.String KEY_LEFT
- See Also:
- Constant Field Values
KEY_BOTTOM
static final java.lang.String KEY_BOTTOM
- See Also:
- Constant Field Values
KEY_RIGHT
static final java.lang.String KEY_RIGHT
- See Also:
- Constant Field Values
ConfiChart
private ConfiChart()
- crea una nueva instancia de ConfiChart
init
private void init()
saveConfi
void saveConfi()
throws java.io.IOException
- Throws:
java.io.IOException
copyFile
private void copyFile(java.io.File source,
java.io.File dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInstance
public static ConfiChart getInstance()
getTiposCharts
public java.lang.String[] getTiposCharts()
- Returns:
- Returns the tiposCharts.
getChartType
public int getChartType(java.lang.String nameType)
- Parameters:
nameType
-
- Returns:
- int representado el tipo de grafico (-1 si nameType no el valido)
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
-
getFontElement
public static org.jdom.Element getFontElement(java.awt.Font font)
loadFontElement
public static java.awt.Font loadFontElement(org.jdom.Element eFont)
loadColorElement
public static java.awt.Color loadColorElement(org.jdom.Element eColor)
getColorElement
public static org.jdom.Element getColorElement(java.awt.Color color)
loadInsetsElement
public static java.awt.Insets loadInsetsElement(org.jdom.Element eInsets)
getInsetsElement
public static org.jdom.Element getInsetsElement(java.awt.Insets insets)
getConfiLegend
ConfiLegend getConfiLegend()
- Returns:
- Returns the confiLegend.
getConfiTitle
ConfiTitle getConfiTitle()
- Returns:
- Returns the confiTitle.
getConfiOther
ConfiOther getConfiOther()
- Returns:
- Returns the confiOther.
getConfiPlot
ConfiPlot getConfiPlot()
- Returns:
- Returns the confiPlot.
getConfiMisc
ConfiMisc getConfiMisc()
- Returns:
- Returns the confiMisc.
getKEY_CONFI_CHART
public static java.lang.String getKEY_CONFI_CHART()
- Returns:
- Returns the kEY_CONFI_CHART.
JRubik v0.6