com.dukascopy.api.chart
Interface IChartTheme

All Superinterfaces:
java.lang.Cloneable

public interface IChartTheme
extends java.lang.Cloneable

The interface represents a chart theme


Nested Class Summary
static class IChartTheme.ColoredElement
          Theme color settings
static class IChartTheme.Predefined
          Predefined chart theme enumeration, use it in IClientChartPresentationManager.getPredefinedTheme
static class IChartTheme.StrokeElement
          Theme stroke settings
static class IChartTheme.TextElement
          Theme text settings
 
Method Summary
 IChartTheme clone()
          Clones a chart theme
 java.awt.Color getColor(IChartTheme.ColoredElement coloredElement)
          Returns the color of a colored chart element
 java.awt.Font getFont(IChartTheme.TextElement textElement)
          Returns the font of a text chart element
 java.lang.String getName()
          Returns theme name
 java.awt.BasicStroke getStroke(IChartTheme.StrokeElement strokeElement)
          Returns the stroke of a stroke chart element
 IChartTheme setColor(IChartTheme.ColoredElement coloredElement, java.awt.Color color)
          Sets the color of a colored chart element
 IChartTheme setFont(IChartTheme.TextElement textElement, java.awt.Font font)
          Sets the font of a text chart element
 IChartTheme setName(java.lang.String name)
          Sets theme name
 IChartTheme setStroke(IChartTheme.StrokeElement strokeElement, java.awt.BasicStroke stroke)
          Sets the stroke of a stroke chart element
 

Method Detail

setName

IChartTheme setName(java.lang.String name)
Sets theme name

Parameters:
name -
Returns:
the theme itself

getName

java.lang.String getName()
Returns theme name

Returns:
theme name

setColor

IChartTheme setColor(IChartTheme.ColoredElement coloredElement,
                     java.awt.Color color)
Sets the color of a colored chart element

Parameters:
coloredElement -
color -
Returns:
the theme itself

getColor

java.awt.Color getColor(IChartTheme.ColoredElement coloredElement)
Returns the color of a colored chart element

Parameters:
coloredElement -
Returns:
the color of a colored chart element

setFont

IChartTheme setFont(IChartTheme.TextElement textElement,
                    java.awt.Font font)
Sets the font of a text chart element

Parameters:
textElement -
font -
Returns:
the theme itself

getFont

java.awt.Font getFont(IChartTheme.TextElement textElement)
Returns the font of a text chart element

Parameters:
textElement -
Returns:
the font of a text chart element

setStroke

IChartTheme setStroke(IChartTheme.StrokeElement strokeElement,
                      java.awt.BasicStroke stroke)
Sets the stroke of a stroke chart element

Parameters:
strokeElement -
stroke -
Returns:
the theme itself

getStroke

java.awt.BasicStroke getStroke(IChartTheme.StrokeElement strokeElement)
Returns the stroke of a stroke chart element

Parameters:
textElement -
Returns:
the stroke of a stroke chart element

clone

IChartTheme clone()
Clones a chart theme

Returns:
a cloned chart theme