Revision 31235 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/AttrInTableLabelingStrategy.java
AttrInTableLabelingStrategy.java | ||
---|---|---|
99 | 99 |
|
100 | 100 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double dpi) |
101 | 101 |
throws ReadDriverException { |
102 |
if (idTextField==-1) |
|
103 |
return; |
|
102 | 104 |
// double scale = viewPort.getScale();//deprecated |
103 | 105 |
double scale = layer.getMapContext().getScaleView(); |
104 | 106 |
// double fontScaleFactor = FConstant.FONT_HEIGHT_SCALE_FACTOR; |
... | ... | |
504 | 506 |
this.layer = (FLyrVect) layer; |
505 | 507 |
try{ |
506 | 508 |
SelectableDataSource sds=this.layer.getRecordset(); |
507 |
if (textFieldName!=null) |
|
508 |
idTextField = sds.getFieldIndexByName(textFieldName); |
|
509 |
if (textFieldName!=null){ |
|
510 |
idTextField = sds.getFieldIndexByName(textFieldName); |
|
511 |
// if (idTextField==-1){ |
|
512 |
// if (textFieldName.startsWith("link_")){ |
|
513 |
// textFieldName=textFieldName.substring(5, textFieldName.length()); |
|
514 |
// textFieldName="j_"+textFieldName; |
|
515 |
// } |
|
516 |
// idTextField = sds.getFieldIndexByName(textFieldName); |
|
517 |
// } |
|
518 |
} |
|
509 | 519 |
if (rotationFieldName!=null) |
510 | 520 |
idRotationField = sds.getFieldIndexByName(rotationFieldName); |
511 | 521 |
if (heightFieldName!=null) |
Also available in: Unified diff