Venice 0.8alpha

nz.org.venice.prefs.settings
Class ChartModuleSettings

java.lang.Object
  extended by nz.org.venice.prefs.settings.AbstractSettings
      extended by nz.org.venice.prefs.settings.ChartModuleSettings
All Implemented Interfaces:
Settings

public class ChartModuleSettings
extends AbstractSettings

This class represents ChartModule data which can be saved for the purposes of restoring the modules upon restart.

Author:
Mark Hummel
See Also:
PreferencesManager, ChartModuleSettingsWriter, ChartModuleSettingReader

Field Summary
 
Fields inherited from interface nz.org.venice.prefs.settings.Settings
ANALYSER, ANNMODULE, ANNRESULTS, CHART, CHARTMODULE, FRAME, GAMODULE, GARESULTS, GPMODULE, GPRESULTS, GRAPHS, HELP, HELPMODULE, MODULE, PAPERTRADEMODULE, PAPERTRADERESULTS, PORTFOLIO, PORTFOLIOMODULE, PREFERENCES, PREFERENCESMODULE, PREFS, QUOTEMODULE, ROOTMODULE, TABLE, TRANSACTIONMODULE, WATCHSCREENMODULE
 
Constructor Summary
ChartModuleSettings()
          Create new ChartModule settings.
ChartModuleSettings(java.lang.String key)
          Create new ChartModule settings.
 
Method Summary
 java.util.List getLevelSettingsList()
          Return the Level settings to reproduce the chart levels
 Module getModule(javax.swing.JDesktopPane desktop)
          Creates a ChartModule based on this ChartModuleSettings.
 java.util.List getSymbolList()
          Return the list of symbols for this chart.
 void setLevelSettingsList(java.util.List levelSettingsList)
          Put the level settings for the chart levels
 void setSymbolList(java.util.List symbolList)
          Set the symbolList of this chart.
 void setTitle(java.lang.String title)
          Set the Chart title
 java.lang.String toString()
           
 
Methods inherited from class nz.org.venice.prefs.settings.AbstractSettings
getGroup, getKey, getTitle, getType, setGroup, setKey, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChartModuleSettings

public ChartModuleSettings()
Create new ChartModule settings.


ChartModuleSettings

public ChartModuleSettings(java.lang.String key)
Create new ChartModule settings.

Parameters:
key - The graph Settings Identifier
Method Detail

setSymbolList

public void setSymbolList(java.util.List symbolList)
Set the symbolList of this chart.

Parameters:
symbolList - A list of symbols

getSymbolList

public java.util.List getSymbolList()
Return the list of symbols for this chart.

Returns:
A List of symbols.

getLevelSettingsList

public java.util.List getLevelSettingsList()
Return the Level settings to reproduce the chart levels

Returns:
A List of levels.

setLevelSettingsList

public void setLevelSettingsList(java.util.List levelSettingsList)
Put the level settings for the chart levels

Parameters:
levelSettingsList - A list of level settings

setTitle

public void setTitle(java.lang.String title)
Set the Chart title

Specified by:
setTitle in interface Settings
Overrides:
setTitle in class AbstractSettings
Parameters:
title - The chart title

getModule

public Module getModule(javax.swing.JDesktopPane desktop)
Creates a ChartModule based on this ChartModuleSettings.

Specified by:
getModule in interface Settings
Overrides:
getModule in class AbstractSettings

toString

public java.lang.String toString()
Overrides:
toString in class AbstractSettings

Venice 0.8alpha