Statistics
| Revision:

root / branches / gvSIG_1.11.0_Mejoras_gvSIG-EIEL / extensions / extSeriesMapas / src / org / gvsig / eiel / print / series / model / MapSerieSettings.java @ 34815

History | View | Annotate | Download (2.51 KB)

1
package org.gvsig.eiel.print.series.model;
2

    
3
import java.awt.Image;
4
import java.awt.geom.Rectangle2D;
5

    
6
import com.iver.cit.gvsig.project.documents.view.gui.View;
7

    
8
public class MapSerieSettings {
9
        
10
        public static final int MAP_SERIES_ORIENTATION_LANDSCAPE = 0;
11
        public static final int MAP_SERIES_ORIENTATION_PORTRAIT = 1;
12
        
13
        public static final int MAP_SERIES_DPI_DRAFT = 96;
14
        public static final int MAP_SERIES_DPI_PAPER = 300;
15
        public static final int MAP_SERIES_DPI_HIGH = 600;
16
        
17
        public static final int MAP_SERIES_METADATA_BOX_NONE = 0;
18
        public static final int MAP_SERIES_METADATA_BOX_TABLE = 1;
19
        public static final int MAP_SERIES_METADATA_BOX_IMAGE = 2;
20

    
21
        private int scaleDenom = 1000;
22
        
23
        private Rectangle2D gridExtent = null;
24
        private int horCells = 1;
25
        private int verCells = 1;
26
        
27
        private String title = "";
28
        private String subTitle = "";
29
        private Image logoImage = null;
30
        
31
        private int orientation = MAP_SERIES_ORIENTATION_LANDSCAPE;
32
        private int dpi = MAP_SERIES_DPI_DRAFT;
33
        private int metaBoxType = MAP_SERIES_METADATA_BOX_TABLE;
34

    
35
        private View theView = null;
36
        
37
        public MapSerieSettings(View v) {
38
                theView = v;
39
        }
40
        
41
        private MapSerieSettings() {
42
                
43
        }
44
        
45
        public int getScaleDenom() {
46
                return scaleDenom;
47
        }
48

    
49
        public void setScaleDenom(int scaleDenom) {
50
                this.scaleDenom = scaleDenom;
51
        }
52

    
53
        public Rectangle2D getGridExtent() {
54
                return gridExtent;
55
        }
56

    
57
        public void setGridExtent(Rectangle2D gridExtent) {
58
                this.gridExtent = gridExtent;
59
        }
60

    
61
        public int getHorCells() {
62
                return horCells;
63
        }
64

    
65
        public void setHorCells(int horCells) {
66
                this.horCells = horCells;
67
        }
68

    
69
        public int getVerCells() {
70
                return verCells;
71
        }
72

    
73
        public void setVerCells(int verCells) {
74
                this.verCells = verCells;
75
        }
76

    
77
        public String getTitle() {
78
                return title;
79
        }
80

    
81
        public void setTitle(String title) {
82
                this.title = title;
83
        }
84

    
85
        public String getSubTitle() {
86
                return subTitle;
87
        }
88

    
89
        public void setSubTitle(String subTitle) {
90
                this.subTitle = subTitle;
91
        }
92

    
93
        public int getOrientation() {
94
                return orientation;
95
        }
96

    
97
        public void setOrientation(int orientation) {
98
                this.orientation = orientation;
99
        }
100

    
101
        public int getDpi() {
102
                return dpi;
103
        }
104

    
105
        public void setDpi(int dpi) {
106
                this.dpi = dpi;
107
        }
108

    
109
        public int getMetaBoxType() {
110
                return metaBoxType;
111
        }
112

    
113
        public void setMetaBoxType(int metaBoxType) {
114
                this.metaBoxType = metaBoxType;
115
        }
116

    
117
        public View getTheView() {
118
                return theView;
119
        }
120

    
121
        public void setTheView(View theView) {
122
                this.theView = theView;
123
        }
124

    
125
        public void setLogoImage(Image img) {
126
                logoImage = img;
127
        }
128
        
129
        public Image getLogoImage() {
130
                return logoImage;
131
        }
132

    
133

    
134

    
135
        
136

    
137
}