Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/AbstractLineSymbol.java
AbstractLineSymbol.java | ||
---|---|---|
106 | 106 |
import javax.print.attribute.PrintRequestAttributeSet; |
107 | 107 |
import javax.print.attribute.standard.PrintQuality; |
108 | 108 |
|
109 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
110 | 109 |
import com.iver.cit.gvsig.fmap.ViewPort; |
111 | 110 |
import com.iver.cit.gvsig.fmap.core.CartographicSupportToolkit; |
112 | 111 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
... | ... | |
184 | 183 |
color = new Color(color.getRed(), color.getGreen(), color.getBlue(), outlineAlpha); |
185 | 184 |
} |
186 | 185 |
|
187 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r) throws SymbolDrawingException { |
|
186 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r, PrintRequestAttributeSet properties) throws SymbolDrawingException {
|
|
188 | 187 |
final int hGap = (int) (r.getWidth() * 0.1); // the left and right margins |
189 | 188 |
final int vPos = 1; // the top and bottom margins |
190 | 189 |
final int splitCount = 3; // number of lines |
... | ... | |
202 | 201 |
} |
203 | 202 |
|
204 | 203 |
try { |
205 |
draw(g, new AffineTransform(), new FPolygon2D(gpx), null); |
|
204 |
if (properties==null) |
|
205 |
draw(g, new AffineTransform(), new FPolygon2D(gpx), null); |
|
206 |
else |
|
207 |
print(g, new AffineTransform(), new FPolygon2D(gpx), properties); |
|
206 | 208 |
} catch (Exception e) { |
207 | 209 |
throw new SymbolDrawingException(SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS); |
208 | 210 |
} |
... | ... | |
359 | 361 |
public void print(Graphics2D g, |
360 | 362 |
AffineTransform at, |
361 | 363 |
FShape shape, |
362 |
PrintRequestAttributeSet properties) throws ReadDriverException {
|
|
364 |
PrintRequestAttributeSet properties) { |
|
363 | 365 |
double originalSize = getLineWidth(); |
364 | 366 |
double size=originalSize; |
365 | 367 |
// scale it to size |
Also available in: Unified diff