Revision 42468
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/AbstractParentPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
/* CVS MESSAGES: |
|
25 |
* |
|
26 |
* $Id: AbstractParentPanel.java 29598 2009-06-29 16:09:14Z jpiera $ |
|
27 |
* $Log$ |
|
28 |
* Revision 1.3 2007-05-10 09:46:45 jaume |
|
29 |
* Refactored legend interface names |
|
30 |
* |
|
31 |
* Revision 1.2 2007/03/09 11:25:00 jaume |
|
32 |
* Advanced symbology (start committing) |
|
33 |
* |
|
34 |
* Revision 1.1.2.3 2007/02/21 07:35:14 jaume |
|
35 |
* *** empty log message *** |
|
36 |
* |
|
37 |
* Revision 1.1.2.2 2007/02/09 11:00:03 jaume |
|
38 |
* *** empty log message *** |
|
39 |
* |
|
40 |
* Revision 1.1.2.1 2007/01/26 13:49:03 jaume |
|
41 |
* *** empty log message *** |
|
42 |
* |
|
43 |
* |
|
44 |
*/ |
|
45 |
package org.gvsig.app.project.documents.view.legend.gui; |
|
46 |
|
|
47 |
import javax.swing.ImageIcon; |
|
48 |
import javax.swing.JPanel; |
|
49 |
|
|
50 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
51 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
|
52 |
|
|
53 |
|
|
54 |
public abstract class AbstractParentPanel implements ILegendPanel { |
|
55 |
|
|
56 |
public final void setData(FLayer lyr, ILegend legend) {} |
|
57 |
|
|
58 |
public final ILegend getLegend() { |
|
59 |
return null; |
|
60 |
} |
|
61 |
|
|
62 |
public final ImageIcon getIcon() { |
|
63 |
return null; |
|
64 |
} |
|
65 |
|
|
66 |
public Class getParentClass() { |
|
67 |
return null; |
|
68 |
} |
|
69 |
|
|
70 |
public final JPanel getPanel() { |
|
71 |
return null; |
|
72 |
} |
|
73 |
|
|
74 |
public Class getLegendClass() { |
|
75 |
return null; |
|
76 |
} |
|
77 |
|
|
78 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/Features.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
/* CVS MESSAGES: |
|
25 |
* |
|
26 |
* $Id: Features.java 29598 2009-06-29 16:09:14Z jpiera $ |
|
27 |
* $Log$ |
|
28 |
* Revision 1.3 2007-05-17 09:32:37 jaume |
|
29 |
* *** empty log message *** |
|
30 |
* |
|
31 |
* Revision 1.2 2007/03/09 11:25:00 jaume |
|
32 |
* Advanced symbology (start committing) |
|
33 |
* |
|
34 |
* Revision 1.1.2.1 2007/01/26 13:49:03 jaume |
|
35 |
* *** empty log message *** |
|
36 |
* |
|
37 |
* |
|
38 |
*/ |
|
39 |
package org.gvsig.app.project.documents.view.legend.gui; |
|
40 |
|
|
41 |
import org.gvsig.andami.PluginServices; |
|
42 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
43 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
44 |
|
|
45 |
|
|
46 |
public class Features extends AbstractParentPanel { |
|
47 |
|
|
48 |
public String getDescription() { |
|
49 |
// TODO Implement it |
|
50 |
throw new Error("Not yet implemented!"); |
|
51 |
|
|
52 |
} |
|
53 |
public String getTitle() { |
|
54 |
return PluginServices.getText(Features.class, "features"); |
|
55 |
} |
|
56 |
|
|
57 |
public boolean isSuitableFor(FLayer layer) { |
|
58 |
return layer instanceof FLyrVect; |
|
59 |
} |
|
60 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.swing/org.gvsig.symbology.swing.api/src/main/java/org/gvsig/app/project/documents/view/legend/gui/AbstractParentPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
/* CVS MESSAGES: |
|
25 |
* |
|
26 |
* $Id: AbstractParentPanel.java 29598 2009-06-29 16:09:14Z jpiera $ |
|
27 |
* $Log$ |
|
28 |
* Revision 1.3 2007-05-10 09:46:45 jaume |
|
29 |
* Refactored legend interface names |
|
30 |
* |
|
31 |
* Revision 1.2 2007/03/09 11:25:00 jaume |
|
32 |
* Advanced symbology (start committing) |
|
33 |
* |
|
34 |
* Revision 1.1.2.3 2007/02/21 07:35:14 jaume |
|
35 |
* *** empty log message *** |
|
36 |
* |
|
37 |
* Revision 1.1.2.2 2007/02/09 11:00:03 jaume |
|
38 |
* *** empty log message *** |
|
39 |
* |
|
40 |
* Revision 1.1.2.1 2007/01/26 13:49:03 jaume |
|
41 |
* *** empty log message *** |
|
42 |
* |
|
43 |
* |
|
44 |
*/ |
|
45 |
package org.gvsig.app.project.documents.view.legend.gui; |
|
46 |
|
|
47 |
import javax.swing.ImageIcon; |
|
48 |
import javax.swing.JPanel; |
|
49 |
|
|
50 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
51 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
|
52 |
|
|
53 |
|
|
54 |
public abstract class AbstractParentPanel implements ILegendPanel { |
|
55 |
|
|
56 |
public final void setData(FLayer lyr, ILegend legend) {} |
|
57 |
|
|
58 |
public final ILegend getLegend() { |
|
59 |
return null; |
|
60 |
} |
|
61 |
|
|
62 |
public final ImageIcon getIcon() { |
|
63 |
return null; |
|
64 |
} |
|
65 |
|
|
66 |
public Class getParentClass() { |
|
67 |
return null; |
|
68 |
} |
|
69 |
|
|
70 |
public final JPanel getPanel() { |
|
71 |
return null; |
|
72 |
} |
|
73 |
|
|
74 |
public Class getLegendClass() { |
|
75 |
return null; |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
0 | 79 |
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.swing/org.gvsig.symbology.swing.api/src/main/java/org/gvsig/app/project/documents/view/legend/gui/Features.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
package org.gvsig.app.project.documents.view.legend.gui; |
|
26 |
|
|
27 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
28 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
29 |
import org.gvsig.tools.ToolsLocator; |
|
30 |
|
|
31 |
|
|
32 |
public class Features extends AbstractParentPanel { |
|
33 |
|
|
34 |
public String getDescription() { |
|
35 |
throw new RuntimeException("Not yet implemented!"); |
|
36 |
|
|
37 |
} |
|
38 |
public String getTitle() { |
|
39 |
return ToolsLocator.getI18nManager().getTranslation("features"); |
|
40 |
} |
|
41 |
|
|
42 |
public boolean isSuitableFor(FLayer layer) { |
|
43 |
return layer instanceof FLyrVect; |
|
44 |
} |
|
45 |
} |
|
0 | 46 |
Also available in: Unified diff