Revision 9083 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameLegend.java
FFrameLegend.java | ||
---|---|---|
57 | 57 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
58 | 58 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
59 | 59 |
import com.iver.cit.gvsig.fmap.layers.FLyrAnnotation; |
60 |
import com.iver.cit.gvsig.fmap.layers.FLyrRaster; |
|
61 | 60 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
62 | 61 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable; |
63 | 62 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.IHasImageLegend; |
... | ... | |
305 | 304 |
}else if (layer instanceof IHasImageLegend){ |
306 | 305 |
Image image=((IHasImageLegend)layer).getImageLegend(); |
307 | 306 |
String path=((IHasImageLegend)layer).getPathImage(); |
307 |
if (image!=null) { |
|
308 | 308 |
FFramePicture picture=new FFramePicture(); |
309 | 309 |
BufferedImage bi = new BufferedImage(image.getWidth(null), |
310 | 310 |
image.getHeight(null), BufferedImage.TYPE_INT_ARGB); |
... | ... | |
321 | 321 |
picture.setBoundBox(FLayoutUtilities.toSheetRect(rectImage,new AffineTransform())); |
322 | 322 |
picture.draw(g,new AffineTransform(),re,bi); |
323 | 323 |
} |
324 |
} |
|
324 | 325 |
n[0]++; |
325 | 326 |
}else { |
326 | 327 |
double dX = 0; |
Also available in: Unified diff