view m-toolbox/classes/@LTPDAprefs/setApplicationData.m @ 46:ca0b8d4dcdb6 database-connection-manager

Fix
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:27 +0100
parents f0afece42f48
children
line wrap: on
line source

% 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