com.tensegrity.application
Interface PreferenceHelp

All Known Implementing Classes:
PreferenceHelper, SwtPreferenceHelper

public interface PreferenceHelp

A PreferenceHelp can be used to perform common tasks involving preferences.

Author:
BurkhardWick

Method Summary
 void applyGridSettings()
          Applies the settings given by the preferences to the CompositeViewGrid object of the CompositeView.
 void applyGridSettings(GraphDocument document)
          Applies the grid settings of the preferences to the CompositeViewGrid object of the CompositeView of the given Document.
 void applyRulerSettings()
          Applies the settings given by the preferences to the CompositeViewRuler object of views.
 void applyRulerSettings(GraphDocument document)
          Applies the Ruler Settings to the given document.
 java.io.File getCurrentDirectory()
          Returns the current directory of this application.
 void initCurrentDirectory()
          Initializes the currently used directory.
 void initFrameSizeAndPosition()
          Initializes the size and the position of the top level frame to the values found in the preferences.
 void initToolbarVisibilties()
          Called at Application start to initialize the visibilities of the Toolbar.
 void setCurrentDirectory(java.io.File directory)
          Sets the currently used directory.
 void setLanguage(java.lang.String value)
          Sets the used language to the one specified by value.
 void setLookAndFeel(java.lang.String laf)
          Sets the look and feel to the one specified by value.
 void setTooltipsEnabled(boolean b)
          Enables the tooltips if b is true.
 

Method Detail

setLanguage

public void setLanguage(java.lang.String value)
Sets the used language to the one specified by value.

Parameters:
value - a string defining the language to be used.

setLookAndFeel

public void setLookAndFeel(java.lang.String laf)
Sets the look and feel to the one specified by value.

Parameters:
laf - a string defining the look and feel to be used.

setTooltipsEnabled

public void setTooltipsEnabled(boolean b)
Enables the tooltips if b is true.

Parameters:
b - true, if tooltips should be displayed.

getCurrentDirectory

public java.io.File getCurrentDirectory()
Returns the current directory of this application.

Returns:
the current directory of this application.

setCurrentDirectory

public void setCurrentDirectory(java.io.File directory)
Sets the currently used directory.

Parameters:
directory - the directory to set.

initFrameSizeAndPosition

public void initFrameSizeAndPosition()
Initializes the size and the position of the top level frame to the values found in the preferences.


initCurrentDirectory

public void initCurrentDirectory()
Initializes the currently used directory.


applyRulerSettings

public void applyRulerSettings(GraphDocument document)
Applies the Ruler Settings to the given document.

Parameters:
document - the document to apply the new ruler settings to.

applyRulerSettings

public void applyRulerSettings()
Applies the settings given by the preferences to the CompositeViewRuler object of views.


applyGridSettings

public void applyGridSettings(GraphDocument document)
Applies the grid settings of the preferences to the CompositeViewGrid object of the CompositeView of the given Document.

Parameters:
document - the GraphDocument containing the grid to configure.

applyGridSettings

public void applyGridSettings()
Applies the settings given by the preferences to the CompositeViewGrid object of the CompositeView.


initToolbarVisibilties

public void initToolbarVisibilties()
Called at Application start to initialize the visibilities of the Toolbar. They are set to their last state.



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.