root / branches / simbologia / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / symbols / TextSymbol.java @ 10099
History | View | Annotate | Download (3.23 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
|
42 |
/* CVS MESSAGES:
|
43 |
*
|
44 |
* $Id: TextSymbol.java 10099 2007-02-02 16:21:24Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.1.2.1 2007-02-02 16:21:24 jaume
|
47 |
* start commiting labeling stuff
|
48 |
*
|
49 |
* Revision 1.1 2007/01/24 17:58:22 jaume
|
50 |
* new features and architecture error fixes
|
51 |
*
|
52 |
*
|
53 |
*/
|
54 |
package com.iver.cit.gvsig.fmap.core.symbols; |
55 |
|
56 |
import java.awt.Color; |
57 |
import java.awt.Graphics2D; |
58 |
import java.awt.Rectangle; |
59 |
import java.awt.Shape; |
60 |
import java.awt.geom.AffineTransform; |
61 |
|
62 |
import javax.print.attribute.PrintRequestAttributeSet; |
63 |
|
64 |
import com.iver.cit.gvsig.fmap.DriverException; |
65 |
import com.iver.cit.gvsig.fmap.core.FShape; |
66 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
67 |
import com.iver.utiles.XMLEntity; |
68 |
|
69 |
public class TextSymbol extends AbstractSymbol { |
70 |
private Color textColor; |
71 |
|
72 |
public ISymbol getSymbolForSelection() {
|
73 |
return this; // a text is not selectable |
74 |
} |
75 |
|
76 |
public void draw(Graphics2D g, AffineTransform affineTransform, FShape shp) { |
77 |
|
78 |
} |
79 |
|
80 |
public int getPixExtentPlus(Graphics2D g, AffineTransform affineTransform, Shape shp) { |
81 |
// TODO Implement it
|
82 |
throw new Error("Not yet implemented!"); |
83 |
|
84 |
} |
85 |
|
86 |
public int getOnePointRgb() { |
87 |
return textColor.getRGB();
|
88 |
} |
89 |
|
90 |
public XMLEntity getXMLEntity() {
|
91 |
// TODO Implement it
|
92 |
throw new Error("Not yet implemented!"); |
93 |
|
94 |
} |
95 |
|
96 |
public int getSymbolType() { |
97 |
// TODO Implement it
|
98 |
throw new Error("Not yet implemented!"); |
99 |
|
100 |
} |
101 |
|
102 |
public boolean isSuitableFor(IGeometry geom) { |
103 |
// TODO Implement it
|
104 |
throw new Error("Not yet implemented!"); |
105 |
|
106 |
} |
107 |
|
108 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r) { |
109 |
// TODO Implement it
|
110 |
throw new Error("Not yet implemented!"); |
111 |
|
112 |
} |
113 |
|
114 |
public void setPrintingProperties(PrintRequestAttributeSet printProperties) { |
115 |
// TODO Implement it
|
116 |
throw new Error("Not yet implemented!"); |
117 |
|
118 |
} |
119 |
|
120 |
public String getClassName() { |
121 |
return getClass().getName();
|
122 |
} |
123 |
|
124 |
public void setXMLEntity(XMLEntity xml) { |
125 |
// TODO Implement it
|
126 |
throw new Error("Not yet implemented!"); |
127 |
|
128 |
} |
129 |
|
130 |
public void print(Graphics2D g, AffineTransform at, FShape shape) throws DriverException { |
131 |
// TODO Implement it
|
132 |
throw new Error("Not yet implemented!"); |
133 |
|
134 |
} |
135 |
|
136 |
} |