Revision 1763 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/Behavior/RectangleBehavior.java
RectangleBehavior.java | ||
---|---|---|
80 | 80 |
* @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#paintComponent(java.awt.Graphics) |
81 | 81 |
*/ |
82 | 82 |
public void paintComponent(Graphics g) { |
83 |
///g.setColor(Color.white);
|
|
84 |
///g.fillRect(0, 0, getMapControl().getWidth(), getMapControl().getHeight());
|
|
83 |
//g.setColor(Color.white); |
|
84 |
//g.fillRect(0, 0, getMapControl().getWidth(), getMapControl().getHeight()); |
|
85 | 85 |
BufferedImage img = getMapControl().getImage(); |
86 | 86 |
g.drawImage(img, 0, 0, null); |
87 | 87 |
g.setColor(Color.black); |
... | ... | |
91 | 91 |
Rectangle r = new Rectangle(); |
92 | 92 |
// Dibujamos el actual |
93 | 93 |
if ((m_FirstPoint != null) && (m_LastPoint != null)) { |
94 |
super.paintComponent(g); |
|
94 |
//super.paintComponent(g);
|
|
95 | 95 |
r.setFrameFromDiagonal(m_FirstPoint, m_LastPoint); |
96 | 96 |
g.drawRect(r.x, r.y, r.width, r.height); |
97 | 97 |
}else{ |
98 |
super.paintComponent(g); |
|
98 |
//super.paintComponent(g);
|
|
99 | 99 |
} |
100 | 100 |
} |
101 | 101 |
|
Also available in: Unified diff