Revision 11170 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/IPlacementConstraints.java
IPlacementConstraints.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.5 2007-04-12 14:28:43 jaume |
|
46 |
* Revision 1.6 2007-04-12 16:01:11 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.5 2007/04/12 14:28:43 jaume |
|
47 | 50 |
* basic labeling support for lines |
48 | 51 |
* |
49 | 52 |
* Revision 1.4 2007/04/11 16:01:08 jaume |
... | ... | |
97 | 100 |
|
98 | 101 |
// constants regarding line settings |
99 | 102 |
public static final int FOLLOWING_LINE = 11; |
100 |
public static final int PERPENDICULAR = 12;
|
|
103 |
public static final int PERPENDICULAR = 12;
|
|
101 | 104 |
|
102 |
// constants regarding label position along the line |
|
103 |
public static final int ABOVE_THE_LINE = 1000; |
|
104 |
public static final int ON_THE_LINE = 1100; |
|
105 |
public static final int BELLOW_THE_LINE = 1200; |
|
106 |
public static final int AT_THE_BEGINING = 10000; |
|
107 |
public static final int AT_THE_END = 20000; |
|
108 |
public static final int PAGE_ORIENTED = 100000; |
|
109 |
public static final int LINE_ORIENTED = 200000; |
|
105 |
// constants regarding the location along the line |
|
106 |
public static final int AT_THE_END_OF_THE_LINE = 13; |
|
107 |
public static final int AT_THE_MIDDLE_OF_THE_LINE = 14; |
|
108 |
public static final int AT_THE_BEGINING_OF_THE_LINE = 15; |
|
110 | 109 |
|
111 |
public abstract void setDuplicateLabelsMode(int mode); |
|
112 |
|
|
113 | 110 |
public abstract void setPlacementMode(int mode); |
114 | 111 |
|
115 |
public abstract boolean isHorizontal(); |
|
116 |
|
|
117 |
public abstract boolean isPerpendicular(); |
|
118 |
|
|
119 |
public abstract boolean isFollowingLine(); |
|
120 |
|
|
121 |
public abstract boolean isParallel(); |
|
122 |
|
|
123 |
public abstract int getDuplicateLabelsMode(); |
|
124 |
|
|
125 |
/** |
|
126 |
* Tells if the place mode selected is to put the label over the <b>POINT</b> |
|
127 |
* @return boolean |
|
128 |
*/ |
|
129 |
public abstract boolean isOnTopOfThePoint(); |
|
130 |
|
|
112 |
// regarding label position along the line |
|
131 | 113 |
public abstract boolean isAtTheBeginingOfLine(); |
114 |
public abstract void setAtTheBeginingOfLine(boolean b); |
|
132 | 115 |
public abstract boolean isAtTheEndOfLine(); |
116 |
public abstract void setAtTheEndOfLine(boolean b); |
|
133 | 117 |
public abstract boolean isBellowTheLine(); |
118 |
public abstract void setBellowTheLine(boolean b); |
|
134 | 119 |
public abstract boolean isAboveTheLine(); |
120 |
public abstract void setAboveTheLine(boolean b); |
|
121 |
|
|
122 |
// regarding the orientation system |
|
135 | 123 |
public abstract boolean isPageOriented(); |
136 |
public abstract boolean isLineOriented();
|
|
124 |
public abstract void setPageOriented(boolean b);
|
|
137 | 125 |
|
126 |
// regarding the label duplication |
|
127 |
public abstract void setDuplicateLabelsMode(int mode); |
|
128 |
public abstract int getDuplicateLabelsMode(); |
|
138 | 129 |
|
130 |
|
|
139 | 131 |
/** |
140 | 132 |
* Calculates the position where the next label will be placed. Or null |
141 | 133 |
* if the label does not have to be placed. |
... | ... | |
151 | 143 |
public abstract void placeLabel(Graphics2D g, IGeometry geom, |
152 | 144 |
LabelClass lc, MultiPolygon exclusionZone, AffineTransform transform, String[] labelTexts); |
153 | 145 |
|
146 |
public abstract boolean isParallel(); |
|
147 |
|
|
148 |
public abstract boolean isFollowingLine(); |
|
149 |
|
|
150 |
public abstract boolean isPerpendicular(); |
|
151 |
|
|
152 |
public abstract boolean isHorizontal(); |
|
153 |
|
|
154 | 154 |
} |
Also available in: Unified diff