Package sabx10 :: Package profiles :: Module consts
[hide private]
[frames] | no frames]

Source Code for Module sabx10.profiles.consts

 1  ############################################################################### 
 2  # 
 3  # sabx10 - an SABX file manipulation library 
 4  # Copyright (C) 2009, 2010 Jay Farrimond (jay@sabikerides.com) 
 5  # 
 6  # This file is part of sabx10. 
 7  # 
 8  # sabx10 is free software: you can redistribute it and/or modify it under the 
 9  # terms of the GNU General Public License as published by the Free Software 
10  # Foundation, either version 3 of the License, or (at your option) any later 
11  # version. 
12  # 
13  # sabx10 is distributed in the hope that it will be useful, but WITHOUT ANY 
14  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 
15  # A PARTICULAR PURPOSE.  See the GNU General Public License for more details. 
16  # 
17  # You should have received a copy of the GNU General Public License along with 
18  # sabx10.  If not, see <http://www.gnu.org/licenses/>. 
19  # 
20  ############################################################################### 
21  """ 
22  Constant values used by the profile generator package. 
23   
24  @var PROFILE_PPI: pixels per inch for screen-display resolution 
25  @type PROFILE_PPI: C{int} 
26  @var PROFILE_PDF_PPI: pixels per inch for PDF resolution 
27  @type PROFILE_PDF_PPI: C{int} 
28  @var SMALL_WIDTH: width of small profiles 
29  @type SMALL_WIDTH: C{int} 
30  @var SMALL_HEIGHT: height of small profiles 
31  @type SMALL_HEIGHT: C{int} 
32  @var LARGE_WIDTH: width of large profiles 
33  @type LARGE_WIDTH: C{int} 
34  @var LARGE_HEIGHT: height of large profiles 
35  @type LARGE_HEIGHT: C{int} 
36  @var FONT_POINTS_PER_INCH: PPI for fonts 
37  @type FONT_POINTS_PER_INCH: C{int} 
38  @var FONT_NAME: font to use in profile 
39  @type FONT_NAME: C{string} 
40  @var LABEL_FONT_SIZE: size of font for labels 
41  @type LABEL_FONT_SIZE: C{int} 
42  @var ANNO_FONT_SIZE: size of font for plot annotations 
43  @type ANNO_FONT_SIZE: C{int} 
44  """ 
45  PROFILE_PPI = 75 
46  PROFILE_PDF_PPI = 200 
47  SMALL_WIDTH = 4  
48  SMALL_HEIGHT = 2 
49  LARGE_WIDTH = 10 
50  LARGE_HEIGHT = 5 
51  FONT_POINTS_PER_INCH = 72 
52  FONT_NAME = 'sans-serif' 
53  LABEL_FONT_SIZE = 12 
54  ANNO_FONT_SIZE = 8 
55