org.askalon.graph.chart
Class ChartConfiguration

java.lang.Object
  extended by org.askalon.graph.chart.ChartConfiguration

public class ChartConfiguration
extends Object

Objects of this class describe the whole configuration for a chart and provide a settings dialog, allowing the user to dynamically change settings in a graphical dialog.

Author:
Georg Schild and Franz Endstrasser

Constructor Summary
ChartConfiguration(GraphicsPanel gp)
          Creates a new chart configuration for the specified graphics panel
 
Method Summary
 Color getAreaColor()
          Gets the color of the coordinate grids area.
 Color getAreagridColor()
          Gets the color of the areas grid.
 Color getAxisFontColor()
          Gets the color used for the axis text.
 Font getAxisLabelsFont()
          Gets the font of the axis labels of the coordinate grid.
 Color getBackgroundColor()
          Gets the color used for background of the chart.
 Font getDescriptionFont()
          Gets the font used for the descriptions text.
 Color getDescriptionFontColor()
          Gets the color used for the descriptions.
 Color getFloorColor()
          Gets the color of the coordinate grids floor.
 Color getFloorgridColor()
          Gets the color of the floors grid.
 Color getGridFontColor()
          Gets the color used for grid text.
 Font getGridLabelsFont()
          Gets the font used for the grid lables text.
 Color getLegendBackgroundColor()
          Gets the color used for the legends background.
 Font getLegendFont()
          Gets the font used for the legend text.
 Color getLegendFontColor()
          Gets the color used for legend text.
 void reset()
          Resets all configuration values to their default values.
 void setAreaColor(Color area)
          Sets the color of the coordinate grids area.
 void setAreagridColor(Color areagrid)
          Sets the color of the areas grid.
 void setAxisFontColor(Color axisFont)
          Sets the color used for the axis text.
 void setAxisLabelsFont(Font axis)
          Sets the font of the axis labels of the coordinate grid.
 void setBackgroundColor(Color background)
          Sets the color used for background of the chart.
 void setDescriptionFont(Font description)
          Sets the font used for the descriptions text.
 void setDescriptionFontColor(Color descriptionFont)
          Sets the color used for the descriptions.
 void setFloorColor(Color floor)
          Sets the color of the coordinate grids floor.
 void setFloorgridColor(Color floorgrid)
          Sets the color of the floors grid.
 void setGridFontColor(Color gridFont)
          Sets the color used for the grid text.
 void setGridLabelsFont(Font grid)
          Sets the font used for the grid lables text.
 void setLegendBackgroundColor(Color legendBackground)
          Sets the color used for the legends background.
 void setLegendFont(Font legend)
          Sets the font used for the legend text.
 void setLegendFontColor(Color legendFont)
          Sets the color used for the legend text.
 void showDialog()
          Sets the settings dialog visible.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartConfiguration

public ChartConfiguration(GraphicsPanel gp)
Creates a new chart configuration for the specified graphics panel

Parameters:
gp - the graphics panel for this chartconfiguration
See Also:
GraphicsPanel
Method Detail

reset

public void reset()
Resets all configuration values to their default values.

See Also:
Constants

showDialog

public void showDialog()
Sets the settings dialog visible.


getAreaColor

public Color getAreaColor()
Gets the color of the coordinate grids area.

Returns:
the areas color
See Also:
setAreaColor(Color), Color

setAreaColor

public void setAreaColor(Color area)
Sets the color of the coordinate grids area.

Parameters:
area - the new color to set for the coordinate grids area
See Also:
getAreaColor(), Color

getAxisLabelsFont

public Font getAxisLabelsFont()
Gets the font of the axis labels of the coordinate grid.

Returns:
the font the axis labels
See Also:
setAxisLabelsFont(Font), Font

setAxisLabelsFont

public void setAxisLabelsFont(Font axis)
Sets the font of the axis labels of the coordinate grid.

Parameters:
axis - the new font to set
See Also:
getAxisLabelsFont(), Font

getDescriptionFont

public Font getDescriptionFont()
Gets the font used for the descriptions text.

Returns:
the font of the descriptions text
See Also:
setDescriptionFont(Font), Font

setDescriptionFont

public void setDescriptionFont(Font description)
Sets the font used for the descriptions text.

Parameters:
description - the new description font to set
See Also:
getDescriptionFont(), Font

getFloorColor

public Color getFloorColor()
Gets the color of the coordinate grids floor.

Returns:
the floor color
See Also:
setFloorColor(Color), Color

setFloorColor

public void setFloorColor(Color floor)
Sets the color of the coordinate grids floor.

Parameters:
floor - the floor color to set
See Also:
getFloorColor(), Color

getFloorgridColor

public Color getFloorgridColor()
Gets the color of the floors grid.

Returns:
the floor grid color
See Also:
setFloorgridColor(Color), Color

setFloorgridColor

public void setFloorgridColor(Color floorgrid)
Sets the color of the floors grid.

Parameters:
floorgrid - the new floorgrid color to set
See Also:
getFloorgridColor(), Color

getGridLabelsFont

public Font getGridLabelsFont()
Gets the font used for the grid lables text.

Returns:
the font of the grid lables text
See Also:
setGridLabelsFont(Font), Font

setGridLabelsFont

public void setGridLabelsFont(Font grid)
Sets the font used for the grid lables text.

Parameters:
grid - the new grid lables font to set
See Also:
getGridLabelsFont(), Font

getAreagridColor

public Color getAreagridColor()
Gets the color of the areas grid.

Returns:
the area grid color
See Also:
setAreagridColor(Color), Color

setAreagridColor

public void setAreagridColor(Color areagrid)
Sets the color of the areas grid.

Parameters:
areagrid - the new color to set for the areas grid
See Also:
getAreaColor(), Color

getAxisFontColor

public Color getAxisFontColor()
Gets the color used for the axis text.

Returns:
the color of the axis text
See Also:
setAxisFontColor(Color), Color

setAxisFontColor

public void setAxisFontColor(Color axisFont)
Sets the color used for the axis text.

Parameters:
axisFont - the new axis color to set
See Also:
getAxisFontColor(), Color

getBackgroundColor

public Color getBackgroundColor()
Gets the color used for background of the chart.

Returns:
the color of the background
See Also:
setBackgroundColor(Color), Color

setBackgroundColor

public void setBackgroundColor(Color background)
Sets the color used for background of the chart.

Parameters:
background - the new background color to set
See Also:
getBackgroundColor(), Color

getDescriptionFontColor

public Color getDescriptionFontColor()
Gets the color used for the descriptions.

Returns:
the color of the descriptions text
See Also:
setDescriptionFontColor(Color), Color

setDescriptionFontColor

public void setDescriptionFontColor(Color descriptionFont)
Sets the color used for the descriptions.

Parameters:
descriptionFont - the new descriptions color to set
See Also:
getDescriptionFontColor(), Color

getGridFontColor

public Color getGridFontColor()
Gets the color used for grid text.

Returns:
the color of the grid text
See Also:
setGridFontColor(Color), Color

setGridFontColor

public void setGridFontColor(Color gridFont)
Sets the color used for the grid text.

Parameters:
gridFont - the new grid text color to set
See Also:
getGridFontColor(), Color

getLegendFont

public Font getLegendFont()
Gets the font used for the legend text.

Returns:
the font of the legend text
See Also:
setLegendFont(Font), Font

setLegendFont

public void setLegendFont(Font legend)
Sets the font used for the legend text.

Parameters:
legend - the new legend font to set
See Also:
setLegendFont(Font), Font

getLegendFontColor

public Color getLegendFontColor()
Gets the color used for legend text.

Returns:
the color of the legend text
See Also:
setLegendFontColor(Color), Color

setLegendFontColor

public void setLegendFontColor(Color legendFont)
Sets the color used for the legend text.

Parameters:
legendFont - the new legend color to set
See Also:
getLegendFontColor(), Color

getLegendBackgroundColor

public Color getLegendBackgroundColor()
Gets the color used for the legends background.

Returns:
the color of the legends background
See Also:
setLegendBackgroundColor(Color), Color

setLegendBackgroundColor

public void setLegendBackgroundColor(Color legendBackground)
Sets the color used for the legends background.

Parameters:
legendBackground - the new background color to set
See Also:
getLegendBackgroundColor(), Color


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams