Revision 10885 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/GraphicContainer.java
GraphicContainer.java | ||
---|---|---|
36 | 36 |
* @author Nacho Brodin (brodin_ign@gva.es) |
37 | 37 |
* |
38 | 38 |
*/ |
39 |
public class GraphicContainer extends JPanel implements ComponentListener { |
|
39 |
public class GraphicContainer extends JPanel implements ComponentListener { |
|
40 |
private static final long serialVersionUID = -6230083498345786500L; |
|
40 | 41 |
private static final int INTERNAL_MARGIN = 4; |
41 | 42 |
private int HEIGHT_DOUBLESLIDER = 25; |
42 | 43 |
private static final int HEIGHT_BOXES = 30; |
... | ... | |
52 | 53 |
private boolean showSlider = true; |
53 | 54 |
|
54 | 55 |
public GraphicContainer() { |
55 |
graphicListener = new GraphicListener(this);
|
|
56 |
graphicListener = new GraphicListener(); |
|
56 | 57 |
initialize(); |
57 | 58 |
} |
58 | 59 |
|
... | ... | |
60 | 61 |
this.showSlider = showSlider; |
61 | 62 |
if (!showSlider) |
62 | 63 |
HEIGHT_DOUBLESLIDER = 0; |
63 |
graphicListener = new GraphicListener(this);
|
|
64 |
graphicListener = new GraphicListener(); |
|
64 | 65 |
initialize(); |
65 | 66 |
} |
66 | 67 |
|
... | ... | |
214 | 215 |
return this.getPBoxes().getControlLeft().getTText(); |
215 | 216 |
} |
216 | 217 |
|
217 |
public void componentResized(ComponentEvent e) { |
|
218 |
this.setComponentSize(this.getWidth(), this.getHeight()); |
|
219 |
} |
|
220 |
|
|
221 | 218 |
public void componentHidden(ComponentEvent e) { |
222 | 219 |
// TODO Auto-generated method stub |
223 | 220 |
} |
224 | 221 |
|
225 | 222 |
public void componentMoved(ComponentEvent e) { |
226 |
// TODO Auto-generated method stub
|
|
223 |
// TODO Auto-generated method stub |
|
227 | 224 |
} |
228 | 225 |
|
226 |
public void componentResized(ComponentEvent e) { |
|
227 |
this.setComponentSize(this.getWidth(), this.getHeight()); |
|
228 |
} |
|
229 |
|
|
229 | 230 |
public void componentShown(ComponentEvent e) { |
230 | 231 |
// TODO Auto-generated method stub |
231 | 232 |
} |
Also available in: Unified diff