edu.sdsc.mbt.viewables
Class ElementPreferences

java.lang.Object
  extended byedu.sdsc.mbt.viewables.ElementPreferences

public class ElementPreferences
extends java.lang.Object

This class encapsulates element color settings and is used to provide persistence to user settings by saving current colors to filesystem storage and reading them when loading the application and opening the element editing dialog.

Author:
Oleksandr V. Buzko
See Also:
StructureStyles, StylesPreferences, ElementStylesDialog

Constructor Summary
ElementPreferences()
           
 
Method Summary
 void applyConfiguration()
          Apply currently stored in this instance colors to ElementStyles.
 void getCurrentConfiguration()
          Read currently set element color preferences from ElementStyles
 void readPreferences()
          Open current color settings from persistent storage.
 void writePreferences()
          Save current color settings to the filesystem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementPreferences

public ElementPreferences()
Method Detail

getCurrentConfiguration

public void getCurrentConfiguration()
Read currently set element color preferences from ElementStyles


applyConfiguration

public void applyConfiguration()
Apply currently stored in this instance colors to ElementStyles.


writePreferences

public void writePreferences()
Save current color settings to the filesystem.


readPreferences

public void readPreferences()
Open current color settings from persistent storage.