root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / symbols / SimpleMarkerSymbol.java @ 9641
History | View | Annotate | Download (3.5 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: SimpleMarkerSymbol.java 9641 2007-01-10 16:42:08Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.2 2007-01-10 16:39:41 jaume
|
47 |
* ISymbol now belongs to com.iver.cit.gvsig.fmap.core.symbols package
|
48 |
*
|
49 |
* Revision 1.1 2007/01/10 16:31:36 jaume
|
50 |
* *** empty log message ***
|
51 |
*
|
52 |
* Revision 1.1 2006/11/14 11:10:27 jaume
|
53 |
* *** empty log message ***
|
54 |
*
|
55 |
*
|
56 |
*/
|
57 |
package com.iver.cit.gvsig.fmap.core.symbols; |
58 |
|
59 |
import java.awt.Color; |
60 |
import java.awt.Graphics2D; |
61 |
import java.awt.Rectangle; |
62 |
import java.awt.Shape; |
63 |
import java.awt.geom.AffineTransform; |
64 |
|
65 |
import com.iver.cit.gvsig.fmap.DriverException; |
66 |
import com.iver.cit.gvsig.fmap.core.FShape; |
67 |
import com.iver.cit.gvsig.fmap.core.SymbolFactory; |
68 |
import com.iver.utiles.StringUtilities; |
69 |
import com.iver.utiles.XMLEntity; |
70 |
|
71 |
public class SimpleMarkerSymbol extends AbstractMarkerSymbol { |
72 |
private boolean outline; |
73 |
private Color outlineColor; |
74 |
private double outlineSize; |
75 |
|
76 |
|
77 |
private ISymbol selectionSymbol;
|
78 |
|
79 |
public ISymbol getSymbolForSelection() {
|
80 |
if (selectionSymbol == null) { |
81 |
XMLEntity xml = getXMLEntity(); |
82 |
xml.putProperty("color", StringUtilities.color2String(Color.YELLOW)); |
83 |
selectionSymbol = SymbolFactory.createFromXML(xml, getDescription() + " version for selection.");
|
84 |
} |
85 |
return selectionSymbol;
|
86 |
} |
87 |
|
88 |
public void draw(Graphics2D g, AffineTransform affineTransform, FShape shp) { |
89 |
// TODO Auto-generated method stub
|
90 |
throw new Error("Not yet implemented!"); |
91 |
|
92 |
} |
93 |
|
94 |
public int getPixExtentPlus(Graphics2D g, AffineTransform affineTransform, Shape shp) { |
95 |
// TODO Auto-generated method stub
|
96 |
throw new Error("Not yet implemented!"); |
97 |
|
98 |
} |
99 |
|
100 |
public XMLEntity getXMLEntity() {
|
101 |
// TODO Auto-generated method stub
|
102 |
throw new Error("Not yet implemented!"); |
103 |
|
104 |
} |
105 |
|
106 |
public int getSymbolType() { |
107 |
// TODO Auto-generated method stub
|
108 |
throw new Error("Not yet implemented!"); |
109 |
|
110 |
} |
111 |
|
112 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r) { |
113 |
// TODO Auto-generated method stub
|
114 |
throw new Error("Not yet implemented!"); |
115 |
|
116 |
} |
117 |
|
118 |
public String getClassName() { |
119 |
// TODO Auto-generated method stub
|
120 |
throw new Error("Not yet implemented!"); |
121 |
|
122 |
} |
123 |
|
124 |
public void setXMLEntity(XMLEntity xml) { |
125 |
// TODO Auto-generated method stub
|
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 |
} |