Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/AbstractMarkerSymbol.java
AbstractMarkerSymbol.java | ||
---|---|---|
138 | 138 |
import javax.print.attribute.PrintRequestAttributeSet; |
139 | 139 |
import javax.print.attribute.standard.PrintQuality; |
140 | 140 |
|
141 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
142 | 141 |
import com.iver.cit.gvsig.fmap.ViewPort; |
143 | 142 |
import com.iver.cit.gvsig.fmap.core.CartographicSupportToolkit; |
144 | 143 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
144 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
|
145 | 145 |
import com.iver.cit.gvsig.fmap.core.FShape; |
146 | 146 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
147 | 147 |
import com.iver.cit.gvsig.fmap.core.SymbologyFactory; |
... | ... | |
213 | 213 |
} |
214 | 214 |
|
215 | 215 |
|
216 |
public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) throws ReadDriverException {
|
|
216 |
public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) { |
|
217 | 217 |
double originalSize = getSize(); |
218 | 218 |
double size=originalSize; |
219 | 219 |
// scale it to size |
... | ... | |
234 | 234 |
return mask; |
235 | 235 |
} |
236 | 236 |
|
237 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r) throws SymbolDrawingException { |
|
238 |
draw(g, scaleInstance, new FPoint2D(r.getCenterX(), r.getCenterY()), null); |
|
237 |
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r, PrintRequestAttributeSet properties) throws SymbolDrawingException { |
|
238 |
if (properties==null) |
|
239 |
draw(g, scaleInstance, new FPoint2D(r.getCenterX(), r.getCenterY()), null); |
|
240 |
else |
|
241 |
print(g, new AffineTransform(), new FPoint2D(r.getCenterX(), r.getCenterY()), properties); |
|
239 | 242 |
} |
240 | 243 |
|
241 | 244 |
public final void setMask(IMask mask) { |
Also available in: Unified diff