Revision 47357

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/impl/DefaultPrimitivesDrawer.java
58 58
    }
59 59

  
60 60
    public void drawLine(int x1, int y1, int x2, int y2) {
61
        Color prevColor = graphics.getColor();
61 62
        graphics.setXORMode(xorColor);
63
        graphics.setColor(color);
62 64
        graphics.drawLine(x1, y1, x2, y2);
63 65
        graphics.setPaintMode();
66
        graphics.setColor(prevColor);
64 67
    }
65 68

  
66 69
    public void drawOval(int x, int y, int width, int height) {
70
        Color prevColor = graphics.getColor();
67 71
        graphics.setXORMode(xorColor);
72
        graphics.setColor(color);
68 73
        graphics.drawOval(x, y, width, height);
69 74
        graphics.setPaintMode();
75
        graphics.setColor(prevColor);
70 76
    }
71 77

  
72 78
    public void drawRect(int x, int y, int width, int height) {
79
        Color prevColor = graphics.getColor();
73 80
        graphics.setXORMode(xorColor);
81
        graphics.setColor(color);
74 82
        graphics.drawRect(x, y, width, height);
75 83
        graphics.setPaintMode();
84
        graphics.setColor(prevColor);
76 85
    }
77 86

  
78 87
    public void fillRect(int x, int y, int width, int height) {
......
115 124
    	BufferedImage img = mapCtrl.getImage();
116 125
    	this.graphics.drawImage(img, 0, 0, null);
117 126
    }
118
}
127
        }

Also available in: Unified diff