Revision 1693 org.gvsig.raster.georeferencing/trunk/org.gvsig.raster.georeferencing/org.gvsig.raster.georeferencing.framework/org.gvsig.raster.georeferencing.framework.andami/src/test/java/org/gvsig/raster/georeferencing/framework/andami/TestWithoutReferencePanel.java
TestWithoutReferencePanel.java | ||
---|---|---|
27 | 27 |
import javax.swing.event.TableModelEvent; |
28 | 28 |
|
29 | 29 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
30 |
import org.gvsig.raster.georeferencing.framework.LayoutEnvironment; |
|
31 | 30 |
|
32 | 31 |
public class TestWithoutReferencePanel { |
33 | 32 |
private int w = 1024; |
... | ... | |
39 | 38 |
public TestWithoutReferencePanel() { |
40 | 39 |
desc = new GeoreferencingAndamiFrameworkManagerImpl(); |
41 | 40 |
|
42 |
LayoutEnvironment layoutEnv = new LayoutEnvironmentImpl(); |
|
41 |
LayoutEnvironmentImpl layoutEnv = new LayoutEnvironmentImpl();
|
|
43 | 42 |
JPanel t = new JPanel(); |
44 | 43 |
t.setBorder(BorderFactory.createLineBorder(Color.black)); |
45 | 44 |
t.setBackground(Color.green); |
... | ... | |
55 | 54 |
z.setBackground(Color.blue); |
56 | 55 |
layoutEnv.setViewZoomRasterToGeoref(z); |
57 | 56 |
|
57 |
JPanel cb = new JPanel(); |
|
58 |
cb.setBorder(BorderFactory.createLineBorder(Color.black)); |
|
59 |
cb.setBackground(Color.magenta); |
|
60 |
layoutEnv.setControlBar(cb); |
|
61 |
|
|
58 | 62 |
frame.getContentPane().add(desc.createLayoutWithoutReferenceMap(layoutEnv)); |
59 | 63 |
frame.setSize(w, h); |
60 | 64 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
Also available in: Unified diff