root / branches / piloto3d / libraries / libCq CMS for java.old / src-test / org / cresques / ui / TestResolutionPanel.java @ 9523
History | View | Annotate | Download (2.01 KB)
1 |
/*
|
---|---|
2 |
* Created on 02-ago-2006
|
3 |
*
|
4 |
* To change the template for this generated file go to
|
5 |
* Window>Preferences>Java>Code Generation>Code and Comments
|
6 |
*/
|
7 |
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
8 |
*
|
9 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or (at your option) any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
24 |
*/
|
25 |
package org.cresques.ui; |
26 |
|
27 |
import java.awt.event.ComponentEvent; |
28 |
import java.awt.event.ComponentListener; |
29 |
|
30 |
import javax.swing.JFrame; |
31 |
|
32 |
import org.cresques.ui.raster.ResolutionPanel; |
33 |
|
34 |
public class TestResolutionPanel implements ComponentListener{ |
35 |
|
36 |
public JFrame frame = new JFrame(); |
37 |
public ResolutionPanel panel = null; |
38 |
|
39 |
public TestResolutionPanel(){
|
40 |
frame.setSize(380, 200); |
41 |
panel = new ResolutionPanel();
|
42 |
frame.getContentPane().add(panel); |
43 |
frame.addComponentListener(this);
|
44 |
frame.show(); |
45 |
} |
46 |
|
47 |
public static void main(String[] args){ |
48 |
TestResolutionPanel test = new TestResolutionPanel();
|
49 |
} |
50 |
|
51 |
public void componentHidden(ComponentEvent e) { |
52 |
// TODO Auto-generated method stub
|
53 |
|
54 |
} |
55 |
|
56 |
public void componentMoved(ComponentEvent e) { |
57 |
// TODO Auto-generated method stub
|
58 |
|
59 |
} |
60 |
|
61 |
public void componentResized(ComponentEvent e) { |
62 |
this.panel.setComponentSize(this.frame.getWidth()-10, this.frame.getHeight()-20); |
63 |
|
64 |
} |
65 |
|
66 |
public void componentShown(ComponentEvent e) { |
67 |
// TODO Auto-generated method stub
|
68 |
|
69 |
} |
70 |
|
71 |
} |