svn-gvsig-desktop / tags / v1_0_2_Build_912 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / MappingAnnotation.java @ 11422
History | View | Annotate | Download (1.98 KB)
1 |
package com.iver.cit.gvsig.fmap.layers; |
---|---|
2 |
|
3 |
import com.iver.utiles.XMLEntity; |
4 |
|
5 |
public class MappingAnnotation { |
6 |
private int columnText=-1; |
7 |
private int columnRotate=-1; |
8 |
private int columnColor=-1; |
9 |
private int columnHeight=-1; |
10 |
private int columnTypeFont=-1; |
11 |
private int columnStyleFont=-1; |
12 |
public int getColumnColor() { |
13 |
return columnColor;
|
14 |
} |
15 |
public void setColumnColor(int columnColor) { |
16 |
this.columnColor = columnColor;
|
17 |
} |
18 |
public int getColumnHeight() { |
19 |
return columnHeight;
|
20 |
} |
21 |
public void setColumnHeight(int columnHeight) { |
22 |
this.columnHeight = columnHeight;
|
23 |
} |
24 |
public int getColumnRotate() { |
25 |
return columnRotate;
|
26 |
} |
27 |
public void setColumnRotate(int columnRotate) { |
28 |
this.columnRotate = columnRotate;
|
29 |
} |
30 |
public int getColumnStyleFont() { |
31 |
return columnStyleFont;
|
32 |
} |
33 |
public void setColumnStyleFont(int columnStyleFont) { |
34 |
this.columnStyleFont = columnStyleFont;
|
35 |
} |
36 |
public int getColumnText() { |
37 |
return columnText;
|
38 |
} |
39 |
public void setColumnText(int columnText) { |
40 |
this.columnText = columnText;
|
41 |
} |
42 |
public int getColumnTypeFont() { |
43 |
return columnTypeFont;
|
44 |
} |
45 |
public void setColumnTypeFont(int columnTypeFont) { |
46 |
this.columnTypeFont = columnTypeFont;
|
47 |
} |
48 |
public XMLEntity getXMLEntity() {
|
49 |
XMLEntity xml=new XMLEntity();
|
50 |
xml.putProperty("className",this.getClass().getName()); |
51 |
xml.putProperty("columnText",columnText);
|
52 |
xml.putProperty("columnRotate",columnRotate);
|
53 |
xml.putProperty("columnColor",columnColor);
|
54 |
xml.putProperty("columnHeight",columnHeight);
|
55 |
xml.putProperty("columnTypeFont",columnTypeFont);
|
56 |
xml.putProperty("columnStyleFont",columnStyleFont);
|
57 |
return xml;
|
58 |
} |
59 |
public static MappingAnnotation createFromXML(XMLEntity xml) { |
60 |
MappingAnnotation m=new MappingAnnotation();
|
61 |
m.setColumnText(xml.getIntProperty("columnText"));
|
62 |
m.setColumnRotate(xml.getIntProperty("columnRotate"));
|
63 |
m.setColumnColor(xml.getIntProperty("columnColor"));
|
64 |
m.setColumnHeight(xml.getIntProperty("columnHeight"));
|
65 |
m.setColumnTypeFont(xml.getIntProperty("columnTypeFont"));
|
66 |
m.setColumnStyleFont(xml.getIntProperty("columnStyleFont"));
|
67 |
return m;
|
68 |
} |
69 |
} |