Revision 10885
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/dialogPanel/TestDialogPanel.java | ||
---|---|---|
68 | 68 |
} catch (Exception e) { |
69 | 69 |
System.err.println("No se puede cambiar al LookAndFeel"); |
70 | 70 |
} |
71 |
TestDialogPanel test = new TestDialogPanel();
|
|
71 |
new TestDialogPanel(); |
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
public void actionPerformed(ActionEvent e) { |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/buttonBar/TestButtonBar.java | ||
---|---|---|
26 | 26 |
} |
27 | 27 |
|
28 | 28 |
public static void main(String[] args){ |
29 |
TestButtonBar test = new TestButtonBar();
|
|
29 |
new TestButtonBar(); |
|
30 | 30 |
} |
31 | 31 |
|
32 | 32 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/coordDataInput/TestCoordDataInput.java | ||
---|---|---|
6 | 6 |
import javax.swing.JFrame; |
7 | 7 |
import javax.swing.UIManager; |
8 | 8 |
|
9 |
import org.gvsig.gui.beans.openFile.TestOpenFile; |
|
10 |
|
|
11 | 9 |
public class TestCoordDataInput implements ComponentListener{ |
12 | 10 |
private int w = 438, h = 130; |
13 | 11 |
private JFrame frame = new JFrame(); |
... | ... | |
28 | 26 |
|
29 | 27 |
public static void main(String[] args){ |
30 | 28 |
try { |
31 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
32 |
//UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); |
|
33 |
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
|
34 |
} catch( Exception e ) { |
|
35 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
36 |
} |
|
37 |
TestCoordDataInput tof = new TestCoordDataInput(); |
|
29 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
30 |
} catch( Exception e ) { |
|
31 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
32 |
} |
|
33 |
new TestCoordDataInput(); |
|
38 | 34 |
} |
39 | 35 |
|
40 | 36 |
public void componentHidden(ComponentEvent e) { |
41 | 37 |
// TODO Auto-generated method stub |
42 |
|
|
43 | 38 |
} |
44 | 39 |
|
45 | 40 |
public void componentMoved(ComponentEvent e) { |
46 | 41 |
// TODO Auto-generated method stub |
47 |
|
|
48 | 42 |
} |
49 | 43 |
|
50 | 44 |
public void componentResized(ComponentEvent e) { |
51 | 45 |
coord.setComponentSize(frame.getWidth() - 10, frame.getWidth() - 30); |
52 |
|
|
53 | 46 |
} |
54 | 47 |
|
55 | 48 |
public void componentShown(ComponentEvent e) { |
56 | 49 |
// TODO Auto-generated method stub |
57 |
|
|
58 | 50 |
} |
59 | 51 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/textincreaser/TestTextIncreaser.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gui.beans.textincreaser; |
2 | 2 |
|
3 |
import java.awt.event.ComponentEvent; |
|
4 |
import java.awt.event.ComponentListener; |
|
5 |
|
|
6 | 3 |
import javax.swing.JFrame; |
7 | 4 |
|
8 | 5 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
... | ... | |
21 | 18 |
} |
22 | 19 |
|
23 | 20 |
public static void main(String[] args) { |
24 |
try{ |
|
25 |
TestTextIncreaser tti = new TestTextIncreaser();
|
|
26 |
}catch(NotInitializeException ex){
|
|
21 |
try {
|
|
22 |
new TestTextIncreaser(); |
|
23 |
} catch (NotInitializeException ex) {
|
|
27 | 24 |
System.out.println("Tabla no inicializado"); |
28 | 25 |
} |
29 | 26 |
} |
30 |
|
|
31 |
} |
|
27 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/openFile/TestOpenFile.java | ||
---|---|---|
5 | 5 |
|
6 | 6 |
import javax.swing.JFrame; |
7 | 7 |
|
8 |
import org.gvsig.gui.beans.coordDataInput.CoordDataInputContainer; |
|
9 |
import org.gvsig.gui.beans.dataInput.DataInputContainer; |
|
10 |
|
|
11 |
public class TestOpenFile implements ComponentListener{ |
|
8 |
public class TestOpenFile implements ComponentListener { |
|
12 | 9 |
private int w = 510, h = 90; |
13 | 10 |
private JFrame frame = new JFrame(); |
14 | 11 |
private OpenFileContainer open = null; |
... | ... | |
24 | 21 |
} |
25 | 22 |
|
26 | 23 |
public static void main(String[] args){ |
27 |
TestOpenFile tof = new TestOpenFile();
|
|
24 |
new TestOpenFile(); |
|
28 | 25 |
} |
29 | 26 |
|
30 | 27 |
public void componentHidden(ComponentEvent e) { |
31 | 28 |
// TODO Auto-generated method stub |
32 |
|
|
33 | 29 |
} |
34 | 30 |
|
35 | 31 |
public void componentMoved(ComponentEvent e) { |
36 | 32 |
// TODO Auto-generated method stub |
37 |
|
|
38 | 33 |
} |
39 | 34 |
|
40 | 35 |
public void componentResized(ComponentEvent e) { |
41 | 36 |
this.open.setComponentSize(this.frame.getWidth() - 10, this.frame.getHeight() -50); |
42 |
|
|
43 | 37 |
} |
44 | 38 |
|
45 | 39 |
public void componentShown(ComponentEvent e) { |
46 | 40 |
// TODO Auto-generated method stub |
47 |
|
|
48 | 41 |
} |
49 | 42 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/checkslidertext/TestCheckSliderTextTable.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gui.beans.checkslidertext; |
2 | 2 |
|
3 |
import java.awt.event.ComponentEvent; |
|
4 |
import java.awt.event.ComponentListener; |
|
5 |
|
|
6 | 3 |
import javax.swing.JFrame; |
7 | 4 |
|
8 | 5 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
9 | 6 |
|
10 |
public class TestCheckSliderTextTable implements ComponentListener{
|
|
7 |
public class TestCheckSliderTextTable { |
|
11 | 8 |
private int w = 375, h = 150; |
12 | 9 |
private JFrame frame=new JFrame(); |
13 | 10 |
private CheckSliderTextContainer slider = null; |
... | ... | |
17 | 14 |
slider.setDecimal(false); |
18 | 15 |
slider.setBorder("Cabecera"); |
19 | 16 |
|
20 |
frame.addComponentListener(this); |
|
21 |
|
|
22 | 17 |
frame.getContentPane().add(slider); |
23 | 18 |
frame.setSize(w, h); |
24 | 19 |
frame.setVisible(true); |
... | ... | |
26 | 21 |
|
27 | 22 |
public static void main(String[] args) { |
28 | 23 |
try{ |
29 |
TestCheckSliderTextTable slider = new TestCheckSliderTextTable();
|
|
24 |
new TestCheckSliderTextTable(); |
|
30 | 25 |
}catch(NotInitializeException ex){ |
31 | 26 |
System.out.println("Tabla no inicializada"); |
32 | 27 |
} |
33 | 28 |
} |
34 |
|
|
35 |
public void componentHidden(ComponentEvent e) { |
|
36 |
// TODO Auto-generated method stub |
|
37 |
|
|
38 |
} |
|
39 |
|
|
40 |
public void componentMoved(ComponentEvent e) { |
|
41 |
// TODO Auto-generated method stub |
|
42 |
|
|
43 |
} |
|
44 |
|
|
45 |
public void componentResized(ComponentEvent e) { |
|
46 |
|
|
47 |
} |
|
48 |
|
|
49 |
public void componentShown(ComponentEvent e) { |
|
50 |
// TODO Auto-generated method stub |
|
51 |
|
|
52 |
} |
|
53 |
} |
|
29 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/labelslidertext/TestLabelSliderTextTable.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
public static void main(String[] args) { |
28 | 28 |
try{ |
29 |
TestLabelSliderTextTable slider = new TestLabelSliderTextTable();
|
|
29 |
new TestLabelSliderTextTable(); |
|
30 | 30 |
}catch(NotInitializeException ex){ |
31 | 31 |
System.out.println("Tabla no inicializada"); |
32 | 32 |
} |
... | ... | |
34 | 34 |
|
35 | 35 |
public void componentHidden(ComponentEvent e) { |
36 | 36 |
// TODO Auto-generated method stub |
37 |
|
|
38 | 37 |
} |
39 | 38 |
|
40 | 39 |
public void componentMoved(ComponentEvent e) { |
41 | 40 |
// TODO Auto-generated method stub |
42 |
|
|
43 | 41 |
} |
44 | 42 |
|
45 | 43 |
public void componentResized(ComponentEvent e) { |
46 |
|
|
47 | 44 |
} |
48 | 45 |
|
49 | 46 |
public void componentShown(ComponentEvent e) { |
50 | 47 |
// TODO Auto-generated method stub |
51 |
|
|
52 | 48 |
} |
53 | 49 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/slidertext/TestSliderTextTable.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
public static void main(String[] args) { |
26 | 26 |
try{ |
27 |
TestSliderTextTable slider = new TestSliderTextTable();
|
|
27 |
new TestSliderTextTable(); |
|
28 | 28 |
}catch(NotInitializeException ex){ |
29 | 29 |
System.out.println("Tabla no inicializada"); |
30 | 30 |
} |
... | ... | |
32 | 32 |
|
33 | 33 |
public void componentHidden(ComponentEvent e) { |
34 | 34 |
// TODO Auto-generated method stub |
35 |
|
|
36 | 35 |
} |
37 | 36 |
|
38 | 37 |
public void componentMoved(ComponentEvent e) { |
39 | 38 |
// TODO Auto-generated method stub |
40 |
|
|
41 | 39 |
} |
42 | 40 |
|
43 | 41 |
public void componentResized(ComponentEvent e) { |
... | ... | |
46 | 44 |
|
47 | 45 |
public void componentShown(ComponentEvent e) { |
48 | 46 |
// TODO Auto-generated method stub |
49 |
|
|
50 | 47 |
} |
51 |
} |
|
48 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/table/TestTableButtonModelTable.java | ||
---|---|---|
38 | 38 |
} |
39 | 39 |
|
40 | 40 |
public static void main(String[] args) { |
41 |
try{ |
|
42 |
TestTableButtonModelTable tabla = new TestTableButtonModelTable();
|
|
43 |
}catch(NotInitializeException ex){ |
|
41 |
try {
|
|
42 |
new TestTableButtonModelTable(); |
|
43 |
} catch(NotInitializeException ex){
|
|
44 | 44 |
System.out.println("Tabla no inicializada"); |
45 | 45 |
} |
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
public void actionPerformed(ActionEvent e) { |
49 | 49 |
System.out.println("Evento de bot?n!!"); |
50 |
|
|
51 | 50 |
} |
52 |
} |
|
51 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/table/CheckBoxModelTable.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gui.beans.table; |
2 | 2 |
|
3 |
import java.awt.event.ComponentEvent; |
|
4 |
import java.awt.event.ComponentListener; |
|
5 |
|
|
6 | 3 |
import javax.swing.JFrame; |
7 | 4 |
|
8 | 5 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
... | ... | |
33 | 30 |
} |
34 | 31 |
|
35 | 32 |
public static void main(String[] args) { |
36 |
try{ |
|
37 |
CheckBoxModelTable tabla = new CheckBoxModelTable();
|
|
38 |
}catch(NotInitializeException ex){
|
|
33 |
try {
|
|
34 |
new CheckBoxModelTable(); |
|
35 |
} catch (NotInitializeException ex) {
|
|
39 | 36 |
System.out.println("Tabla no inicializada"); |
40 | 37 |
} |
41 | 38 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/table/TestTreeRadioButtonModelTable.java | ||
---|---|---|
30 | 30 |
} |
31 | 31 |
|
32 | 32 |
public static void main(String[] args) { |
33 |
try{ |
|
34 |
TestTreeRadioButtonModelTable tabla = new TestTreeRadioButtonModelTable();
|
|
35 |
}catch(NotInitializeException ex){
|
|
33 |
try {
|
|
34 |
new TestTreeRadioButtonModelTable(); |
|
35 |
} catch (NotInitializeException ex) {
|
|
36 | 36 |
System.out.println("Tabla no inicializada"); |
37 | 37 |
} |
38 | 38 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/table/TestTable.java | ||
---|---|---|
6 | 6 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
7 | 7 |
|
8 | 8 |
public class TestTable extends JFrame { |
9 |
private static final long serialVersionUID = -1071011269441792511L; |
|
9 | 10 |
private TableContainer table = null; |
10 | 11 |
|
11 | 12 |
public TestTable() throws NotInitializeException{ |
... | ... | |
36 | 37 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
37 | 38 |
} |
38 | 39 |
try { |
39 |
TestTable tabla = new TestTable();
|
|
40 |
new TestTable(); |
|
40 | 41 |
} catch (NotInitializeException ex){ |
41 | 42 |
System.out.println("Tabla no inicializada"); |
42 | 43 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/dataInput/TestDataInput.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
public static void main(String[] args){ |
30 | 30 |
try { |
31 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
32 |
//UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); |
|
33 |
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
|
34 |
} catch( Exception e ) { |
|
35 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
36 |
} |
|
37 |
TestDataInput tof = new TestDataInput(); |
|
31 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
32 |
} catch( Exception e ) { |
|
33 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
34 |
} |
|
35 |
new TestDataInput(); |
|
38 | 36 |
} |
39 | 37 |
|
38 |
public void componentResized(ComponentEvent e) { |
|
39 |
data.setComponentSize(frame.getWidth() - 10, frame.getHeight() - 30); |
|
40 |
} |
|
41 |
|
|
40 | 42 |
public void componentHidden(ComponentEvent e) { |
41 | 43 |
// TODO Auto-generated method stub |
42 |
|
|
43 | 44 |
} |
44 | 45 |
|
45 | 46 |
public void componentMoved(ComponentEvent e) { |
46 | 47 |
// TODO Auto-generated method stub |
47 |
|
|
48 | 48 |
} |
49 | 49 |
|
50 |
public void componentResized(ComponentEvent e) { |
|
51 |
data.setComponentSize(frame.getWidth() - 10, frame.getHeight() - 30); |
|
52 |
|
|
53 |
} |
|
54 |
|
|
55 | 50 |
public void componentShown(ComponentEvent e) { |
56 | 51 |
// TODO Auto-generated method stub |
57 |
|
|
58 | 52 |
} |
59 |
} |
|
53 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/treelist/TestTreeList.java | ||
---|---|---|
40 | 40 |
} |
41 | 41 |
|
42 | 42 |
public static void main(String[] args) { |
43 |
try{ |
|
44 |
TestTreeList tl = new TestTreeList();
|
|
45 |
}catch(NotInitializeException ex){
|
|
43 |
try {
|
|
44 |
new TestTreeList(); |
|
45 |
} catch (NotInitializeException ex) {
|
|
46 | 46 |
System.out.println("Tabla no inicializado"); |
47 | 47 |
} |
48 | 48 |
} |
49 | 49 |
|
50 | 50 |
public void componentHidden(ComponentEvent e) { |
51 | 51 |
// TODO Auto-generated method stub |
52 |
|
|
53 | 52 |
} |
54 | 53 |
|
55 | 54 |
public void componentMoved(ComponentEvent e) { |
56 | 55 |
// TODO Auto-generated method stub |
57 |
|
|
58 | 56 |
} |
59 | 57 |
|
60 | 58 |
public void componentResized(ComponentEvent e) { |
... | ... | |
63 | 61 |
|
64 | 62 |
public void componentShown(ComponentEvent e) { |
65 | 63 |
// TODO Auto-generated method stub |
66 |
|
|
67 | 64 |
} |
68 |
|
|
69 |
} |
|
65 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/graphic/TestGraphic.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
public static void main(String[] args) { |
19 | 19 |
try{ |
20 |
TestGraphic tabla = new TestGraphic();
|
|
20 |
new TestGraphic(); |
|
21 | 21 |
} catch (NotInitializeException ex){ |
22 | 22 |
System.out.println("Tabla no inicializada"); |
23 | 23 |
} |
trunk/libraries/libUIComponent/src-test/org/gvsig/gui/beans/buttonsPanel/TestButtonsPanel.java | ||
---|---|---|
61 | 61 |
} |
62 | 62 |
|
63 | 63 |
public static void main(String[] args){ |
64 |
TestButtonsPanel test = new TestButtonsPanel();
|
|
64 |
new TestButtonsPanel(); |
|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
public void actionPerformed(ActionEvent e) { |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/openFile/OpenFileContainer.java | ||
---|---|---|
29 | 29 |
import org.gvsig.gui.beans.openFile.listeners.OpenFileListener; |
30 | 30 |
import org.gvsig.i18n.Messages; |
31 | 31 |
|
32 |
public class OpenFileContainer extends BaseComponent{ |
|
33 |
|
|
34 |
|
|
32 |
public class OpenFileContainer extends BaseComponent { |
|
33 |
private static final long serialVersionUID = 5823371652872582451L; |
|
35 | 34 |
private int wComp = 500, hComp = 55; |
36 | 35 |
private int wButton = 165; |
37 | 36 |
private int wText = (int)Math.floor(0.63 * wComp); |
... | ... | |
41 | 40 |
private JTextField tOpen = null; |
42 | 41 |
private OpenFileListener listener = null; |
43 | 42 |
|
44 |
private String borderText = "Open"; |
|
45 | 43 |
private boolean isButtonVisible = true; |
46 | 44 |
|
47 | 45 |
public OpenFileContainer() { |
... | ... | |
133 | 131 |
* Pone el texto que le pasamos como texto del borde del panel. |
134 | 132 |
* @param text |
135 | 133 |
*/ |
134 |
/* |
|
136 | 135 |
public void setBorderText(String text){ |
137 | 136 |
this.borderText = text; |
138 | 137 |
} |
138 |
*/ |
|
139 | 139 |
|
140 | 140 |
|
141 | 141 |
public void setComponentSize(int w, int h){ |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/listeners/GraphicListener.java | ||
---|---|---|
25 | 25 |
import java.awt.event.MouseMotionListener; |
26 | 26 |
|
27 | 27 |
import javax.swing.JLabel; |
28 |
import javax.swing.event.TableModelEvent; |
|
29 | 28 |
|
30 |
import org.gvsig.gui.beans.graphic.GraphicContainer; |
|
31 |
import org.jfree.chart.ChartPanel; |
|
32 |
|
|
33 | 29 |
/** |
34 | 30 |
* |
35 | 31 |
* @author Nacho Brodin <brodin_ign@gva.es> |
36 | 32 |
* |
37 | 33 |
*/ |
38 | 34 |
public class GraphicListener implements MouseListener, ActionListener, MouseMotionListener{ |
39 |
|
|
40 |
private GraphicContainer graphicContainer = null; |
|
41 | 35 |
private boolean move = false; |
42 | 36 |
private JLabel left = null; |
43 | 37 |
private JLabel right = null; |
44 | 38 |
|
45 |
public GraphicListener(GraphicContainer graphicContainer){ |
|
46 |
this.graphicContainer = graphicContainer; |
|
47 |
} |
|
48 |
|
|
49 | 39 |
public void mouseDragged(MouseEvent e) { |
50 | 40 |
if(move){ |
51 | 41 |
if(e.getSource() == left) |
... | ... | |
54 | 44 |
if(e.getSource() == right) |
55 | 45 |
right.setLocation(right.getLocation().x + e.getX(), right.getLocation().y); |
56 | 46 |
} |
57 |
ChartPanel cp = graphicContainer.getPGraphic().getChart(); |
|
47 |
//ChartPanel cp = graphicContainer.getPGraphic().getChart();
|
|
58 | 48 |
|
59 | 49 |
//System.out.println(cp.getScaleX()); |
60 | 50 |
|
... | ... | |
72 | 62 |
this.left = left; |
73 | 63 |
this.right = right; |
74 | 64 |
} |
75 |
|
|
76 |
public void mouseMoved(MouseEvent e) { |
|
77 |
|
|
78 |
} |
|
79 | 65 |
|
80 |
private void initialize(){ |
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
public void actionPerformed(ActionEvent e) { |
|
85 |
|
|
86 |
} |
|
87 |
|
|
88 |
public void tableChanged(TableModelEvent e) { |
|
89 |
|
|
90 |
} |
|
91 |
|
|
92 | 66 |
public void mouseClicked(MouseEvent e) { |
67 |
// TODO Auto-generated method stub |
|
93 | 68 |
|
94 | 69 |
} |
95 | 70 |
|
96 | 71 |
public void mouseEntered(MouseEvent e) { |
97 |
|
|
72 |
// TODO Auto-generated method stub |
|
73 |
|
|
98 | 74 |
} |
99 | 75 |
|
100 | 76 |
public void mouseExited(MouseEvent e) { |
101 |
|
|
77 |
// TODO Auto-generated method stub |
|
78 |
|
|
102 | 79 |
} |
103 | 80 |
|
81 |
public void actionPerformed(ActionEvent e) { |
|
82 |
// TODO Auto-generated method stub |
|
83 |
|
|
84 |
} |
|
104 | 85 |
|
105 |
|
|
106 |
} |
|
86 |
public void mouseMoved(MouseEvent e) { |
|
87 |
// TODO Auto-generated method stub |
|
88 |
|
|
89 |
} |
|
90 |
} |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/DoubleSliderControlPanel.java | ||
---|---|---|
32 | 32 |
*/ |
33 | 33 |
|
34 | 34 |
public class DoubleSliderControlPanel extends JPanel { |
35 |
|
|
35 |
private static final long serialVersionUID = -6123036808118349791L; |
|
36 | 36 |
private int width = 300, height = 25; |
37 | 37 |
private JLabel lLeft = null; |
38 | 38 |
private JLabel lRight = null; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/GraphicChartPanel.java | ||
---|---|---|
39 | 39 |
*/ |
40 | 40 |
|
41 | 41 |
public class GraphicChartPanel extends JPanel { |
42 |
|
|
42 |
private static final long serialVersionUID = 7328137487119964665L; |
|
43 | 43 |
private static final int HEIGHT_MARGIN = 5; |
44 | 44 |
private static final int WIDTH_MARGIN = 4; |
45 | 45 |
private JFreeChart chart; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/BoxesPanel.java | ||
---|---|---|
30 | 30 |
*/ |
31 | 31 |
|
32 | 32 |
public class BoxesPanel extends JPanel { |
33 |
|
|
33 |
private static final long serialVersionUID = -4117483555280497312L; |
|
34 | 34 |
private int width = 300, height = 30; |
35 | 35 |
private JPanel pLeft = null; |
36 | 36 |
private JPanel pRight = null; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/graphic/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 |
} |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/coordDataInput/CoordDataInputContainer.java | ||
---|---|---|
29 | 29 |
import org.gvsig.gui.beans.dataInput.DataInputContainer; |
30 | 30 |
|
31 | 31 |
public class CoordDataInputContainer extends BaseComponent{ |
32 |
private static final long serialVersionUID = 3336324382874763427L; |
|
32 | 33 |
private int MARGIN = 12; |
33 | 34 |
private int wComp = 350, hComp = 80; |
34 | 35 |
private int hPanel = 24; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/textincreaser/TextIncreaserContainer.java | ||
---|---|---|
37 | 37 |
*/ |
38 | 38 |
|
39 | 39 |
public class TextIncreaserContainer extends BaseComponent implements ActionListener{ |
40 |
|
|
41 |
private int width = 70, height = 25;
|
|
40 |
private static final long serialVersionUID = 7570162018139822874L; |
|
41 |
private int width = 70; |
|
42 | 42 |
private JTextField tText = null; |
43 | 43 |
private JPanel pButtons = null; |
44 | 44 |
private JButton bmas = null; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/slidertext/listeners/SliderTextListener.java | ||
---|---|---|
42 | 42 |
public class SliderTextListener implements ChangeListener, ActionListener, KeyListener, FocusListener, MouseListener{ |
43 | 43 |
|
44 | 44 |
private SliderTextContainer sliderTextContainer = null; |
45 |
private String lastText = ""; |
|
46 | 45 |
private boolean disconnectEvent = false; |
47 | 46 |
public ArrayList changeListenerList = new ArrayList(); |
48 | 47 |
public ArrayList mouseListenerList = new ArrayList(); |
... | ... | |
52 | 51 |
this.sliderTextContainer = panel; |
53 | 52 |
} |
54 | 53 |
|
55 |
private void initialize(){ |
|
56 |
|
|
57 |
} |
|
58 |
|
|
59 | 54 |
public void actionPerformed(ActionEvent e) { |
60 | 55 |
|
61 | 56 |
} |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/slidertext/SliderTextContainer.java | ||
---|---|---|
41 | 41 |
* Nacho Brodin (nachobrodin@gmail.com) |
42 | 42 |
*/ |
43 | 43 |
public class SliderTextContainer extends BaseComponent{ |
44 |
|
|
44 |
private static final long serialVersionUID = 1876415954410511634L; |
|
45 | 45 |
private JPanel pText = null; |
46 | 46 |
private JSlider slider = null; |
47 | 47 |
private JTextField text = null; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/Table.java | ||
---|---|---|
39 | 39 |
* |
40 | 40 |
*/ |
41 | 41 |
public class Table extends JPanel { |
42 |
private JTable table = null;
|
|
43 |
private JScrollPane scrollPanel = null;
|
|
44 |
private DefaultTableModel tableModel = null;
|
|
45 |
private String[] columnNames = null;
|
|
46 |
private int[] columnWidths = null;
|
|
47 |
private TableListener tableListener = null;
|
|
48 |
private TableContainer tableContainer = null;
|
|
49 |
public String tableModelClass = null;
|
|
50 |
|
|
51 |
|
|
52 |
/**
|
|
53 |
*
|
|
54 |
* @param width Ancho de la tabla en pixeles
|
|
55 |
* @param height Alto de la tabla en pixeles
|
|
56 |
* @param columnNames Vector de nombres de columna
|
|
57 |
* @param columnsWidth Vector de anchos para cada columna. Ha de tener el mismo n?mero de elementos que columnNames.
|
|
58 |
* Si vale null las columnas se pondr?n equidistantes.
|
|
59 |
* @param tableListener Listener de la tabla
|
|
60 |
*/
|
|
61 |
public Table(String[] columnNames, int[] columnWidths, TableListener tableListener, String tableModelClass){
|
|
62 |
this.columnNames = columnNames;
|
|
63 |
this.columnWidths = columnWidths;
|
|
64 |
this.tableListener = tableListener;
|
|
65 |
this.tableModelClass = tableModelClass;
|
|
66 |
initialize();
|
|
67 |
}
|
|
42 |
private static final long serialVersionUID = -4375500244443538451L;
|
|
43 |
private JTable table = null;
|
|
44 |
private JScrollPane scrollPanel = null;
|
|
45 |
private DefaultTableModel tableModel = null;
|
|
46 |
private String[] columnNames = null;
|
|
47 |
private int[] columnWidths = null;
|
|
48 |
private TableListener tableListener = null;
|
|
49 |
private TableContainer tableContainer = null;
|
|
50 |
public String tableModelClass = null; |
|
51 |
|
|
52 |
/** |
|
53 |
* |
|
54 |
* @param width Ancho de la tabla en pixeles |
|
55 |
* @param height Alto de la tabla en pixeles |
|
56 |
* @param columnNames Vector de nombres de columna |
|
57 |
* @param columnsWidth Vector de anchos para cada columna. Ha de tener el mismo n?mero de elementos que columnNames. |
|
58 |
* Si vale null las columnas se pondr?n equidistantes. |
|
59 |
* @param tableListener Listener de la tabla |
|
60 |
*/ |
|
61 |
public Table(String[] columnNames, int[] columnWidths, TableListener tableListener, String tableModelClass){ |
|
62 |
this.columnNames = columnNames; |
|
63 |
this.columnWidths = columnWidths; |
|
64 |
this.tableListener = tableListener; |
|
65 |
this.tableModelClass = tableModelClass; |
|
66 |
initialize(); |
|
67 |
} |
|
68 | 68 |
|
69 | 69 |
/** |
70 | 70 |
* This method initializes this |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/TableContainer.java | ||
---|---|---|
36 | 36 |
* |
37 | 37 |
*/ |
38 | 38 |
public class TableContainer extends JPanel { |
39 |
|
|
39 |
private static final long serialVersionUID = 384372026944926838L; |
|
40 | 40 |
private static final int INTERNAL_MARGIN = 10; |
41 | 41 |
private int PHEIGHT = 120; |
42 | 42 |
|
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/TableControlerPanel.java | ||
---|---|---|
37 | 37 |
* |
38 | 38 |
*/ |
39 | 39 |
public class TableControlerPanel extends JPanel { |
40 |
|
|
40 |
private static final long serialVersionUID = -6442685244347917638L; |
|
41 | 41 |
private int HEIGHT_CONTROL = 24; |
42 | 42 |
//**********************Vars********************************** |
43 | 43 |
private JButton bPrev = null; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/exceptions/NotInitializeException.java | ||
---|---|---|
24 | 24 |
* @author Nacho Brodin (brodin_ign@gva.es) |
25 | 25 |
*/ |
26 | 26 |
public class NotInitializeException extends Exception { |
27 |
/** |
|
28 |
* |
|
29 |
*/ |
|
27 |
private static final long serialVersionUID = -6411813224550536884L; |
|
28 |
|
|
30 | 29 |
public NotInitializeException() { |
31 | 30 |
super(); |
32 |
|
|
33 |
// TODO Auto-generated constructor stub |
|
34 | 31 |
} |
35 | 32 |
|
36 | 33 |
/** |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/JValueSelector.java | ||
---|---|---|
44 | 44 |
*/ |
45 | 45 |
|
46 | 46 |
public class JValueSelector extends JComponent { |
47 |
/** |
|
47 |
private static final long serialVersionUID = -427287107697905904L; |
|
48 |
|
|
49 |
/** |
|
48 | 50 |
* Creates and returns a new dialog containing the specified |
49 | 51 |
* <code>ColorChooser</code> pane along with "OK", "Cancel", and "Reset" |
50 | 52 |
* buttons. If the "OK" or "Cancel" buttons are pressed, the dialog is |
... | ... | |
76 | 78 |
} |
77 | 79 |
|
78 | 80 |
class ValueSelector extends JDialog implements ActionListener { |
79 |
|
|
80 |
private JValueSelector valueSelector; |
|
81 |
private static final long serialVersionUID = -1510744508318912657L; |
|
81 | 82 |
private int initValue; |
82 | 83 |
private ActionListener okListener; |
83 | 84 |
private ActionListener cancelListener; |
84 | 85 |
|
85 |
private int MARGIN = 0; |
|
86 | 86 |
private int HBUTTONS = 30; |
87 | 87 |
private int HSLIDER = 50; |
88 | 88 |
private JPanel buttons = null; |
... | ... | |
105 | 105 |
this.okListener = okListener; |
106 | 106 |
this.cancelListener = cancelListener; |
107 | 107 |
|
108 |
this.valueSelector = valueSelector; |
|
109 |
|
|
110 | 108 |
try{ |
111 | 109 |
init(Integer.valueOf(initValue).intValue()); |
112 | 110 |
this.initValue = Integer.valueOf(initValue).intValue(); |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableColorButtonColumnRenderer.java | ||
---|---|---|
33 | 33 |
* @author Nacho Brodin (brodin_ign@gva.es) |
34 | 34 |
* |
35 | 35 |
*/ |
36 |
public class TableColorButtonColumnRenderer extends JLabel |
|
37 |
implements TableCellRenderer {
|
|
38 |
Border unselectedBorder = null;
|
|
39 |
Border selectedBorder = null;
|
|
40 |
boolean isBordered = true;
|
|
36 |
public class TableColorButtonColumnRenderer extends JLabel implements TableCellRenderer {
|
|
37 |
private static final long serialVersionUID = 4792441413562824229L;
|
|
38 |
Border unselectedBorder = null;
|
|
39 |
Border selectedBorder = null; |
|
40 |
boolean isBordered = true; |
|
41 | 41 |
|
42 |
public TableColorButtonColumnRenderer(boolean isBordered) {
|
|
43 |
this.isBordered = isBordered;
|
|
44 |
setOpaque(true);
|
|
45 |
}
|
|
42 |
public TableColorButtonColumnRenderer(boolean isBordered) { |
|
43 |
this.isBordered = isBordered; |
|
44 |
setOpaque(true); |
|
45 |
} |
|
46 | 46 |
|
47 |
public Component getTableCellRendererComponent(
|
|
48 |
JTable table, Object color,
|
|
49 |
boolean isSelected, boolean hasFocus,
|
|
50 |
int row, int column) {
|
|
51 |
if(!(color instanceof Color))
|
|
52 |
return this;
|
|
53 |
|
|
54 |
Color newColor = (Color)color;
|
|
55 |
setBackground(newColor);
|
|
56 |
if (isBordered) {
|
|
57 |
if (isSelected) {
|
|
58 |
if (selectedBorder == null) {
|
|
59 |
selectedBorder = BorderFactory.createMatteBorder(2,5,2,5,
|
|
60 |
table.getSelectionBackground());
|
|
61 |
}
|
|
62 |
setBorder(selectedBorder);
|
|
63 |
} else {
|
|
64 |
if (unselectedBorder == null) {
|
|
65 |
unselectedBorder = BorderFactory.createMatteBorder(2,5,2,5,
|
|
66 |
table.getBackground());
|
|
67 |
}
|
|
68 |
setBorder(unselectedBorder);
|
|
69 |
}
|
|
70 |
}
|
|
71 |
|
|
72 |
setToolTipText("RGB value: " + newColor.getRed() + ", "
|
|
73 |
+ newColor.getGreen() + ", "
|
|
74 |
+ newColor.getBlue());
|
|
75 |
return this;
|
|
76 |
}
|
|
77 |
} |
|
47 |
public Component getTableCellRendererComponent( |
|
48 |
JTable table, Object color, |
|
49 |
boolean isSelected, boolean hasFocus, |
|
50 |
int row, int column) { |
|
51 |
if(!(color instanceof Color)) |
|
52 |
return this; |
|
53 |
|
|
54 |
Color newColor = (Color)color; |
|
55 |
setBackground(newColor); |
|
56 |
if (isBordered) { |
|
57 |
if (isSelected) { |
|
58 |
if (selectedBorder == null) { |
|
59 |
selectedBorder = BorderFactory.createMatteBorder(2,5,2,5, |
|
60 |
table.getSelectionBackground()); |
|
61 |
} |
|
62 |
setBorder(selectedBorder); |
|
63 |
} else { |
|
64 |
if (unselectedBorder == null) { |
|
65 |
unselectedBorder = BorderFactory.createMatteBorder(2,5,2,5, |
|
66 |
table.getBackground()); |
|
67 |
} |
|
68 |
setBorder(unselectedBorder); |
|
69 |
} |
|
70 |
} |
|
71 |
|
|
72 |
setToolTipText("RGB value: " + newColor.getRed() + ", " |
|
73 |
+ newColor.getGreen() + ", " |
|
74 |
+ newColor.getBlue()); |
|
75 |
return this; |
|
76 |
} |
|
77 |
} |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableSelectorButtonColumnRenderer.java | ||
---|---|---|
30 | 30 |
* @author Nacho Brodin (brodin_ign@gva.es) |
31 | 31 |
* |
32 | 32 |
*/ |
33 |
public class TableSelectorButtonColumnRenderer extends JLabel |
|
34 |
implements TableCellRenderer {
|
|
33 |
public class TableSelectorButtonColumnRenderer extends JLabel implements TableCellRenderer {
|
|
34 |
private static final long serialVersionUID = 2387857417420654102L;
|
|
35 | 35 |
|
36 |
|
|
37 |
public TableSelectorButtonColumnRenderer() { |
|
36 |
public TableSelectorButtonColumnRenderer() { |
|
38 | 37 |
setOpaque(true); |
39 | 38 |
} |
40 | 39 |
|
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TreeRadioButtonModel.java | ||
---|---|---|
28 | 28 |
*/ |
29 | 29 |
public class TreeRadioButtonModel extends DefaultTableModel implements IModel{ |
30 | 30 |
final private static long serialVersionUID = -3370601314380922368L; |
31 |
private String[] columnNames = null; |
|
32 | 31 |
|
33 | 32 |
public TreeRadioButtonModel(String[] columnNames) { |
34 | 33 |
super(new Object[0][4], columnNames); |
35 |
this.columnNames = columnNames; |
|
36 | 34 |
} |
37 | 35 |
|
38 | 36 |
public Class getColumnClass(int c) { |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableButtonModel.java | ||
---|---|---|
31 | 31 |
*/ |
32 | 32 |
public class TableButtonModel extends DefaultTableModel implements IModel{ |
33 | 33 |
final private static long serialVersionUID = -3370601314380922368L; |
34 |
private String[] columnNames = null; |
|
35 | 34 |
|
36 | 35 |
public TableButtonModel(String[] columnNames) { |
37 | 36 |
super(new Object[0][4], columnNames); |
38 |
this.columnNames = columnNames; |
|
39 | 37 |
} |
40 | 38 |
|
41 | 39 |
public Class getColumnClass(int c) { |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/CheckBoxModel.java | ||
---|---|---|
28 | 28 |
*/ |
29 | 29 |
public class CheckBoxModel extends DefaultTableModel implements IModel{ |
30 | 30 |
final private static long serialVersionUID = -3370601314380922368L; |
31 |
private String[] columnNames = null; |
|
32 | 31 |
|
33 | 32 |
public CheckBoxModel(String[] columnNames) { |
34 | 33 |
super(new Object[0][2], columnNames); |
35 |
this.columnNames = columnNames; |
|
36 | 34 |
} |
37 | 35 |
|
38 | 36 |
public Class getColumnClass(int c) { |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableColorButtonColumnEditor.java | ||
---|---|---|
39 | 39 |
* |
40 | 40 |
*/ |
41 | 41 |
public class TableColorButtonColumnEditor extends AbstractCellEditor implements TableCellEditor, ActionListener { |
42 |
private static final long serialVersionUID = -6627842834708616873L; |
|
42 | 43 |
Color currentColor; |
43 | 44 |
JButton button; |
44 | 45 |
JColorChooser colorChooser; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableSelectorButtonColumnEditor.java | ||
---|---|---|
37 | 37 |
* |
38 | 38 |
*/ |
39 | 39 |
public class TableSelectorButtonColumnEditor extends AbstractCellEditor implements TableCellEditor, ActionListener { |
40 |
private static final long serialVersionUID = -2028530090765546942L; |
|
40 | 41 |
String currentText = "255"; |
41 | 42 |
JButton button; |
42 | 43 |
JValueSelector valueSelector; |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/RadioButtonModel.java | ||
---|---|---|
21 | 21 |
import javax.swing.table.DefaultTableModel; |
22 | 22 |
|
23 | 23 |
public class RadioButtonModel extends DefaultTableModel implements IModel{ |
24 |
private static final long serialVersionUID = 7113401200946271448L; |
|
24 | 25 |
|
25 |
private String[] columnNames = null; |
|
26 |
|
|
27 | 26 |
public RadioButtonModel(String[] columnNames){ |
28 | 27 |
super(new Object[0][2], columnNames); |
29 |
this.columnNames = columnNames; |
|
30 | 28 |
} |
31 | 29 |
|
32 | 30 |
|
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/labelslidertext/LabelSliderTextContainer.java | ||
---|---|---|
38 | 38 |
* |
39 | 39 |
*/ |
40 | 40 |
public class LabelSliderTextContainer extends SliderTextContainer { |
41 |
|
|
41 |
private static final long serialVersionUID = -4617272063786945078L; |
|
42 | 42 |
public JLabel lName = null; |
43 | 43 |
private JPanel pLabel = null; |
44 | 44 |
|
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/dataInput/DataInputContainer.java | ||
---|---|---|
32 | 32 |
import org.gvsig.gui.beans.BaseComponent; |
33 | 33 |
|
34 | 34 |
public class DataInputContainer extends BaseComponent implements FocusListener, KeyListener{ |
35 |
|
|
35 |
private static final long serialVersionUID = 7084105134015956663L; |
|
36 | 36 |
private int wComp = 150, hComp = 22; |
37 |
private int wLabel = 30, hLabel = 20;
|
|
37 |
private int wLabel = 30; |
|
38 | 38 |
private int wText = wComp - wLabel - 5, hText = 20; |
39 | 39 |
|
40 | 40 |
private boolean decimal = false; |
... | ... | |
300 | 300 |
* @return true si es valido y false si no lo es |
301 | 301 |
*/ |
302 | 302 |
private boolean validateNumericFormat(String field){ |
303 |
double d = 0D; |
|
304 | 303 |
try{ |
305 |
d = Double.valueOf(field).doubleValue();
|
|
304 |
Double.valueOf(field).doubleValue(); |
|
306 | 305 |
}catch(NumberFormatException exc){ |
307 | 306 |
return false; |
308 | 307 |
} |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/treelist/listeners/TreeListListener.java | ||
---|---|---|
26 | 26 |
import javax.swing.DefaultListModel; |
27 | 27 |
import javax.swing.JList; |
28 | 28 |
import javax.swing.JTree; |
29 |
import javax.swing.tree.DefaultMutableTreeNode; |
|
30 | 29 |
import javax.swing.tree.TreePath; |
31 | 30 |
|
32 | 31 |
import org.gvsig.gui.beans.treelist.event.TreeListEvent; |
... | ... | |
43 | 42 |
|
44 | 43 |
private JTree tree = null; |
45 | 44 |
private JList list = null; |
46 |
private DefaultMutableTreeNode raiz = null; |
|
47 | 45 |
private ArrayList listListeners = null; |
48 | 46 |
private TreeListEvent ev = new TreeListEvent(); |
49 | 47 |
|
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/treelist/listeners/TreeListComponentListener.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package org.gvsig.gui.beans.treelist.listeners; |
20 | 20 |
|
21 |
import java.awt.FlowLayout; |
|
22 |
import java.awt.GridBagConstraints; |
|
23 |
import java.awt.GridBagLayout; |
|
24 |
import java.awt.event.MouseEvent; |
|
25 |
import java.awt.event.MouseListener; |
|
26 |
import java.awt.event.MouseMotionListener; |
|
27 |
|
|
28 |
import javax.swing.DefaultListModel; |
|
29 |
import javax.swing.JList; |
|
30 |
import javax.swing.JPanel; |
|
31 |
import javax.swing.JScrollPane; |
|
32 |
import javax.swing.JTree; |
|
33 |
import javax.swing.ListSelectionModel; |
|
34 |
import javax.swing.event.ListSelectionEvent; |
|
35 |
import javax.swing.event.ListSelectionListener; |
|
36 |
import javax.swing.tree.DefaultMutableTreeNode; |
|
37 |
import javax.swing.tree.DefaultTreeModel; |
|
38 |
import javax.swing.tree.TreePath; |
|
39 |
|
|
40 | 21 |
import org.gvsig.gui.beans.treelist.event.TreeListEvent; |
41 |
import org.gvsig.i18n.Messages; |
|
42 | 22 |
|
43 | 23 |
/** |
44 | 24 |
* Interfaz que contiene los eventos del componente TreeList |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/treelist/TreeListContainer.java | ||
---|---|---|
48 | 48 |
*/ |
49 | 49 |
|
50 | 50 |
public class TreeListContainer extends BaseComponent { |
51 |
|
|
51 |
private static final long serialVersionUID = 6665259638830401366L; |
|
52 | 52 |
private int wComp = 190; |
53 | 53 |
private int hComp = 360; |
54 | 54 |
private int hTree = (int)Math.floor(hComp * 0.68); |
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/buttonBar/ButtonBarContainer.java | ||
---|---|---|
27 | 27 |
import org.gvsig.gui.beans.BaseComponent; |
28 | 28 |
|
29 | 29 |
public class ButtonBarContainer extends BaseComponent { |
30 |
|
|
31 |
|
|
30 |
private static final long serialVersionUID = -2556987128553063939L; |
|
32 | 31 |
private int wComp = 400, hComp = 26; |
33 | 32 |
private String pathToImages = "images/"; |
34 | 33 |
private ArrayList buttons = new ArrayList(); |
Also available in: Unified diff