Revision 44249 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
DynamicLabelingStrategy.java | ||
---|---|---|
3 | 3 |
* To change this template file, choose Tools | Templates |
4 | 4 |
* and open the template in the editor. |
5 | 5 |
*/ |
6 |
package org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend;
|
|
6 |
package org.gvsig.labeling.dynamiclabeling;
|
|
7 | 7 |
|
8 | 8 |
import java.awt.Color; |
9 | 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; |
|
10 | 14 |
|
11 | 15 |
/** |
12 | 16 |
* |
13 | 17 |
* @author osc |
14 | 18 |
*/ |
15 |
public abstract class DynamicLabelingStrategy { |
|
19 |
public abstract class DynamicLabelingStrategy implements ILabelingStrategy, CartographicSupport {
|
|
16 | 20 |
|
17 |
public abstract String getRotation();
|
|
21 |
public abstract void setFeature(Feature f);
|
|
18 | 22 |
|
19 |
public abstract String getText();
|
|
23 |
public abstract Expression getRotation();
|
|
20 | 24 |
|
21 |
public abstract String getHeight();
|
|
25 |
public abstract int getComputedRotation();
|
|
22 | 26 |
|
23 |
public abstract String getColor();
|
|
27 |
public abstract Expression getUnitExp();
|
|
24 | 28 |
|
25 |
public abstract double getFixedSize(); |
|
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(); |
|
26 | 50 |
|
51 |
public abstract void setFontStyle(int style); |
|
27 | 52 |
|
28 |
|
|
53 |
public abstract void setFontStyleField(String field); |
|
54 |
|
|
29 | 55 |
public abstract void setTextField(String textFieldName); |
30 | 56 |
|
31 | 57 |
public abstract void setRotationField(String rotationFieldName); |
... | ... | |
45 | 71 |
|
46 | 72 |
public abstract boolean usesFixedSize(); |
47 | 73 |
|
48 |
|
|
49 |
|
|
50 | 74 |
public abstract void setFixedSize(double fixedSize); |
51 | 75 |
|
52 | 76 |
public abstract void setUsesFixedColor(boolean b); |
53 | 77 |
|
54 | 78 |
public abstract boolean usesFixedColor(); |
55 | 79 |
|
56 |
public abstract Color getFixedColor();
|
|
80 |
public abstract Expression getFixedColor();
|
|
57 | 81 |
|
82 |
public abstract Color getComputedFixedColor(); |
|
83 |
|
|
58 | 84 |
public abstract void setFixedColor(Color fixedColor); |
59 | 85 |
|
60 |
public abstract Color getColorFont();
|
|
86 |
public abstract Expression getColorFont();
|
|
61 | 87 |
|
88 |
public abstract Color getComputedColorFont(); |
|
89 |
|
|
62 | 90 |
public abstract void setColorFont(Color colorFont); |
63 | 91 |
|
64 |
public abstract Font getFont();
|
|
92 |
public abstract Expression getFont();
|
|
65 | 93 |
|
94 |
public abstract Font getComputedFont(); |
|
95 |
|
|
66 | 96 |
public abstract void setFont(Font selFont); |
97 |
|
|
98 |
public abstract void setFontField(String fontField); |
|
67 | 99 |
|
68 | 100 |
} |
Also available in: Unified diff