22 |
22 |
import java.awt.Dimension;
|
23 |
23 |
|
24 |
24 |
import javax.swing.JPanel;
|
|
25 |
import javax.swing.JScrollPane;
|
25 |
26 |
import javax.swing.JTabbedPane;
|
26 |
27 |
|
27 |
28 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanel;
|
28 |
29 |
import org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel;
|
|
30 |
import org.gvsig.gui.beans.graphic.listview.ListViewComponent;
|
|
31 |
import org.gvsig.gui.beans.graphic.listview.ListViewItem;
|
|
32 |
import org.gvsig.gui.beans.graphic.listview.RampPainter;
|
29 |
33 |
import org.gvsig.gui.beans.imagenavigator.ImageNavigator;
|
30 |
34 |
import org.gvsig.rastertools.colortable.ColorTableListener;
|
31 |
35 |
import org.gvsig.rastertools.colortable.panels.ColorTInterpolated;
|
... | ... | |
49 |
53 |
private JPanel jPreview = null;
|
50 |
54 |
private ColorTTable colorTTable = null;
|
51 |
55 |
private ColorTInterpolated colorTInterpolated = null;
|
|
56 |
private ListViewComponent listViewComponent = null;
|
52 |
57 |
|
53 |
58 |
/**
|
54 |
59 |
* Construir un nuevo ColorTablePanel
|
... | ... | |
139 |
144 |
jsubpanel3.setLayout(new BorderLayout());
|
140 |
145 |
jsubpanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8));
|
141 |
146 |
jsubpanel4.setLayout(new BorderLayout());
|
142 |
|
JPanel jPLibrary = new JPanel();
|
143 |
|
jsubpanel4.add(jPLibrary, BorderLayout.CENTER);
|
|
147 |
|
|
148 |
JScrollPane jScrollPane = new JScrollPane();
|
|
149 |
jScrollPane.setViewportView(getListViewComponent());
|
|
150 |
|
|
151 |
for (int i=0; i<7; i++) {
|
|
152 |
ListViewItem item = new ListViewItem(new RampPainter(), "Prueba " + i);
|
|
153 |
getListViewComponent().addItem(item);
|
|
154 |
}
|
|
155 |
|
|
156 |
jsubpanel4.add(jScrollPane, BorderLayout.CENTER);
|
144 |
157 |
jsubpanel3.add(jsubpanel4, BorderLayout.CENTER);
|
145 |
158 |
|
|
159 |
jsubpanel3.setPreferredSize(new Dimension(192, 192));
|
|
160 |
jsubpanel3.setMinimumSize(new Dimension(192, 192));
|
|
161 |
jsubpanel3.setMaximumSize(new Dimension(192, 192));
|
|
162 |
|
146 |
163 |
jPreview.add(jsubpanel3, BorderLayout.CENTER);
|
147 |
164 |
}
|
148 |
165 |
return jPreview;
|
... | ... | |
173 |
190 |
public FLayer getLayer() {
|
174 |
191 |
return null;
|
175 |
192 |
}
|
|
193 |
|
|
194 |
public ListViewComponent getListViewComponent() {
|
|
195 |
if (listViewComponent == null) {
|
|
196 |
listViewComponent = new ListViewComponent();
|
|
197 |
}
|
|
198 |
return listViewComponent;
|
|
199 |
}
|
176 |
200 |
}
|