Revision 19091 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/symbols/PictureLineSymbol.java
PictureLineSymbol.java | ||
---|---|---|
81 | 81 |
// transient private BufferedImage selImg; |
82 | 82 |
transient private PictureLineSymbol selectionSym; |
83 | 83 |
private String selImagePath; |
84 |
private double width, csWidth;
|
|
84 |
private double width; |
|
85 | 85 |
private String imagePath; |
86 | 86 |
private boolean selected; |
87 | 87 |
private double xScale = 1, csXScale = xScale; |
... | ... | |
145 | 145 |
|
146 | 146 |
public void setLineWidth(double width) { |
147 | 147 |
this.width = width; |
148 |
this.csWidth = width;
|
|
148 |
getLineStyle().setLineWidth((float) width);
|
|
149 | 149 |
} |
150 | 150 |
|
151 | 151 |
public double getLineWidth() { |
... | ... | |
164 | 164 |
} |
165 | 165 |
|
166 | 166 |
public void draw(Graphics2D g, AffineTransform affineTransform, FShape shp, Cancellable cancel) { |
167 |
float csWidth = getLineStyle().getLineWidth(); |
|
167 | 168 |
g.setClip(new BasicStroke((float) csWidth, BasicStroke.CAP_ROUND,BasicStroke.CAP_ROUND).createStrokedShape(shp)); |
168 | 169 |
BackgroundFileStyle bg = (!selected) ? bgImage : bgSelImage ; |
169 | 170 |
|
... | ... | |
356 | 357 |
|
357 | 358 |
@Override |
358 | 359 |
public void setCartographicSize(double cartographicSize, FShape shp) { |
359 |
csWidth = cartographicSize;
|
|
360 |
double scale = csWidth/width;
|
|
360 |
getLineStyle().setLineWidth((float) cartographicSize);
|
|
361 |
double scale = cartographicSize/width;
|
|
361 | 362 |
csXScale = xScale * scale; |
362 | 363 |
csYScale = yScale * scale; |
363 | 364 |
} |
Also available in: Unified diff