Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / symbols / ITextSymbol.java @ 18621

History | View | Annotate | Download (1.45 KB)

1
package com.iver.cit.gvsig.fmap.core.symbols;
2

    
3
import java.awt.Color;
4
import java.awt.Font;
5
import java.awt.Rectangle;
6

    
7
import com.iver.cit.gvsig.fmap.core.FPoint2D;
8
import com.iver.cit.gvsig.fmap.core.FShape;
9
/**
10
 * 
11
 * ITextSymbol.java<br>
12
 * Represents an ISymbol that draws a text.
13
 * 
14
 * @author jaume dominguez faus - jaume.dominguez@iver.es Dec 11, 2007
15
 *
16
 */
17
public interface ITextSymbol extends ISymbol {
18
        /**
19
         * Establishes the font that will be used to render this ITextSymbol.
20
         * @param font
21
         */
22
        public abstract void setFont(Font font);
23

    
24
        /**
25
         * Returns the currently set font.
26
         * @return Font
27
         */
28
        public abstract Font getFont();
29

    
30
        /**
31
         * Returns the currently color set to be applied to the text
32
         * @return Color
33
         */
34
        public abstract Color getTextColor();
35

    
36
        /**
37
         * Sets the color of the text
38
         * @param color
39
         */
40
        public abstract void setTextColor(Color color);
41

    
42
        /**
43
         * Returns the text contained by this symbol
44
         * @return
45
         * @deprecated ?do i need it?
46
         */
47
        public abstract String getText();
48

    
49
        /**
50
         * Sets the text to be rendered by this symbol
51
         * @param text, a String
52
         */
53
        public abstract void setText(String text);
54

    
55
        /**
56
         * Sets the font size currently set to this symbol
57
         * @param d
58
         */
59
        public abstract void setFontSize(double d);
60

    
61
        /**
62
         * Computes a FShape wrapping the text to be applied
63
         * @param p target location
64
         * @return
65
         */
66
        public abstract FShape getTextWrappingShape(FPoint2D p);
67
        
68
        public abstract Rectangle getBounds();
69
}