Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / org.gvsig.annotation / org.gvsig.annotation.lib / org.gvsig.annotation.lib.api / src / main / java / org / gvsig / annotation / AnnotationCreationService.java @ 33272

History | View | Annotate | Download (3.08 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22

    
23
package org.gvsig.annotation;
24

    
25
import org.gvsig.annotation.calculator.AnnotationPositionCalculator;
26
import org.gvsig.fmap.dal.exception.DataException;
27
import org.gvsig.fmap.dal.feature.FeatureStore;
28

    
29
/**
30
 * Represents a Annotation element.
31
 * 
32
 * @author gvSIG team
33
 * @version $Id$
34
 */
35
public interface AnnotationCreationService {
36

    
37
        public FeatureStore getFeatureStore();
38
        
39
    public FeatureStore createAnnotationStore(String destinationShapeFile, int textValueAttribute) throws AnnotationCreationException;
40
    
41
    public FeatureStore createAnnotationStore(String destinationShapeFile, String textValueAttributeName) throws AnnotationCreationException;   
42
         
43
    public void setAnnotationCreationServiceNotification(AnnotationCreationServiceNotification annotationCreationServiceNotification);
44
    
45
    public AnnotationCreationServiceNotification getAnnotationCreationServiceNotification();
46
    
47
    public void setAnnotationCreationFinishAction(AnnotationCreationFinishAction annotationCreationFinishAction);
48
    
49
    public AnnotationCreationFinishAction getAnnotationCreationFinishAction();
50
    
51
    public void setAnnotationPositionCalculator(AnnotationPositionCalculator annotationPositionCalculator);
52
       
53
    public void setFontTypetAttribute(int index) throws DataException;
54
    
55
    public void setFontStyleAttribute(int index) throws DataException;
56
                            
57
    public void setFontColorAttribute(int index) throws DataException;
58
    
59
    public void setFontHeigthAttribute(int index) throws DataException;
60
    
61
    public void setFontRotationAttribute(int index) throws DataException;
62
    
63
    public void setFontTypetAttribute(String attributeName) throws DataException;
64
    
65
    public void setFontStyleAttribute(String attributeName) throws DataException;
66
                    
67
    public void setFontColorAttribute(String attributeName) throws DataException;
68
    
69
    public void setFontHeigthAttribute(String attributeName) throws DataException;
70
    
71
    public void setFontRotationAttribute(String attributeName) throws DataException;
72
    
73
    /**
74
     * Returns the {@link AnnotationManager}
75
     * 
76
     * @return {@link AnnotationManager}
77
     * @see {@link AnnotationManager}
78
     */
79
    public AnnotationManager getManager();
80
}