Class HistoryFile
java.lang.Object
org.openscience.jmol.app.HistoryFile
The history file contains data from previous uses of Jmol.
- Author:
- Bradley A. Smith (bradley@baysmith.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperties(Properties properties) Adds the given properties to the history.booleanaddProperty(String key, String value) Adds the given property to the history.voidaddWindowInfo(String name, Component window, Point border) Adds the window informations to the history.voidaddWindowInfo(String name, Component window, Point border, Dimension d) voidaddWindowInnerInfo(String name, Component window, Dimension inner) voidclear()getFile()getProperty(String key, String defaultValue) Get the value of a propertygetWindowBorder(String name) getWindowPosition(String name) getWindowSize(String name) voidrepositionWindow(String name, Component window) Uses the informations in the history to reposition the window.voidrepositionWindow(String name, Component window, int minWidth, int minHeight, boolean allowVisible) Uses the informations in the history to reposition the window.voidsave()Saves properties to the history file.
-
Constructor Details
-
HistoryFile
-
-
Method Details
-
addProperties
Adds the given properties to the history. If a property existed previously, it will be replaced.- Parameters:
properties- the properties to add.
-
getProperties
- Returns:
- The properties stored in the history file.
-
getProperty
-
addProperty
-
getWindowPosition
-
getWindowInnerDimension
-
getWindowBorder
-
getWindowSize
-
addWindowInfo
-
addWindowInfo
-
addWindowInnerInfo
-
repositionWindow
-
repositionWindow
-
getFile
-
save
public void save()Saves properties to the history file. -
clear
public void clear()
-