svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.symbology / org.gvsig.symbology.swing / org.gvsig.symbology.swing.impl / src / main / java / org / gvsig / symbology / swing / impl / SymbologySwingDefaultImplLibrary.java @ 40560
History | View | Annotate | Download (3.07 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.symbology.swing.impl; |
25 |
|
26 |
|
27 |
import org.gvsig.symbology.swing.SymbologySwingLibrary; |
28 |
import org.gvsig.symbology.swing.SymbologySwingLocator; |
29 |
import org.gvsig.tools.library.AbstractLibrary; |
30 |
import org.gvsig.tools.library.LibraryException; |
31 |
|
32 |
/**
|
33 |
* Library for default swing implementation initialization and configuration.
|
34 |
*
|
35 |
* @author gvSIG team
|
36 |
* @version $Id$
|
37 |
*/
|
38 |
public class SymbologySwingDefaultImplLibrary extends AbstractLibrary { |
39 |
|
40 |
@Override
|
41 |
public void doRegistration() { |
42 |
registerAsImplementationOf(SymbologySwingLibrary.class); |
43 |
} |
44 |
|
45 |
@Override
|
46 |
protected void doInitialize() throws LibraryException { |
47 |
SymbologySwingLocator |
48 |
.registerSwingManager(DefaultSymbologySwingManager.class); |
49 |
|
50 |
// LineProperties
|
51 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-bevel", this); |
52 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-bevel-selected", this); |
53 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-miter", this); |
54 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-miter-selected", this); |
55 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-round", this); |
56 |
IconThemeHelper.registerIcon("line-properties", "line-properties-join-round-selected", this); |
57 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-butt", this); |
58 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-butt-selected", this); |
59 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-round", this); |
60 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-round-selected", this); |
61 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-square", this); |
62 |
IconThemeHelper.registerIcon("line-properties", "line-properties-cap-square-selected", this); |
63 |
// SymbolLayerManager
|
64 |
IconThemeHelper.registerIcon("symbol-editor", "symbol-editor-unlocked", this); |
65 |
} |
66 |
|
67 |
@Override
|
68 |
protected void doPostInitialize() throws LibraryException { |
69 |
// Nothing to do
|
70 |
} |
71 |
|
72 |
} |