Mercurial > hg > ltpda
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % SETAPPLICATIONDATA sets the application data from the preferences object. | |
2 % | |
3 % Call: LTPDAprefs.setApplicationData() | |
4 % | |
5 % Parameters: | |
6 % prefs - preferences object | |
7 % | |
8 % Version: | |
9 % $Id: setApplicationData.m,v 1.1 2010/11/30 17:39:03 ingo Exp $ | |
10 % | |
11 | |
12 function setApplicationData() | |
13 | |
14 set(0,'DefaultAxesFontSize', LTPDAprefs.axesFontSize); | |
15 set(0,'DefaultAxesLineWidth', LTPDAprefs.axesLineWidth); | |
16 set(0,'DefaultLineLineWidth', LTPDAprefs.lineLineWidth); | |
17 set(0,'defaultlinemarkersize', LTPDAprefs.lineMarkerSize); | |
18 set(0,'DefaultAxesGridLineStyle', LTPDAprefs.gridStyle); | |
19 set(0,'DefaultAxesMinorGridLineStyle', LTPDAprefs.minorGridStyle); | |
20 val = LTPDAprefs.axesFontWeight; | |
21 if strcmpi(val, 'Plain') | |
22 set(0, 'DefaultAxesFontWeight', 'normal'); | |
23 elseif strcmpi(val, 'Bold') | |
24 set(0, 'DefaultAxesFontWeight', 'bold'); | |
25 elseif strcmpi(val, 'Italic') | |
26 set(0, 'DefaultAxesFontWeight', 'light'); | |
27 elseif strcmpi(val, 'Bold Italic') | |
28 set(0, 'DefaultAxesFontWeight', 'demi'); | |
29 else | |
30 error('### Unknown value (%s) for the default axes property ''FontWeight''', char(val)); | |
31 end | |
32 | |
33 end |