diff m-toolbox/classes/@LTPDAprefs/setApplicationData.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@LTPDAprefs/setApplicationData.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,33 @@
+% SETAPPLICATIONDATA sets the application data from the preferences object.
+%
+% Call:         LTPDAprefs.setApplicationData()
+%
+% Parameters:
+%       prefs - preferences object
+%
+% Version:
+%     $Id: setApplicationData.m,v 1.1 2010/11/30 17:39:03 ingo Exp $
+%
+
+function setApplicationData()
+  
+  set(0,'DefaultAxesFontSize', LTPDAprefs.axesFontSize);
+  set(0,'DefaultAxesLineWidth', LTPDAprefs.axesLineWidth);
+  set(0,'DefaultLineLineWidth', LTPDAprefs.lineLineWidth);
+  set(0,'defaultlinemarkersize', LTPDAprefs.lineMarkerSize);
+  set(0,'DefaultAxesGridLineStyle', LTPDAprefs.gridStyle);
+  set(0,'DefaultAxesMinorGridLineStyle', LTPDAprefs.minorGridStyle);
+  val = LTPDAprefs.axesFontWeight;
+  if strcmpi(val, 'Plain')
+    set(0, 'DefaultAxesFontWeight', 'normal');
+  elseif strcmpi(val, 'Bold')
+    set(0, 'DefaultAxesFontWeight', 'bold');
+  elseif strcmpi(val, 'Italic')
+    set(0, 'DefaultAxesFontWeight', 'light');
+  elseif strcmpi(val, 'Bold Italic')
+    set(0, 'DefaultAxesFontWeight', 'demi');
+  else
+    error('### Unknown value (%s) for the default axes property ''FontWeight''', char(val));
+  end
+  
+end