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 / dynamiclegend / DynamicLabelingStrategy.java @ 44249
History | View | Annotate | Download (2.72 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.labeling.dynamiclabeling; |
7 |
|
8 |
import java.awt.Color; |
9 |
import java.awt.Font; |
10 |
import org.gvsig.expressionevaluator.Expression; |
11 |
import org.gvsig.fmap.dal.feature.Feature; |
12 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy; |
13 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
14 |
|
15 |
/**
|
16 |
*
|
17 |
* @author osc
|
18 |
*/
|
19 |
public abstract class DynamicLabelingStrategy implements ILabelingStrategy, CartographicSupport { |
20 |
|
21 |
public abstract void setFeature(Feature f); |
22 |
|
23 |
public abstract Expression getRotation(); |
24 |
|
25 |
public abstract int getComputedRotation(); |
26 |
|
27 |
public abstract Expression getUnitExp(); |
28 |
|
29 |
public abstract int getComputedUnit(); |
30 |
|
31 |
public abstract Expression getText(); |
32 |
|
33 |
public abstract String getComputedText(); |
34 |
|
35 |
public abstract Expression getHeight(); |
36 |
|
37 |
public abstract int getComputedHeight(); |
38 |
|
39 |
public abstract Expression getColor(); |
40 |
|
41 |
public abstract Color getComputedColor(); |
42 |
|
43 |
public abstract Expression getFixedSize(); |
44 |
|
45 |
public abstract double getComputedFixedSize(); |
46 |
|
47 |
public abstract Expression getFontStyle(); |
48 |
|
49 |
public abstract int getComputedFontStyle(); |
50 |
|
51 |
public abstract void setFontStyle(int style); |
52 |
|
53 |
public abstract void setFontStyleField(String field); |
54 |
|
55 |
public abstract void setTextField(String textFieldName); |
56 |
|
57 |
public abstract void setRotationField(String rotationFieldName); |
58 |
|
59 |
/**
|
60 |
* Sets the field that contains the size of the text. The size is computed
|
61 |
* in meters. To use any other unit, call setUnit(int) with the scale factor
|
62 |
* from meters (for centimeters, call <b>setUnitFactor(0.01))</b>.
|
63 |
*
|
64 |
* @param heightFieldName
|
65 |
*/
|
66 |
public abstract void setHeightField(String heightFieldName); |
67 |
|
68 |
public abstract void setColorField(String colorFieldName); |
69 |
|
70 |
public abstract void setUsesFixedSize(boolean b); |
71 |
|
72 |
public abstract boolean usesFixedSize(); |
73 |
|
74 |
public abstract void setFixedSize(double fixedSize); |
75 |
|
76 |
public abstract void setUsesFixedColor(boolean b); |
77 |
|
78 |
public abstract boolean usesFixedColor(); |
79 |
|
80 |
public abstract Expression getFixedColor(); |
81 |
|
82 |
public abstract Color getComputedFixedColor(); |
83 |
|
84 |
public abstract void setFixedColor(Color fixedColor); |
85 |
|
86 |
public abstract Expression getColorFont(); |
87 |
|
88 |
public abstract Color getComputedColorFont(); |
89 |
|
90 |
public abstract void setColorFont(Color colorFont); |
91 |
|
92 |
public abstract Expression getFont(); |
93 |
|
94 |
public abstract Font getComputedFont(); |
95 |
|
96 |
public abstract void setFont(Font selFont); |
97 |
|
98 |
public abstract void setFontField(String fontField); |
99 |
|
100 |
} |