Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/SymbologyFactory.java

View differences:

SymbologyFactory.java
114 114
import java.awt.geom.Ellipse2D;
115 115
import java.io.File;
116 116

  
117
import javax.print.attribute.PrintRequestAttributeSet;
117 118
import javax.swing.JFrame;
118 119
import javax.swing.JPanel;
119 120

  
......
410 411
			return new MultiShapeSymbol();
411 412
		} else if (shapeType == FShape.NULL){
412 413
			return null;
413
		}		
414
		}
414 415
		throw new Error("shape type not yet supported");
415 416
	}
416 417

  
......
473 474
					super.paintComponent(g);
474 475
					Graphics2D g2 = (Graphics2D)g;
475 476
					try {
476
						warning.drawInsideRectangle(g2, g2.getTransform(), getBounds());
477
						warning.drawInsideRectangle(g2, g2.getTransform(), getBounds(), null);
477 478
					} catch (SymbolDrawingException e) {
478 479
						// TODO Auto-generated catch block
479 480
						e.printStackTrace();
......
488 489
		public void draw(Graphics2D g, AffineTransform affineTransform,
489 490
				FShape shp, Cancellable cancel) {
490 491
			try {
491
				drawInsideRectangle(g, g.getTransform(), shp.getBounds());
492
				drawInsideRectangle(g, g.getTransform(), shp.getBounds(), null);
492 493
			} catch (SymbolDrawingException e) {
493 494
				// IMPOSSIBLE
494 495
			}
......
503 504
		}
504 505

  
505 506
		public void drawInsideRectangle(Graphics2D g,
506
				AffineTransform scaleInstance, Rectangle r)
507
				AffineTransform scaleInstance, Rectangle r, PrintRequestAttributeSet properties)
507 508
				throws SymbolDrawingException {
508 509
			g.setClip(r);
509 510
			if (message == null) {
......
550 551
					(int) lineHeight);
551 552
			for (int i =0; i < messageLines.length; i++) {
552 553
				text.setText(messageLines[i]);
553
				text.drawInsideRectangle(g, null, textRect);
554
				text.drawInsideRectangle(g, null, textRect, properties);
554 555
				textRect.setLocation((int) r.getX(), (int) (r.getY()+r.getHeight()));
555 556
			}
556 557
		}

Also available in: Unified diff