Venice 0.751beta

nz.org.venice.prefs.settings
Class MenuSettings

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

public class MenuSettings
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
MenuSettings()
          Create new GraphSettings.
MenuSettings(java.lang.String key, java.lang.String parent, java.lang.String title)
          Create new MenuSettings.
 
Method Summary
 void addGraph(Graph graph)
           
 java.util.HashMap getMap()
          get the map of the menu
 Symbol getMenuItem()
          Return the symbol assigned to this graph
 Module getModule(javax.swing.JDesktopPane desktop)
          Return a Module based on the settings.
 java.lang.String getTitle()
          Return the graph title
 void setMap(java.util.HashMap map)
           
 void setMap(java.util.List graphList)
          Set the map of the menu
 void setMenu(javax.swing.JMenuItem item)
          Set the symbol of the graph
 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

MenuSettings

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

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

MenuSettings

public MenuSettings()
Create new GraphSettings.

Method Detail

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

setMenu

public void setMenu(javax.swing.JMenuItem item)
Set the symbol of the graph

Parameters:
item -

getMenuItem

public Symbol getMenuItem()
Return the symbol assigned to this graph

Returns:
The quote symbol

setMap

public void setMap(java.util.List graphList)
Set the map of the menu

Parameters:
graphList - A list of graphs

setMap

public void setMap(java.util.HashMap map)

addGraph

public void addGraph(Graph graph)

getMap

public java.util.HashMap getMap()
get the map of the menu

Returns:
map A map representing the selected menu items

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

Venice 0.751beta