Revision 41347 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/impl/DefaultMapContextManager.java
DefaultMapContextManager.java | ||
---|---|---|
103 | 103 |
|
104 | 104 |
private ObservableHelper observableHelper = new ObservableHelper(); |
105 | 105 |
|
106 |
private File colorTableLibraryFolder = null; |
|
107 |
|
|
106 | 108 |
public MapContext createMapContext() { |
107 | 109 |
MapContext mapcontext = new MapContext(new ViewPort()); |
108 | 110 |
return (MapContext) notifyObservers(CREATE_MAPCONTEXT, mapcontext).getValue(); |
... | ... | |
766 | 768 |
protected Notification notifyObservers(String type, Object value1, Object value2, Object value3) { |
767 | 769 |
return this.observableHelper.notifyObservers(this, type, value1, value2, value3); |
768 | 770 |
} |
771 |
|
|
772 |
public File getColorTableLibraryFolder() { |
|
773 |
if (this.colorTableLibraryFolder == null) { |
|
774 |
// Provide a default value to the location for the color |
|
775 |
// table library. |
|
776 |
String colorTableLibraryPath = System.getProperty("user.home") |
|
777 |
+ File.separator |
|
778 |
+ "gvSIG" |
|
779 |
+ File.separator |
|
780 |
+ "colortable"; |
|
781 |
this.colorTableLibraryFolder = new File(colorTableLibraryPath); |
|
782 |
} |
|
783 |
return this.colorTableLibraryFolder; |
|
784 |
} |
|
785 |
|
|
786 |
public void setColorTableLibraryFolder(File colorTableLibraryFolder) { |
|
787 |
this.colorTableLibraryFolder = colorTableLibraryFolder; |
|
788 |
} |
|
789 |
|
|
790 |
|
|
769 | 791 |
} |
Also available in: Unified diff