Venice 0.751beta

nz.org.venice.prefs.settings
Class GraphSettings

java.lang.Object
  extended bynz.org.venice.prefs.settings.AbstractSettings
      extended bynz.org.venice.prefs.settings.GraphSettings
All Implemented Interfaces:
Settings

public class GraphSettings
extends AbstractSettings

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

Author:
Mark Hummel
See Also:
PreferencesManager

Field Summary
 
Fields inherited from interface nz.org.venice.prefs.settings.Settings
ALERTS, ANALYSER, ANNMODULE, ANNRESULTS, CHART, CHARTMODULE, FRAME, GAMODULE, GARESULTS, GPMODULE, GPRESULTS, GRAPHS, HELP, HELPMODULE, MENUS, MODULE, PAPERTRADEMODULE, PAPERTRADERESULTS, PORTFOLIO, PORTFOLIOMODULE, PORTFOLIOTABLEMODULE, PREFERENCES, PREFERENCESMODULE, PREFS, QUOTEMODULE, ROOTMODULE, TABLE, TRANSACTIONMODULE, WATCHSCREENMODULE
 
Constructor Summary
GraphSettings()
          Create new GraphSettings.
GraphSettings(java.lang.String key, java.lang.String parent, java.lang.String title)
          Create new GraphSettings.
 
Method Summary
 Graph getGraph(EODQuoteBundle bundle)
          This is factory method which returns a graph represented by this object's settings.
 Graph getGraph(EODQuoteBundle bundle, Portfolio portfolio)
           
 Module getModule(javax.swing.JDesktopPane desktop)
          Return a Module based on the settings.
 java.util.HashMap getSettings()
          Return the internal graph settings
 java.util.List getSettingsSymbolList()
          Return the symbolList
 int getSourceType()
          Return the graph source type
 java.lang.String getTitle()
          Return the graph title
 void setSettings(java.util.HashMap settings)
          Set the internal graph settings.
 void setSettingsSymbolList(java.util.List settingsSymbolList)
          Set the symbollist
 void setSourceType(int sourceType)
          Set the graph source type
 void setTitle(java.lang.String title)
          Set the graph title
 
Methods inherited from class nz.org.venice.prefs.settings.AbstractSettings
getGroup, getHBarPolicy, getHBarValue, getKey, getType, getVBarPolicy, getVBarValue, setGroup, setHBarPolicy, setHBarValue, setKey, setScrollBarValues, setType, setVBarPolicy, setVBarValue, toString, updateScrollPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphSettings

public GraphSettings(java.lang.String key,
                     java.lang.String parent,
                     java.lang.String title)
Create new GraphSettings.

Parameters:
key - The graph Settings Identifier
parent - The chart settings identifier
title - The title of the graph.

GraphSettings

public GraphSettings()
Create new GraphSettings.

Method Detail

getSettings

public java.util.HashMap getSettings()
Return the internal graph settings

Returns:
A hashMap representing a set of key-value pairs

setSettings

public void setSettings(java.util.HashMap settings)
Set the internal graph settings.

Parameters:
settings - A hashmap representing the settings data

getTitle

public java.lang.String getTitle()
Return the graph title

Specified by:
getTitle in interface Settings
Overrides:
getTitle in class AbstractSettings
Returns:
The graph title

setTitle

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

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

setSourceType

public void setSourceType(int sourceType)
Set the graph source type

Parameters:
sourceType - The graph source type

getSourceType

public int getSourceType()
Return the graph source type

Returns:
The graph source type

getSettingsSymbolList

public java.util.List getSettingsSymbolList()
Return the symbolList

Returns:
A list of symbols for this graph

setSettingsSymbolList

public void setSettingsSymbolList(java.util.List settingsSymbolList)
Set the symbollist

Parameters:
settingsSymbolList - A list of symbols for this graph

getModule

public Module getModule(javax.swing.JDesktopPane desktop)
Description copied from interface: Settings
Return a Module based on the settings.

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

getGraph

public Graph getGraph(EODQuoteBundle bundle)
This is factory method which returns a graph represented by this object's settings.

Returns:
A graph with these settings.

getGraph

public Graph getGraph(EODQuoteBundle bundle,
                      Portfolio portfolio)

Venice 0.751beta