Revision 5558 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/LayerDefinition.java
LayerDefinition.java | ||
---|---|---|
43 | 43 |
*/ |
44 | 44 |
package com.iver.cit.gvsig.fmap.drivers; |
45 | 45 |
|
46 |
import org.cresques.cts.IProjection; |
|
47 |
|
|
46 | 48 |
import com.iver.cit.gvsig.fmap.core.FShape; |
47 | 49 |
|
48 | 50 |
/** |
49 | 51 |
* @author fjp |
50 | 52 |
* |
51 | 53 |
*/ |
52 |
public abstract class LayerDefinition implements ILayerDefinition { |
|
53 |
protected String layerName = null; |
|
54 |
public class LayerDefinition extends TableDefinition implements ILayerDefinition { |
|
54 | 55 |
|
55 |
protected FieldDescription[] fieldsDesc = null; |
|
56 |
|
|
57 | 56 |
protected int shapeType = FShape.MULTI; |
57 |
protected IProjection proj; |
|
58 | 58 |
|
59 |
/* |
|
60 |
* (non-Javadoc) |
|
61 |
* |
|
62 |
* @see com.iver.cit.gvsig.fmap.drivers.ITableDefinition#getName() |
|
63 |
*/ |
|
64 |
public String getName() { |
|
65 |
return layerName; |
|
66 |
} |
|
67 | 59 |
|
68 |
/* |
|
69 |
* (non-Javadoc) |
|
70 |
* |
|
71 |
* @see com.iver.cit.gvsig.fmap.drivers.ITableDefinition#setName(java.lang.String) |
|
72 |
*/ |
|
73 |
public void setName(String layerName) { |
|
74 |
this.layerName = layerName; |
|
75 |
} |
|
76 |
|
|
77 |
/* |
|
78 |
* (non-Javadoc) |
|
79 |
* |
|
80 |
* @see com.iver.cit.gvsig.fmap.drivers.ITableDefinition#getFieldsDesc() |
|
81 |
*/ |
|
82 |
public FieldDescription[] getFieldsDesc() { |
|
83 |
return fieldsDesc; |
|
84 |
} |
|
85 |
|
|
86 |
/* |
|
87 |
* (non-Javadoc) |
|
88 |
* |
|
89 |
* @see com.iver.cit.gvsig.fmap.drivers.ITableDefinition#setFieldsDesc(com.iver.cit.gvsig.fmap.drivers.FieldDescription[]) |
|
90 |
*/ |
|
91 |
public void setFieldsDesc(FieldDescription[] fieldsDesc) { |
|
92 |
this.fieldsDesc = fieldsDesc; |
|
93 |
} |
|
94 |
|
|
95 | 60 |
/* (non-Javadoc) |
96 | 61 |
* @see com.iver.cit.gvsig.fmap.drivers.ILayerDefinition#getShapeType() |
97 | 62 |
*/ |
... | ... | |
106 | 71 |
this.shapeType = shapeType; |
107 | 72 |
} |
108 | 73 |
|
74 |
public IProjection getProjection() { |
|
75 |
return proj; |
|
76 |
} |
|
77 |
|
|
78 |
public void setProjection(IProjection proj) { |
|
79 |
this.proj = proj; |
|
80 |
} |
|
81 |
|
|
109 | 82 |
} |
Also available in: Unified diff