Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/AttrInTableLabelingStrategy.java

View differences:

AttrInTableLabelingStrategy.java
64 64
	private boolean useFixedSize;
65 65
	private boolean useFixedColor;
66 66
	private int referenceSystem;
67
	private boolean isPrinting;
68 67
	private double  printDPI;
69 68
	private Font font;
70 69
	private Color colorFont;
......
72 71
	private String rotationFieldName;
73 72
	private String heightFieldName;
74 73
	private String colorFieldName;
74
	private PrintRequestAttributeSet properties;
75 75

  
76 76
	public ILabelingMethod getLabelingMethod() {
77 77
		return this.method;
......
202 202
					for (int j = 0; j < aux.length; j++) {
203 203
						FPoint2D p = new FPoint2D(aux[j].getOrig());
204 204
						p.transform(viewPort.getAffineTransform());
205
						sym.draw(g, null, p, cancel);
205
						if (properties==null)
206
							sym.draw(g, null, p, cancel);
207
						else
208
							sym.print(g, null, p, properties);
206 209
					}
207 210

  
208 211

  
......
395 398
	}
396 399

  
397 400
	public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, PrintRequestAttributeSet properties) throws ReadDriverException {
398
		isPrinting = true;
399
		PrintQuality resolution=(PrintQuality)properties.get(PrintQuality.class);
400
		if (resolution.equals(PrintQuality.NORMAL)){
401
			printDPI=300;
402
		} else if (resolution.equals(PrintQuality.HIGH)) {
403
			printDPI=600;
404
		} else if (resolution.equals(PrintQuality.DRAFT)) {
405
			printDPI=72;
406
		}
401
		this.properties=properties;
407 402
		draw(null, g, viewPort, cancel, printDPI);
408
		isPrinting = false;
403
		this.properties=null;
409 404
	}
410 405

  
411 406
	public void setUsesFixedSize(boolean b) {

Also available in: Unified diff