svn-gvsig-desktop / 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 / gui / styling / TypeSymbolEditor.java @ 43510
History | View | Annotate | Download (2.78 KB)
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 |
package org.gvsig.app.gui.styling; |
25 |
|
26 |
import javax.swing.JPanel; |
27 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
28 |
|
29 |
|
30 |
public interface TypeSymbolEditor { |
31 |
|
32 |
boolean canManageSymbol(ISymbol symbol);
|
33 |
|
34 |
/**
|
35 |
* Returns the editor tools that are handled by this configuration panel.
|
36 |
* @return <b>EditorTool</b>
|
37 |
*/
|
38 |
EditorTool[] getEditorTools();
|
39 |
|
40 |
/**
|
41 |
* Produces and returns the ISymbol according with the user settings.
|
42 |
*
|
43 |
* @return the ISymbol.
|
44 |
*/
|
45 |
ISymbol getLayer(); |
46 |
|
47 |
/**
|
48 |
* <p>
|
49 |
* Returns the name of the config tabs that will be shown in the selector combo box.
|
50 |
* This is typically a human-readable (and also translatable) name for the symbol that
|
51 |
* this TypeEditorPanel deals with, but maybe you prefer to use any other one.<br>
|
52 |
* </p>
|
53 |
* <p>
|
54 |
* The order of the entries in the combo is alphabetically-based. So you can force a
|
55 |
* position by defining a name that suits your needs.
|
56 |
* </p>
|
57 |
* @return A human-readable text naming this panel
|
58 |
*/
|
59 |
String getName();
|
60 |
|
61 |
/**
|
62 |
* <p>
|
63 |
* Due to the complexity that many symbols settings can reach, the SymbolEditorPanel is
|
64 |
* designed in a tabbed-based fashion. So, you can use as many of pages you want to put
|
65 |
* your components. This pages are regular JPanels that will be automatically added to
|
66 |
* the SymbolEditor dialog.<br>
|
67 |
* </p>
|
68 |
* <p>
|
69 |
* In case you need only one page, just return a JPanel array with a length of 1.
|
70 |
* </p>
|
71 |
* @return An array of JPanel containing the setting's interface.
|
72 |
*/
|
73 |
JPanel[] getTabs(); |
74 |
|
75 |
/**
|
76 |
* Invoked when the user selects or adds a new layer. This method fills up
|
77 |
* the components on the right according on the layer properties
|
78 |
* @param <b>ISymbol</b> layer, the symbol
|
79 |
*/
|
80 |
void refreshControls(ISymbol layer);
|
81 |
|
82 |
} |