svn-gvsig-desktop / trunk / extensions / org.gvsig.chartlegend / src / main / java / org / gvsig / symbology / fmap / mapcontext / rendering / symbol / chart / IChartSymbol.java @ 32692
History | View | Annotate | Download (1.67 KB)
1 |
package org.gvsig.symbology.fmap.mapcontext.rendering.symbol.chart; |
---|---|
2 |
|
3 |
import java.awt.Color; |
4 |
|
5 |
import com.iver.cit.gvsig.fmap.core.CartographicSupport; |
6 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
7 |
|
8 |
/**
|
9 |
* Interface to represents chart symbols.
|
10 |
*
|
11 |
* @author Vicente Caballero Navarro
|
12 |
*/
|
13 |
public interface IChartSymbol extends CartographicSupport, ISymbol{ |
14 |
public static final int SIZEFIXED = 0; |
15 |
public static final int SIZESUM = 1; |
16 |
public static final int SIZEFIELD = 2; |
17 |
|
18 |
/**
|
19 |
* Sets the field names and color to draw the different parts of chart.
|
20 |
*
|
21 |
* @param String[] field names.
|
22 |
* @param Color[] colors to draw the different parts.
|
23 |
*/
|
24 |
void setSections(String[] names, Color[] colors); |
25 |
|
26 |
/**
|
27 |
* Sets the size of symbol.
|
28 |
*
|
29 |
* @param size of symbol.
|
30 |
*/
|
31 |
void setSize(double size); |
32 |
/**
|
33 |
* Sets if the chart is in three dimensions.
|
34 |
*
|
35 |
* @param boolean true if the chart is 3D.
|
36 |
*/
|
37 |
void set3D(boolean b); |
38 |
|
39 |
/**
|
40 |
* Sets the color of outline.
|
41 |
*
|
42 |
* @param Color to draw outline.
|
43 |
*/
|
44 |
void setOutlineColor(Color color); |
45 |
|
46 |
/**
|
47 |
* Sets if the outline is draw.
|
48 |
*
|
49 |
* @param boolean true if outline it?s to show.
|
50 |
*/
|
51 |
void setOutlineShow(boolean b); |
52 |
|
53 |
/**
|
54 |
* Sets the width of outline.
|
55 |
*
|
56 |
* @param integer width of outline.
|
57 |
*/
|
58 |
void setOutlineWidth(int width); |
59 |
|
60 |
/**
|
61 |
* Sets the JFreechart of this symbol.
|
62 |
*
|
63 |
* @param JFreeChart with the properties of symbol.
|
64 |
*/
|
65 |
void setChart(org.jfree.chart.JFreeChart theChart);
|
66 |
|
67 |
/**
|
68 |
* Sets if draw diagrams only by selection.
|
69 |
*
|
70 |
* @param boolean true if draw the diagrams only by selection.
|
71 |
*/
|
72 |
public void setOnlySelection(boolean onlySelection); |
73 |
|
74 |
} |