Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.symbology / org.gvsig.symbology.lib / org.gvsig.symbology.lib.api / src / main / java / org / gvsig / symbology / fmap / mapcontext / rendering / symbol / fill / IFillSymbol.java @ 40560

History | View | Annotate | Download (3.12 KB)

1 40560 jjdelcerro
/**
2
 * gvSIG. Desktop Geographic Information System.
3 40435 jjdelcerro
 *
4 40560 jjdelcerro
 * Copyright (C) 2007-2013 gvSIG Association.
5 40435 jjdelcerro
 *
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 40560 jjdelcerro
 * as published by the Free Software Foundation; either version 3
9 40435 jjdelcerro
 * 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 40560 jjdelcerro
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20 40435 jjdelcerro
 *
21 40560 jjdelcerro
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23 40435 jjdelcerro
 */
24
/* CVS MESSAGES:
25
 *
26
 * $Id: IFillSymbol.java 21071 2008-06-02 10:55:35Z vcaballero $
27
 * $Log$
28
 * Revision 1.3  2007-08-13 11:36:50  jvidal
29
 * javadoc
30
 *
31
 * Revision 1.2  2007/03/09 11:20:56  jaume
32
 * Advanced symbology (start committing)
33
 *
34
 * Revision 1.1.2.2  2007/02/21 16:09:02  jaume
35
 * *** empty log message ***
36
 *
37
 * Revision 1.1.2.1  2007/02/16 10:54:12  jaume
38
 * multilayer splitted to multilayerline, multilayermarker,and  multilayerfill
39
 *
40
 *
41
 */
42
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill;
43
44
import java.awt.Color;
45
46
import org.gvsig.fmap.geom.Geometry;
47
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport;
48
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
49
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol;
50
51
52
/**
53
 * Interface that extends ISymbol interface in order to define methods for
54
 * fill symbols which can manage specific attributes of them.
55
 *
56
 *
57
 * @author jaume dominguez faus - jaume.dominguez@iver.es
58
 */
59
60
public interface IFillSymbol extends ISymbol, CartographicSupport{
61
62
        public static final String SYMBOL_NAME = "fill";
63
64
        public abstract boolean isSuitableFor(Geometry geom);
65
66
        public abstract int getOnePointRgb();
67
68
        /**
69
         * Sets the color that will be used to draw the filling pattern of this symbol.
70
         *
71
         * @param Color
72
         */
73
        public abstract void setFillColor(Color color);
74
75
        /**
76
         * Sets the color of the outline.
77
         * @deprectated will be substituted by setOutline(AbstractLineSymbol);
78
         * @param color
79
         */
80
        public abstract void setOutline(ILineSymbol outline);
81
82
        /**
83
         * @return Returns the color.
84
         */
85
        public abstract Color getFillColor();
86
87
        /**
88
         * Obtains the ILineSymbol interface of the outline
89
         * @return the outline,ILineSymbol.
90
         */
91
        public abstract ILineSymbol getOutline();
92
        /**
93
         * Obtains the transparency of the fill symbol
94
         * @return the transparency of the fill symbol
95
         */
96
97
        public abstract int getFillAlpha();
98
99
        public abstract boolean hasFill();
100
101
        public abstract void setHasFill(boolean hasFill);
102
103
        public abstract boolean hasOutline();
104
105
        public abstract void setHasOutline(boolean hasOutline);
106
}