svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / layers / LayerInformationBuilder.java @ 44369
History | View | Annotate | Download (2.81 KB)
1 |
package org.gvsig.fmap.mapcontext.layers; |
---|---|
2 |
|
3 |
import org.cresques.cts.IProjection; |
4 |
import org.gvsig.fmap.geom.Geometry; |
5 |
import org.gvsig.fmap.geom.primitive.Envelope; |
6 |
|
7 |
public interface LayerInformationBuilder { |
8 |
|
9 |
public interface Element { |
10 |
|
11 |
public String build(); |
12 |
} |
13 |
|
14 |
public interface TitleElement extends Element { |
15 |
|
16 |
public TitleElement label(String label); |
17 |
public TitleElement labelkey(String labelkey); |
18 |
} |
19 |
|
20 |
public interface RawElement extends Element { |
21 |
|
22 |
public RawElement value(String format, Object... args); |
23 |
|
24 |
public RawElement value(IProjection proj);
|
25 |
|
26 |
public RawElement value(Envelope env);
|
27 |
|
28 |
public RawElement value(Geometry geom);
|
29 |
|
30 |
public RawElement asWKT(IProjection proj);
|
31 |
|
32 |
public RawElement asWKT(Envelope env);
|
33 |
|
34 |
public RawElement asWKT(Geometry geom);
|
35 |
} |
36 |
|
37 |
public interface TextElement extends RawElement { |
38 |
|
39 |
@Override
|
40 |
public TextElement value(String format, Object... args); |
41 |
|
42 |
@Override
|
43 |
public TextElement value(IProjection proj);
|
44 |
|
45 |
@Override
|
46 |
public TextElement value(Envelope env);
|
47 |
|
48 |
@Override
|
49 |
public TextElement value(Geometry geom);
|
50 |
|
51 |
@Override
|
52 |
public TextElement asWKT(IProjection proj);
|
53 |
|
54 |
@Override
|
55 |
public TextElement asWKT(Envelope env);
|
56 |
|
57 |
@Override
|
58 |
public TextElement asWKT(Geometry geom);
|
59 |
} |
60 |
|
61 |
public interface PropertyElement extends TextElement { |
62 |
|
63 |
public PropertyElement monospace();
|
64 |
|
65 |
public PropertyElement label(String label); |
66 |
|
67 |
public PropertyElement labelkey(String labelkey); |
68 |
|
69 |
@Override
|
70 |
public PropertyElement value(String format, Object... args); |
71 |
|
72 |
@Override
|
73 |
public PropertyElement value(IProjection proj);
|
74 |
|
75 |
@Override
|
76 |
public PropertyElement value(Envelope env);
|
77 |
|
78 |
@Override
|
79 |
public PropertyElement value(Geometry geom);
|
80 |
|
81 |
@Override
|
82 |
public PropertyElement asWKT(IProjection proj);
|
83 |
|
84 |
@Override
|
85 |
public PropertyElement asWKT(Envelope env);
|
86 |
|
87 |
@Override
|
88 |
public PropertyElement asWKT(Geometry geom);
|
89 |
} |
90 |
|
91 |
public interface EnvelopeElement extends Element { |
92 |
|
93 |
public EnvelopeElement value(Envelope value);
|
94 |
} |
95 |
|
96 |
public LayerInformationBuilder backgroundColor(String color); |
97 |
|
98 |
public LayerInformationBuilder backgroundColorTitle(String color); |
99 |
|
100 |
public LayerInformationBuilder backgroundColorPropertyLabel(String color); |
101 |
|
102 |
public LayerInformationBuilder backgroundColorPropertyValue1(String color); |
103 |
|
104 |
public LayerInformationBuilder backgroundColorPropertyValue2(String color); |
105 |
|
106 |
public TitleElement title();
|
107 |
|
108 |
public PropertyElement property();
|
109 |
|
110 |
public TextElement text();
|
111 |
|
112 |
public RawElement raw();
|
113 |
|
114 |
public EnvelopeElement envelope();
|
115 |
|
116 |
public String build(); |
117 |
|
118 |
} |