Revision 11192 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/SimpleLabeling.java

View differences:

SimpleLabeling.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.7  2007-04-12 14:28:43  jaume
46
* Revision 1.8  2007-04-13 11:59:30  jaume
47
* *** empty log message ***
48
*
49
* Revision 1.7  2007/04/12 14:28:43  jaume
47 50
* basic labeling support for lines
48 51
*
49 52
* Revision 1.6  2007/04/11 16:01:08  jaume
......
183 186

  
184 187
				 geom = rv.getShape(i);
185 188
				 lc.setTexts(getText(index, sds));
186
				 FShape labelShape = lc.getShape(g, viewPort.getAffineTransform(), geom);
187
				 g.setColor(Color.RED);
188
				 g.draw(labelShape);
189
//				 FShape labelShape = lc.getShape(g, viewPort.getAffineTransform(), geom);
189 190
				 // refactor
190 191
//				  if (labelShape is big enough)
191 192
				 {
192 193
					 String[] texts = getText(index, sds);
193 194

  
194
					 placementConstraints.placeLabel(g, geom, lc, null, viewPort.getAffineTransform(), texts);
195
					 placementConstraints.placeLabel(g, geom, lc, null, viewPort.getAffineTransform());
195 196
				 }
196 197

  
197 198

  
......
261 262
		return placementConstraints;
262 263
	}
263 264

  
264
	public void setPlacementConstraints(IPlacementConstraints constraints) {}
265
	public void setPlacementConstraints(IPlacementConstraints constraints) {
266
		this.placementConstraints = constraints;
267
	}
265 268

  
266 269
	public IZoomConstraints getZoomConstraints() {
267 270
		return zoomConstraints;

Also available in: Unified diff