Revision 28368 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameSymbol.java

View differences:

FFrameSymbol.java
52 52

  
53 53
import javax.print.attribute.PrintRequestAttributeSet;
54 54

  
55
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
56 55
import com.iver.andami.PluginServices;
57 56
import com.iver.cit.gvsig.fmap.core.FShape;
58 57
import com.iver.cit.gvsig.fmap.core.SymbologyFactory;
......
66 65
 */
67 66
public class FFrameSymbol extends FFrameGraphics {
68 67

  
69
    /**
68
    private PrintRequestAttributeSet properties;
69

  
70
	/**
70 71
     * Crea un nuevo FFrameSymbol.
71 72
     */
72 73
    public FFrameSymbol() {
......
84 85
     * @param imgBase Imagen para acelerar el dibujado.
85 86
     */
86 87
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
87
        BufferedImage imgBase) throws ReadDriverException {
88
        BufferedImage imgBase) {
88 89
        Rectangle2D.Double re = getBoundingBox(at);
89 90
        g.rotate(Math.toRadians(getRotation()), re.x + (re.width / 2),
90 91
            re.y + (re.height / 2));
......
97 98
                    (int) (re.width), (int) (re.height));
98 99

  
99 100
            try {
100
				getFSymbol().drawInsideRectangle(g, mT2, rec);
101
				getFSymbol().drawInsideRectangle(g, mT2, rec, properties);
101 102
			} catch (SymbolDrawingException e) {
102 103
				if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
103 104
					try {
104 105
						SymbologyFactory.getWarningSymbol(
105 106
								SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
106 107
								getFSymbol().getDescription(),
107
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rec);
108
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rec, null);
108 109
					} catch (SymbolDrawingException e1) {
109 110
						// IMPOSSIBLE TO REACH THIS
110 111
					}
......
130 131
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
131 132
     *      java.awt.geom.AffineTransform)
132 133
     */
133
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet printingProperties) throws ReadDriverException {
134
        draw(g, at, null, null);
134
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) {
135
        this.properties=properties;
136
    	draw(g, at, null, null);
137
    	this.properties=null;
135 138
    }
136 139

  
137 140
    public void initialize() {

Also available in: Unified diff