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 / AnnotationManager.java @ 33272

History | View | Annotate | Download (3.26 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
package org.gvsig.annotation;
23

    
24
import java.awt.Color;
25
import java.util.List;
26

    
27
import org.gvsig.annotation.calculator.AnnotationPositionCalculator;
28
import org.gvsig.annotation.calculator.AnnotationPositionCalculatorCreationException;
29
import org.gvsig.fmap.dal.feature.FeatureStore;
30
import org.gvsig.tools.service.ServiceException;
31

    
32
/**
33
 * This class is responsible of the management of the library's business logic.
34
 * It is the library's main entry point, and provides all the services to manage
35
 * {@link AnnotationCreationService}s.
36
 * 
37
 * @see AnnotationCreationService
38
 * @author gvSIG team
39
 * @version $Id$
40
 */
41
public interface AnnotationManager {
42

    
43
    /**
44
     * Create an instance of a {@link AnnotationCreationService}.
45
     * 
46
     * @return {@link AnnotationCreationService}
47
     * @throws ServiceException
48
     *             if there is an error getting the service
49
     */
50
    public AnnotationCreationService getAnnotationCreationService(FeatureStore featureStore)
51
        throws ServiceException;
52
          
53
    public void registerAnnotationPositionCalculator(String name, Class annotationPositionCalculatorClass);
54

    
55
    public void registerDefaultAnnotationPositionCalculator(Class annotationPositionCalculatorClass);
56
    
57
    public AnnotationPositionCalculator getAnnotationPositionCalculator(String name) throws AnnotationPositionCalculatorCreationException;
58
    
59
    public AnnotationPositionCalculator getDefaultAnnotationPositionCalculator() throws AnnotationPositionCalculatorCreationException;
60
    
61
    public List<String> getAnnotationPositionCalculatorList();
62
    
63
    public String getDefaultTextValue();
64
    
65
    public void setDefaultTextValue(String textValue);
66
    
67
    public String getDefaultFontType();
68
    
69
    public void setDefaultFontType(String fontType);
70
    
71
    public List<String> getFontTypes();
72
    
73
    public void addFontType(String fontType);
74
    
75
    public String getDefaultFontStyle();
76
    
77
    public void setDefaultFontStyle(String fontStyle);
78
    
79
    public List<String> getFontStyles();
80
    
81
    public void addFontStyle(String fontStyle);
82
        
83
    public int getDefaultFontColor();
84
    
85
    public void setDefaultFontColor(int fontColor);
86
    
87
    public double getDefaultFontHeight();
88
    
89
    public void setDefaultFontHeight(double fontHeight);
90
    
91
    public double getDefaultFontRotation();
92
    
93
    public void setDefaultFontRotation(double fontRotation);        
94
}