Statistics
| Revision:

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

History | View | Annotate | Download (1.56 KB)

1 10679 jaume
package com.iver.cit.gvsig.fmap.core.symbols;
2
3
import java.awt.Color;
4
import java.awt.Font;
5 18621 jdominguez
import java.awt.Rectangle;
6 10679 jaume
7 11169 jaume
import com.iver.cit.gvsig.fmap.core.FPoint2D;
8 10977 jaume
import com.iver.cit.gvsig.fmap.core.FShape;
9
/**
10 18621 jdominguez
 *
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 13073 jvidal
 *
16 10977 jaume
 */
17 10679 jaume
public interface ITextSymbol extends ISymbol {
18 10977 jaume
        /**
19
         * Establishes the font that will be used to render this ITextSymbol.
20
         * @param font
21
         */
22 10679 jaume
        public abstract void setFont(Font font);
23 10812 jaume
24 10977 jaume
        /**
25
         * Returns the currently set font.
26
         * @return Font
27
         */
28 10679 jaume
        public abstract Font getFont();
29
30 10977 jaume
        /**
31
         * Returns the currently color set to be applied to the text
32
         * @return Color
33
         */
34 10679 jaume
        public abstract Color getTextColor();
35 10812 jaume
36 10977 jaume
        /**
37
         * Sets the color of the text
38
         * @param color
39
         */
40 10679 jaume
        public abstract void setTextColor(Color color);
41 10812 jaume
42 10977 jaume
        /**
43
         * Returns the text contained by this symbol
44
         * @return
45
         * @deprecated ?do i need it?
46
         */
47 10679 jaume
        public abstract String getText();
48
49 10977 jaume
        /**
50
         * Sets the text to be rendered by this symbol
51
         * @param text, a String
52
         */
53 10679 jaume
        public abstract void setText(String text);
54
55 10977 jaume
        /**
56
         * Sets the font size currently set to this symbol
57
         * @param d
58
         */
59 10812 jaume
        public abstract void setFontSize(double d);
60
61 10977 jaume
        /**
62
         * Computes a FShape wrapping the text to be applied
63 11169 jaume
         * @param p target location
64
         * @return
65
         */
66 18621 jdominguez
        public abstract FShape getTextWrappingShape(FPoint2D p);
67
68
        public abstract Rectangle getBounds();
69 21535 vcaballero
70
        public abstract void setAutoresizeEnabled(boolean autoresizeFlag);
71
72
        public abstract boolean isAutoresizeEnabled();
73 10679 jaume
}