Revision 269 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FPolyline2D.java
FPolyline2D.java | ||
---|---|---|
22 | 22 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#draw(java.awt.Graphics2D, ViewPort, java.awt.geom.Rectangle2D) |
23 | 23 |
*/ |
24 | 24 |
public void draw(Graphics2D g, ViewPort vp, Style2D symbol) { |
25 |
// if (gp.intersects(extent)){ |
|
26 |
if (symbol instanceof LineStyle2D) |
|
25 |
/* if (symbol instanceof LineStyle2D) |
|
27 | 26 |
{ |
28 |
/* LineStyle2D style2D = (LineStyle2D) symbol; |
|
29 |
|
|
30 |
g.setPaint(Color.black); |
|
31 |
*/ |
|
32 |
gp.transform(vp.getAffineTransform()); |
|
33 |
// g.draw(gp); |
|
27 |
LineStyle2D style2D = (LineStyle2D) symbol; |
|
28 |
|
|
29 |
g.setPaint(style2D.getContour()); |
|
30 |
g.setStroke(style2D.getStroke()); |
|
31 |
if (style2D.getContourComposite() != null) |
|
32 |
g.setComposite(style2D.getContourComposite()); |
|
33 |
g.draw(gp); |
|
34 |
|
|
35 |
// g.draw(gp); */ |
|
36 |
gp.transform(vp.getAffineTransform()); |
|
34 | 37 |
shpPainter.paint(g,gp,symbol,0); |
35 |
} |
|
38 |
// }
|
|
36 | 39 |
|
37 | 40 |
/* StyledShapePainter painter = new StyledShapePainter(); |
38 | 41 |
painter.paint(g, this, symbol, vp.getScale()); |
Also available in: Unified diff