Revision 1103

View differences:

org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.educa.portableview.swing.PortableViewSwingLibrary
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/PortableViewSwingComponent.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing;
23

  
24
import javax.swing.JComponent;
25

  
26
/**
27
 * Interface for all Swing components from the library
28
 *
29
 * @author gvSIG Team
30
 * @version $Id$
31
 *
32
 */
33
public interface PortableViewSwingComponent {
34

  
35
    /**
36
     * Returns Swing component of this class
37
     *
38
     * @return
39
     */
40
    JComponent getSwingComponent();
41
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/package.html
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>org.gvsig.educa.portableview package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>PortableView swing library API.</p>
11

  
12
	<p>
13
	It allows to get swing panels to show PortableView, and to include them in windows.
14
	</p>
15

  
16
</body>
17
</html>
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/PortableViewSwingLocator.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing;
23

  
24
import org.gvsig.tools.locator.BaseLocator;
25

  
26
/**
27
 * This locator is the entry point for the PortableView swing library,
28
 * providing access to all PortableView swing services through the
29
 * {@link PortableViewSwingManager} .
30
 *
31
 * @author gvSIG team
32
 * @version $Id$
33
 */
34
public class PortableViewSwingLocator extends BaseLocator {
35

  
36
    /**
37
     * PortableView swing manager name.
38
     */
39
    public static final String SWING_MANAGER_NAME =
40
        "PortableView.swing.manager";
41

  
42
    /**
43
     * PortableView swing manager description.
44
     */
45
    public static final String SWING_MANAGER_DESCRIPTION =
46
        "PortableView UIManager";
47

  
48
    private static final String LOCATOR_NAME = "PortableView.swing.locator";
49

  
50
    /**
51
     * Unique instance.
52
     */
53
    private static final PortableViewSwingLocator INSTANCE =
54
        new PortableViewSwingLocator();
55

  
56
    /**
57
     * Return the singleton instance.
58
     *
59
     * @return the singleton instance
60
     */
61
    public static PortableViewSwingLocator getInstance() {
62
        return INSTANCE;
63
    }
64

  
65
    /**
66
     * Return the Locator's name
67
     *
68
     * @return a String with the Locator's name
69
     */
70
    public final String getLocatorName() {
71
        return LOCATOR_NAME;
72
    }
73

  
74
    /**
75
     * Registers the Class implementing the PersistenceManager interface.
76
     *
77
     * @param clazz
78
     *            implementing the PersistenceManager interface
79
     */
80
    public static void registerSwingManager(
81
        Class<? extends PortableViewSwingManager> clazz) {
82
        getInstance().register(SWING_MANAGER_NAME, SWING_MANAGER_DESCRIPTION,
83
            clazz);
84
    }
85

  
86
    /**
87
     * Gets the instance of the {@link ScriptingUIManager} registered.
88
     *
89
     * @return {@link ScriptingUIManager}
90
     */
91
    public static PortableViewSwingManager getSwingManager() {
92
    	return (PortableViewSwingManager) getInstance().get(SWING_MANAGER_NAME);
93
    }
94

  
95
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/PortableViewSwingLibrary.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing;
23

  
24
import org.gvsig.educa.portableview.PortableViewLibrary;
25
import org.gvsig.tools.library.AbstractLibrary;
26
import org.gvsig.tools.library.LibraryException;
27
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
28

  
29
/**
30
 * Library for Swing API initialization and configuration.
31
 *
32
 * @author gvSIG team
33
 * @version $Id$
34
 */
35
public class PortableViewSwingLibrary extends AbstractLibrary {
36

  
37
//    public void doRegistration(){
38
//    	this.registerAsAPI(PortableViewSwingLibrary.class);
39
//    	this.require(PortableViewLibrary.class);
40
//    }
41

  
42
	@Override
43
    protected void doInitialize() throws LibraryException {
44
        // Do nothing
45
    }
46

  
47
    @Override
48
    protected void doPostInitialize() throws LibraryException {
49
        // Validate there is any implementation registered.
50
        PortableViewSwingManager manager =
51
            PortableViewSwingLocator.getSwingManager();
52
        if (manager == null) {
53
            throw new ReferenceNotRegisteredException(
54
                PortableViewSwingLocator.SWING_MANAGER_NAME,
55
                PortableViewSwingLocator.getInstance());
56
        }
57
    }
58

  
59
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/viewer/PortableViewInforamtionViewer.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.viewer;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.educa.portableview.map.PortableView;
26
import org.gvsig.educa.portableview.map.PortableViewInformation;
27

  
28
/**
29
 * Interface for the component to show {@link PortableViewInformation}
30
 *
31
 * @author gvSIG Team
32
 * @version $Id$
33
 *
34
 */
35
public interface PortableViewInforamtionViewer extends PortableViewSwingComponent {
36

  
37
    /**
38
     * Loads into control portable view information
39
     *
40
     * @param map
41
     */
42
    public void loadMapInformation(PortableView map);
43

  
44
    /**
45
     * Gets current map loaded
46
     *
47
     * @return
48
     */
49
    public PortableView getCurrentMapLoaded();
50

  
51
    /**
52
     * Clean loaded data
53
     */
54
    public void clean();
55
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/viewer/MapControlToolRegistrant.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.viewer;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingManager;
25
import org.gvsig.fmap.mapcontrol.MapControl;
26

  
27
/**
28
 * Interface which allow register tools in MapControl of a
29
 * {@link PortableViewViewer}
30
 *
31
 * @author gvSIG Team
32
 * @version $Id$
33
 * @see PortableViewSwingManager#addMapControlRegister(MapControlToolRegistrant)
34
 */
35
public interface MapControlToolRegistrant {
36

  
37
    void registerTools(MapControl mapControl);
38

  
39
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/viewer/PortableViewViewer.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.viewer;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.educa.portableview.map.PortableView;
26
import org.gvsig.fmap.mapcontrol.MapControl;
27
import org.gvsig.tools.dispose.Disposable;
28

  
29
/**
30
 * Interface of swing component that can show the cartography of a
31
 * {@link PortableView}
32
 *
33
 * @author gvSIG Team
34
 * @version $Id$
35
 *
36
 */
37
public interface PortableViewViewer extends PortableViewSwingComponent,
38
    Disposable {
39

  
40
    /**
41
     * Current Portable View
42
     *
43
     * @return
44
     */
45
    PortableView getPortableView();
46

  
47
    /**
48
     * Adjust zoom to show all map content
49
     */
50
    void zoomAll();
51

  
52
    /**
53
     * Change the current map tool
54
     *
55
     * @param toolId
56
     */
57
    void setTool(String toolId);
58

  
59
    /**
60
     * Gets current map tool's id
61
     *
62
     * @return
63
     */
64
    String getCurrentToolId();
65

  
66
    /**
67
     * Gets Table-Of-Contents component
68
     *
69
     * @return
70
     */
71
    PortableViewToc getTOC();
72

  
73
    /**
74
     * Gets {@link MapControl} component
75
     *
76
     * @return
77
     */
78
    MapControl getMapControl();
79

  
80
    boolean isTocVisible();
81

  
82
    void setTocVisible(boolean visible);
83

  
84
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/viewer/PortableViewTocImageProvider.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.viewer;
23

  
24
import javax.swing.ImageIcon;
25

  
26
import org.gvsig.fmap.mapcontext.layers.FLayer;
27
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
28

  
29
/**
30
 * Interface for object which provides images for toc tree elements
31
 *
32
 * @author gvSIG Team
33
 * @version $Id$
34
 *
35
 */
36
public interface PortableViewTocImageProvider {
37

  
38
    /**
39
     * Gets image icon which represents the layer (usually depending on layer
40
     * type)
41
     *
42
     * @param layer
43
     * @return image or null if there is not especial image for this layer
44
     */
45
    ImageIcon getImageIconForLayer(FLayer layer);
46

  
47
    /**
48
     * Gets a image preview of how this symbol looks
49
     *
50
     * @param symbol
51
     * @param sourceLayer
52
     * @return preview image or null to use a standard one
53
     */
54
    ImageIcon getSymbolPreview(ISymbol symbol, FLayer sourceLayer);
55

  
56
    /**
57
     * Gets a unavailable icon for unavailable layers
58
     *
59
     * @return unavailable image
60
     */
61
	ImageIcon getUnavailableIconForLayer();
62

  
63
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/viewer/PortableViewToc.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.viewer;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.fmap.swing.toc.TOC;
26

  
27
/**
28
 * Interface for Component which shows Layers list of PortableViewViewer
29
 *
30
 * @author gvSIG Team
31
 * @version $Id$
32
 *
33
 */
34
public interface PortableViewToc extends TOC, PortableViewSwingComponent {
35

  
36
    /**
37
     * Returns current viewer attached to this component
38
     *
39
     * @return
40
     */
41
    PortableViewViewer getViewer();
42

  
43
    /**
44
     * Attach the viewer to manage
45
     *
46
     * @param viewer
47
     * @throws IllegalStateException
48
     *             if viewer is already attached
49
     */
50
    void attachTo(PortableViewViewer viewer);
51

  
52
    /**
53
     * Sets the image provider for TOC tree elements
54
     *
55
     * @param imageProvider
56
     */
57
    void setImageProvider(PortableViewTocImageProvider imageProvider);
58

  
59
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/InformationJPanelComponent.java
1
package org.gvsig.educa.portableview.swing;
2

  
3
import java.awt.Component;
4

  
5
public interface InformationJPanelComponent {
6

  
7

  
8

  
9
	Component getJPanel();
10

  
11
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/PortableViewSwingManager.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing;
23

  
24
import java.io.IOException;
25
import java.util.List;
26

  
27
import org.gvsig.educa.portableview.swing.editor.PortableViewAddLayerComponent;
28
import org.gvsig.educa.portableview.swing.editor.PortableViewCompilationEditor;
29
import org.gvsig.educa.portableview.swing.editor.PortableViewLayerPropertiesEditor;
30
import org.gvsig.educa.portableview.swing.editor.PortableViewLayersEditor;
31
import org.gvsig.educa.portableview.swing.viewer.MapControlToolRegistrant;
32
import org.gvsig.educa.portableview.swing.viewer.PortableViewInforamtionViewer;
33
import org.gvsig.educa.portableview.swing.viewer.PortableViewToc;
34
import org.gvsig.educa.portableview.swing.viewer.PortableViewTocImageProvider;
35
import org.gvsig.educa.portableview.swing.viewer.PortableViewViewer;
36
import org.gvsig.educa.portableview.PortableViewManager;
37
import org.gvsig.educa.portableview.PortableViewRuntimeException;
38
import org.gvsig.educa.portableview.compilation.PortableViewCompilation;
39
import org.gvsig.educa.portableview.map.CantLoadContextException;
40
import org.gvsig.educa.portableview.map.InvalidPortableViewFormatException;
41
import org.gvsig.educa.portableview.map.PortableView;
42
import org.gvsig.tools.dynobject.DynObject;
43

  
44
/**
45
 * <p>
46
 * Manager for Swing PortableView library
47
 * </p>
48
 * <p>
49
 * Expose methods to access UI components to view and define PortableViews
50
 * </p>
51
 *
52
 * @see PortableViewWindowManager
53
 * @see PortableViewViewer
54
 * @see PortableViewCompilationEditor
55
 *
56
 * @author gvSIG team
57
 * @version $Id$
58
 * @param <DefaultInformationJPanelComponent>
59
 */
60
public interface PortableViewSwingManager {
61

  
62
	/**
63
	 * Get a {@link PortableViewViewer} to show the <code>portableView</code>
64
	 *
65
	 * @param portableView
66
	 * @return
67
	 * @throws IOException
68
	 * @throws CantLoadContextException
69
	 * @throws InvalidPortableViewFormatException
70
	 */
71
	public PortableViewViewer getViewer(PortableView portableView)
72
			throws InvalidPortableViewFormatException,
73
			CantLoadContextException, IOException;
74

  
75
	/**
76
	 * Get a {@link PortableViewCompilationEditor} to modify the
77
	 * <code>portableViewCompilation</code>
78
	 *
79
	 * @param portableViewCompilation
80
	 * @param editLayers
81
	 * @return
82
	 */
83
	public PortableViewCompilationEditor getCopilationEditor(
84
			PortableViewCompilation portableViewCompilation, boolean editLayers);
85

  
86
	/**
87
	 * Returns the {@link PortableViewManager}.
88
	 *
89
	 * @return {@link PortableViewManager}
90
	 * @see {@link PortableViewManager}
91
	 */
92
	public PortableViewManager getManager();
93

  
94
	/**
95
	 * Returns the translation of a string.
96
	 *
97
	 * @param key
98
	 *            String to translate
99
	 * @return a String with the translation of the string passed by parameter
100
	 */
101
	public String getTranslation(String key);
102

  
103
	/**
104
	 * Registers a new instance of a WindowManager which provides services to
105
	 * the management of the application windows.
106
	 *
107
	 * @param manager
108
	 *            {@link PortableViewWindowManager} to register in the
109
	 *            ScriptingUIManager.
110
	 * @see PortableViewWindowManager
111
	 */
112
	public void registerWindowManager(PortableViewWindowManager manager);
113

  
114
	/**
115
	 * Returns the {@link PortableViewWindowManager}.
116
	 *
117
	 * @return {@link PortableViewWindowManager}
118
	 * @see {@link PortableViewWindowManager}
119
	 */
120
	public PortableViewWindowManager getWindowManager();
121

  
122
	/**
123
	 * Returns a new instance of {@link PortableViewToc}
124
	 *
125
	 * @return
126
	 */
127
	public PortableViewToc newToc();
128

  
129
	/**
130
	 * Register the class for {@link PortableViewToc} components
131
	 *
132
	 * @param tocComponentClass
133
	 */
134
	public void registerTocComponent(
135
			Class<? extends PortableViewToc> tocComponentClass);
136

  
137
	/**
138
	 * Returns a new instance of {@link PortableViewAddLayerComponent}
139
	 *
140
	 * @return
141
	 * @throws PortableViewRuntimeException
142
	 *             on a instance creation problem
143
	 */
144
	public PortableViewAddLayerComponent newAddLayerComponent();
145

  
146
	/**
147
	 * Register the class for {@link PortableViewAddLayerComponent} components
148
	 *
149
	 * @param addLayerComponent
150
	 */
151
	public void registerAddLayerComponent(
152
			Class<? extends PortableViewAddLayerComponent> addLayerComponent);
153

  
154
	/**
155
	 * Returns a new instance of {@link PortableViewLayerPropertiesEditor}
156
	 *
157
	 * @return
158
	 * @throws PortableViewRuntimeException
159
	 *             on a instance creation problem
160
	 */
161
	public PortableViewLayerPropertiesEditor newLayerPropertiesEditor();
162

  
163
	/**
164
	 * Register the class for {@link PortableViewLayerPropertiesEditor}
165
	 * components
166
	 *
167
	 * @param addLayerComponent
168
	 */
169
	public void registerLayerPropertiesEditor(
170
			Class<? extends PortableViewLayerPropertiesEditor> layerPropertiesEditorClass);
171

  
172
	/**
173
	 * Returns a new instance of {@link PortableViewLayersEditor}
174
	 *
175
	 * @return
176
	 * @throws PortableViewRuntimeException
177
	 *             on a instance creation problem
178
	 */
179
	public PortableViewLayersEditor newLayersEditor();
180

  
181
	/**
182
	 * Register the class for {@link PortableViewLayersEditor} components
183
	 *
184
	 * @param addLayerComponent
185
	 *
186
	 */
187
	public void registerLayersEditor(
188
			Class<? extends PortableViewLayersEditor> layersEditorClass);
189

  
190
	/**
191
	 * Returns a new instance of {@link PortableViewInforamtionViewer}
192
	 *
193
	 * @return
194
	 * @throws PortableViewRuntimeException
195
	 *             on a instance creation problem
196
	 */
197
	public PortableViewInforamtionViewer newInformationViewer();
198

  
199
	/**
200
	 * Register the class for {@link PortableViewInforamtionViewer} components
201
	 *
202
	 * @param addLayerComponent
203
	 *
204
	 */
205
	public void registerInformationViewer(
206
			Class<? extends PortableViewInforamtionViewer> informationViewerClass);
207

  
208
	/**
209
	 * Sets the default image icon provider to represents layers and preview
210
	 * symbology in Portable Views TOC
211
	 *
212
	 * @param imageProvider
213
	 */
214
	public void setDefaultTocImageProvider(
215
			PortableViewTocImageProvider imageProvider);
216

  
217
	/**
218
	 * Gets the default image icon provider to represents layers and preview
219
	 * symbology in Portable Views TOC
220
	 *
221
	 * @param imageProvider
222
	 */
223
	public PortableViewTocImageProvider getDefaultTocImageProvider();
224

  
225
	/**
226
	 * Register an instance of a {@link MapControlToolRegistrant} which register
227
	 * tools in all new {@link PortableViewViewer} instances
228
	 *
229
	 * @param registrant
230
	 */
231
	public void addMapControlRegistrant(MapControlToolRegistrant registrant);
232

  
233
	/**
234
	 * Returns a read-only list of all current {@link MapControlToolRegistrant}
235
	 *
236
	 * @return
237
	 */
238
	public List<MapControlToolRegistrant> getMapControlRegistrantList();
239

  
240
	/**
241
	 *
242
	 * @param mapInfo
243
	 * @param b
244
	 * @return
245
	 */
246
	public InformationJPanelComponent createInformationJpanelComponent(DynObject mapInfo);
247

  
248
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/PortableViewWindowManager.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing;
23

  
24
import java.awt.Component;
25

  
26
import org.gvsig.educa.portableview.swing.editor.PortableViewCompilationEditor;
27
import org.gvsig.educa.portableview.swing.viewer.PortableViewViewer;
28
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
29

  
30
/**
31
 * Responsible of the window management to show the panels of the
32
 * PortableView swing library.
33
 *
34
 * @author gvSIG Team
35
 * @version $Id$
36
 */
37
public interface PortableViewWindowManager extends WindowManager {
38

  
39
    static enum MESSAGE_DIALOG_TYPE {
40
        NONE, ERROR, WARNING, INFO, QUESTION
41
    };
42

  
43
    static enum CONFIRM_DIALOG_TYPE {
44
        OK_CANCEL, YES_NO, YES_NO_CANCEL
45
    }
46

  
47
    static enum CONFIRM_DIALOG_OPTION {
48
        OK_YES, CANCEL, NO, CLOSED_PANEL
49
    }
50

  
51
    /**
52
     * Inserts a {@link PortableViewSwingComponent} in a window with a
53
     * characteristic properties.
54
     *
55
     * @param swingComponent
56
     *            JPanel with the content of the window
57
     * @param title
58
     *            String with the title of the window
59
     * @param mode
60
     *            int that defines the type of window
61
     */
62
    public void showInWindow(PortableViewSwingComponent swingComponent,
63
        String titile, MODE mode);
64

  
65
    /**
66
     * Inserts a {@link PortableViewViewer} in a window with a characteristic
67
     * properties.
68
     *
69
     * @param mapViewer
70
     * @param mode
71
     */
72
    public void showViewer(PortableViewViewer mapViewer, MODE mode);
73

  
74
    /**
75
     * Inserts a {@link PortableViewCompilationEditor} in a window with a
76
     * characteristic properties.
77
     *
78
     * @param mapCompilationEditor
79
     * @param mode
80
     */
81
    public void showCompilationEditor(
82
        PortableViewCompilationEditor mapCompilationEditor, MODE mode);
83

  
84
    /**
85
     * <p>
86
     * Shows a information dialog.
87
     * </p>
88
     *
89
     * @param component
90
     *            parent component (if it's null will use main window)
91
     * @param title
92
     *            for dialog
93
     * @param text
94
     *            to show
95
     * @param type
96
     */
97
    public void showMessageDialog(Component component, String title,
98
        String text, MESSAGE_DIALOG_TYPE type);
99

  
100
    /**
101
     * <p>
102
     * Shows a information dialog.
103
     * </p>
104
     *
105
     * @param title
106
     *            for dialog
107
     * @param text
108
     *            to show
109
     * @param type
110
     */
111
    public void showMessageDialog(String title, String text,
112
        MESSAGE_DIALOG_TYPE type);
113

  
114
    /**
115
     * <p>
116
     * Shows a information dialog.
117
     * </p>
118
     *
119
     * @param component
120
     *            parent component
121
     * @param title
122
     *            for dialog
123
     * @param text
124
     *            to show
125
     * @param type
126
     */
127
    public void showMessageDialog(PortableViewSwingComponent component,
128
        String title, String text, MESSAGE_DIALOG_TYPE type);
129

  
130
    /**
131
     * Show a confirm dialog
132
     *
133
     * @param parent
134
     * @param message
135
     * @param title
136
     * @param type
137
     * @param messageType
138
     * @return
139
     */
140
    public CONFIRM_DIALOG_OPTION showConfirmDialog(Component parent,
141
        String message, String title, CONFIRM_DIALOG_TYPE type,
142
        MESSAGE_DIALOG_TYPE messageType);
143

  
144
    /**
145
     * Show a confirm dialog (parent main panel)
146
     *
147
     * @param translation
148
     * @param title
149
     * @param type
150
     * @param messageType
151
     * @return
152
     */
153
    public CONFIRM_DIALOG_OPTION showConfirmDialog(String translation,
154
        String title, CONFIRM_DIALOG_TYPE type, MESSAGE_DIALOG_TYPE messageType);
155

  
156
    /**
157
     * Show a input dialog (parent main panel)
158
     *
159
     * @param translation
160
     * @param title
161
     * @param defautValue
162
     * @param messageType
163
     * @return
164
     */
165
    public String showInputStringDialog(String translation, String title,
166
        String defautValue, MESSAGE_DIALOG_TYPE messageType);
167

  
168
    /**
169
     * Show a input dialog
170
     *
171
     * @param parent
172
     * @param translation
173
     * @param title
174
     * @param defautValue
175
     * @param messageType
176
     * @return
177
     */
178
    public String showInputStringDialog(Component parent, String translation,
179
        String title, String defautValue, MESSAGE_DIALOG_TYPE messageType);
180

  
181
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/editor/PortableViewCompilationEditor.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.editor;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.educa.portableview.compilation.PortableViewCompilation;
26

  
27
/**
28
 * Interface of swing component which allow modify compilation
29
 *
30
 * @author gvSIG Team
31
 * @version $Id$
32
 *
33
 */
34
public interface PortableViewCompilationEditor extends PortableViewSwingComponent {
35

  
36
    /**
37
     * Gets current editing compilation
38
     *
39
     * @return
40
     */
41
    PortableViewCompilation getCompilation();
42

  
43
    /**
44
     * Informs if all compilation data is valid
45
     *
46
     * @return
47
     * @see PortableViewCompilation#isValid(java.util.List)
48
     */
49
    boolean isCompilationValid();
50

  
51
    /**
52
     * Move to first wizard step
53
     *
54
     * @return
55
     */
56
    boolean goToFirstStep();
57

  
58
    /**
59
     * Move to next wizard step
60
     *
61
     * @return true if success or false if there is a problem
62
     */
63
    boolean goNextStep();
64

  
65
    /**
66
     * Move to previous wizard step
67
     *
68
     * @return true if success of false if there is a problem
69
     */
70
    boolean goPreviousStep();
71

  
72
    /**
73
     * <p>
74
     * Move to last wizard step
75
     * </p>
76
     * <p>
77
     * Walk through all next steps
78
     * </p>
79
     *
80
     * @return true if success
81
     */
82
    boolean goToLastStep();
83

  
84
    /**
85
     * Informs if current step is the last
86
     *
87
     * @return
88
     */
89
    boolean isLastStep();
90

  
91
    /**
92
     * Informs if current step is the first
93
     *
94
     * @return
95
     */
96
    boolean isFirstStep();
97

  
98
    /**
99
     * Sets the listener which will be informed of wizard result
100
     *
101
     * @param listener
102
     */
103
    void setListener(PortableViewCompilationEditorListener listener);
104

  
105
    /**
106
     * Sets if id field could be changed or not (default is true)
107
     *
108
     * @param allow
109
     */
110
    void allowChangeId(boolean allow);
111

  
112
    /**
113
     * Informs if id field can be changed or not
114
     *
115
     * @return
116
     */
117
    boolean isAllowedChangeId();
118

  
119
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/editor/PortableViewLayersEditor.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.editor;
23

  
24
import java.util.List;
25

  
26
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
27
import org.gvsig.educa.portableview.compilation.PortableViewCompilation;
28
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
29
import org.gvsig.fmap.mapcontext.layers.CancelationException;
30
import org.gvsig.fmap.mapcontext.layers.FLayer;
31

  
32
/**
33
 * <p>
34
 * Component which shows all layers of a {@link PortableViewCompilation} and
35
 * allows user to change it.
36
 * </p>
37
 *
38
 * @author gvSIG Team
39
 * @version $Id$
40
 *
41
 */
42
public interface PortableViewLayersEditor extends PortableViewSwingComponent {
43

  
44
    /**
45
     * Attach to a compilation editor
46
     *
47
     * @param compilation
48
     */
49
    void setCompilationEditor(PortableViewCompilationEditor compilationEditor);
50

  
51
    /**
52
     * Gets current compilation editor attached
53
     *
54
     * @return
55
     */
56
    PortableViewCompilationEditor getCompilationEditor();
57

  
58
    /**
59
     * Gets selected layers
60
     *
61
     * @return
62
     */
63
    List<FLayer> getSelectedLayers();
64

  
65
    /**
66
     * Remove selected layers
67
     */
68
    void removeSelectedLayers();
69

  
70
    /**
71
     * Adds all layers to the first selected layer group
72
     *
73
     * @param layers
74
     * @throws CancelationException
75
     * @throws LoadLayerException
76
     */
77
    void addLayersToGroup(List<FLayer> layers) throws LoadLayerException,
78
        CancelationException;
79

  
80
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/editor/PortableViewAddLayerComponent.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.editor;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.educa.portableview.compilation.PortableViewCompilation;
26
import org.gvsig.fmap.mapcontext.layers.FLayers;
27
import org.gvsig.fmap.mapcontext.layers.operations.LayerCollection;
28

  
29
/**
30
 * <p>
31
 * Component which allows to user to select a layer to add into a
32
 * {@link PortableViewCompilation}
33
 * </p>
34
 *
35
 * @author gvSIG Team
36
 * @version $Id$
37
 *
38
 */
39
public interface PortableViewAddLayerComponent extends PortableViewSwingComponent {
40

  
41
    /**
42
     * Set {@link FLayers} instance where this component must add new layer to
43
     *
44
     * @param layersWhereAddLayers
45
     */
46
    void addToLayers(LayerCollection whereAddLayers);
47

  
48
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/editor/PortableViewCompilationEditorListener.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.editor;
23

  
24
/**
25
 * Interface for listener of a {@link PortableViewCompilationEditor} which will
26
 * be notified of wizard finalization
27
 *
28
 * @author gvSIG Team
29
 * @version $Id$
30
 * @see PortableViewCompilationEditor#setListener(PortableViewCompilationEditorListener)
31
 */
32
public interface PortableViewCompilationEditorListener {
33

  
34
    /**
35
     * Wizard finished correctly
36
     *
37
     * @param editor
38
     */
39
    public void finished(PortableViewCompilationEditor editor);
40

  
41
    /**
42
     * Wizard has been canceled by user
43
     *
44
     * @param editor
45
     */
46
    public void canceled(PortableViewCompilationEditor editor);
47

  
48
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/educa/portableview/swing/editor/PortableViewLayerPropertiesEditor.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.educa.portableview.swing.editor;
23

  
24
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent;
25
import org.gvsig.fmap.mapcontext.layers.FLayer;
26

  
27
/**
28
 * <p>
29
 * Component which allow to user to modify properties of a {@link FLayer}
30
 * </p>
31
 * 
32
 * @author gvSIG Team
33
 * @version $Id$
34
 * 
35
 */
36
public interface PortableViewLayerPropertiesEditor extends
37
    PortableViewSwingComponent {
38

  
39
    /**
40
     * <p>
41
     * Set {@link FLayer} to editing
42
     * </p>
43
     * 
44
     * @param layer
45
     */
46
    void setLayer(FLayer layer);
47

  
48
    /**
49
     * <p>
50
     * Update layer data with current selected
51
     * </p>
52
     * 
53
     * @return
54
     */
55
    void saveLayerData();
56

  
57
    /**
58
     * Reload current layer data, discarding any changes made in UI
59
     */
60
    void discartAllChanges();
61

  
62
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/fmap/swing/toc/package.html
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>org.gvsig.fmap.swing.toc package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>
11
		<b><i>TODO</i>: Remove this package and its contents when gvSIG
12
			fmap control project contains new API for TOC widget </b>
13
	</p>
14

  
15
	<p>
16
		This is a port of gvSIG 1.x new TOC API. Only <i>Interfaces</i> and <i>Listeners</i>
17
		are ported.
18
	</p>
19
	<p>
20
		This is used to prepares the PortableViewTOC as will be used in <i>(it
21
			supposed to be)</i> a short future (gvSIG 2.1 ??)
22
	</p>
23
</body>
24
</html>
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/fmap/swing/toc/event/LegendActionEventListener.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330,
19
 * Boston, MA  02111-1307, USA.
20
 *
21
 */
22
package org.gvsig.fmap.swing.toc.event;
23

  
24
import java.util.EventListener;
25

  
26
/**
27
 * Implemented by those who will be notified of 
28
 * {@link LegendActionEvent}
29
 * 
30
 * As good practice,extends tag-like {@link EventListener}
31
 * 
32
 * @author Juan Lucas Dominguez jldominguez prodevelop es
33
 * @version $Id$
34
 *
35
 */
36
public interface LegendActionEventListener extends EventListener {
37

  
38
    /**
39
     * Notification method
40
     * @param le describes event
41
     */
42
    public void legendAction(LegendActionEvent le);
43

  
44
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.162/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.api/src/main/java/org/gvsig/fmap/swing/toc/event/ActiveLayerChangeEventListener.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government.
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff