root / trunk / libraries / libCq_CMS_praster / src-test / org / cresques / ui / TestCutRasterPanel.java @ 8026
History | View | Annotate | Download (2.51 KB)
1 |
/*
|
---|---|
2 |
* Created on 23-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 |
import javax.swing.SwingUtilities; |
32 |
import javax.swing.UIManager; |
33 |
|
34 |
import org.cresques.ui.raster.CutRasterPanel; |
35 |
|
36 |
public class TestCutRasterPanel implements ComponentListener{ |
37 |
|
38 |
private JFrame frame = new JFrame(); |
39 |
private CutRasterPanel panel = null; |
40 |
|
41 |
public TestCutRasterPanel(){
|
42 |
frame.setSize(438, 617); |
43 |
|
44 |
panel = new CutRasterPanel(null, 0, 0, null); |
45 |
//panel.setComponentSize(frame.getWidth() - 20, frame.getHeight() - 40);
|
46 |
frame.getContentPane().add(panel); |
47 |
frame.show(); |
48 |
panel.addComponentListener(this);
|
49 |
} |
50 |
|
51 |
public static void main(String[] args){ |
52 |
try {
|
53 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
54 |
//UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
|
55 |
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
|
56 |
} catch( Exception e ) { |
57 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
58 |
} |
59 |
TestCutRasterPanel test = new TestCutRasterPanel();
|
60 |
} |
61 |
|
62 |
public void componentHidden(ComponentEvent e) { |
63 |
// TODO Auto-generated method stub
|
64 |
|
65 |
} |
66 |
|
67 |
public void componentMoved(ComponentEvent e) { |
68 |
// TODO Auto-generated method stub
|
69 |
|
70 |
} |
71 |
|
72 |
public void componentResized(ComponentEvent e) { |
73 |
//panel.setComponentSize(frame.getWidth() - 20, frame.getHeight() - 40);
|
74 |
|
75 |
} |
76 |
|
77 |
public void componentShown(ComponentEvent e) { |
78 |
// TODO Auto-generated method stub
|
79 |
|
80 |
} |
81 |
|
82 |
} |