267 |
267 |
AffineTransform scaleInstance, Rectangle r, PrintRequestAttributeSet properties) throws SymbolDrawingException {
|
268 |
268 |
double myWidth = (r.getWidth()/3);
|
269 |
269 |
|
270 |
|
Rectangle rect = new Rectangle(0, r.y, (int) myWidth, r.height);
|
|
270 |
Rectangle rect = new Rectangle(r.x, r.y, (int) myWidth, r.height);
|
271 |
271 |
|
272 |
272 |
if (marker != null) {
|
273 |
|
g.translate(r.x, r.y);
|
|
273 |
// g.translate(r.x, r.y);
|
274 |
274 |
marker.drawInsideRectangle(g, scaleInstance, rect, properties);
|
275 |
|
g.translate(-(r.x), -(r.y));
|
|
275 |
// g.translate(-(r.x), -(r.y));
|
276 |
276 |
}
|
|
277 |
rect = new Rectangle((int)(r.x+myWidth), r.y, (int) myWidth, r.height);
|
277 |
278 |
|
278 |
279 |
if (line != null) {
|
279 |
|
g.translate(r.x+myWidth, r.y);
|
|
280 |
// g.translate(r.x+myWidth, r.y);
|
280 |
281 |
line.drawInsideRectangle(g, scaleInstance, rect, properties);
|
281 |
|
g.translate(-(r.x+myWidth), -(r.y));
|
|
282 |
// g.translate(-(r.x+myWidth), -(r.y));
|
282 |
283 |
}
|
|
284 |
rect = new Rectangle((int)(r.x+myWidth+myWidth), r.y, (int) myWidth, r.height);
|
283 |
285 |
|
284 |
286 |
if (fill != null) {
|
285 |
|
g.translate(r.x+myWidth+myWidth, r.y);
|
|
287 |
// g.translate(r.x+myWidth+myWidth, r.y);
|
286 |
288 |
fill.drawInsideRectangle(g, scaleInstance, rect, properties);
|
287 |
|
g.translate(-(r.x+myWidth+myWidth), -(r.y));
|
|
289 |
// g.translate(-(r.x+myWidth+myWidth), -(r.y));
|
288 |
290 |
|
289 |
291 |
}
|
290 |
292 |
}
|