Package org.geotools.swing.testutils

Examples of org.geotools.swing.testutils.MockMapPane


    @Before
    public void setup() {
        GuiActionRunner.execute(new GuiTask() {
            @Override
            protected void executeInEDT() throws Throwable {
                mapPane = new MockMapPane();
            }
        });
    }
View Full Code Here


            protected JFrame executeInEDT() throws Throwable {
                JFrame frame = new JFrame();
                frame.setLayout(new BorderLayout());
                mapContent = new MapContent();
                mapContent.getViewport().setCoordinateReferenceSystem(DefaultGeographicCRS.WGS84);
                mapPane = new MockMapPane();
                mapPane.setMapContent(mapContent);
                item = new JCRSStatusBarItem(mapPane);
                frame.add(item, BorderLayout.CENTER);
                frame.pack();
                return frame;
View Full Code Here

    @Before
    public void setup() throws Exception {
        GuiActionRunner.execute(new GuiTask() {
            @Override
            protected void executeInEDT() throws Throwable {
                pane = new MockMapPane();
                pane.setMapContent(new MapContent());
                pane.setScreenArea(SCREEN);
                pane.setDisplayArea(WORLD);
            }
        });
View Full Code Here

TOP

Related Classes of org.geotools.swing.testutils.MockMapPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.