2009-05-19 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSChoice.java: Instead of just one base URL, store two urls, one for GetMap requests, and one for GetFeatureInfo requests. * src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java: If the selected layer is queryable, create a base URL for GetFeatureInfo requests and also return it in the WMSChoice object. Refactor the code a little. * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: Adapt to WMSChoice interface changes 2009-03-02 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java: Include SERVICE=WMS parameter in the WMS URL for the chosen layer. 2009-03-02 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/CapabilitiesFormatter.java: New. Helper class to format the information about the provider of the service and fees and access constraints from a WMSCapabilities instance * src/de/intevation/gis/viewer/ui/wms/WMSUserAgreementPage.java: New WMS Wizard page for fees and access constraints formatted by CapabilitiesFormatter * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java: Add the WMSUserAgreementPage to the dialog and adapt the size. * src/de/intevation/gis/viewer/ui/i18n/messages.properties, src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Add messages for CapabilitiesFormatter and WMSUserAgreementPage 2009-03-02 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java, src/de/intevation/gis/viewer/tools/snap/BufferablePoint.java, src/de/intevation/gis/viewer/ui/overlays/MapPaneOverlay.java, src/de/intevation/gis/viewer/ui/style/FilterPanel.java, src/de/intevation/gis/viewer/ui/style/MainStylePanel.java, src/de/intevation/gis/viewer/ui/style/StylesTable.java: Fix javadoc comments to reduce warnings when building docs that include private methods. 2009-02-26 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MainMenu.java: Pass the MainMenu instance as owner for the WMSWizard to the AddWMSLayerAction. * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: Additional parameter for the owner of the WMSWizard dialog so that it can be centered. Using the source of the ActionEvent doesn't work properly when the source is a menu entry. 2009-02-25 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WizardDialog.java: center dialog on the owner. 2009-02-18 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java, src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java, src/de/intevation/gis/viewer/ui/overlays/ScaleBarOverlay.java, src/de/intevation/gis/viewer/ui/MapPane.java, src/de/intevation/gis/viewer/ui/Legend.java: Remove unused imports 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/overlays/FeatureOverlay.java: New. Overlay that draws a bunch of features in a given style. Not used directly by the gis-viewer itself, but it's useful for applications using the gis-viewer. 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/overlays/ToolOverlay.java: New. Overlay to paint the active tool * src/de/intevation/gis/viewer/ui/MapPane.java: Use the ToolOverlay to paint the tool. Add the getTool method so that the ToolOverlay can get the active tool. 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/overlays/SelectionOverlay.java: New. Overlay that draws the selection. * src/de/intevation/gis/viewer/ui/MapPane.java: Use the SelectionOverlay to draw the selection. Add the createGeoTransform method because it's needed by the SelectionOverlay * src/de/intevation/gis/viewer/ui/SelectionPainter.java: Make SelectionPainter and its paint method public because it's needed by the SelectionOverlay. 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/overlays/ScaleBarOverlay.java: New. Overlay that draws a scale bar * src/de/intevation/gis/viewer/ui/MapPane.java: Use the ScaleBarOverlay to draw the scale bar. 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/overlays/AbstractOverlay.java: New. Base class for overlays with some common behavior. 2008-12-17 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Add some basic support for overlays which are drawn on top of the map. * src/de/intevation/gis/viewer/ui/overlays/MapPaneOverlay.java: Interface for overlays. 2008-12-09 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSUrlDescriptor.java: New class to describe a predefined entry for the WMSBaseURLPage * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java: Accept a list of WMSUrlDescriptor instances instead of a list of URLs in the constructor * src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java: Add an addUrl variant that accepts WMSUrlDescriptor instances. If the descriptor has a title, only the title will be shown in the combo-box. 2008-11-14 Bernhard Herzog Set the scale of the MapView correctly so that e.g. scale settings of Styles work properly. Implementing this requires a change in deegree that will be part of deegree 2.3 but not of the 2.2 branch the viewer currently uses. So for the time being, the viewer will require a patched version of deegree. See README.txt for instructions. * README.txt: Update to include instructions for the patches * patches/deegree-MapView-protected-constructor.diff: New. Patch with a fix for a problem with deegree 2.2 testing branch. * src/de/intevation/gis/viewer/map/Map.java (Map::paint): New parameter scale to explicitly specify the scale of the map * src/de/intevation/gis/viewer/map/DefaultMapView.java: New class derived from org.deegree.graphics.MapView that provides better control over the scale used when rendering the map. * src/de/intevation/gis/viewer/map/DefaultMap.java (DefaultMap::addTheme): Instantiate a DefaultMapView instead of a MapView (DefaultMap::paint): New parameter scale to set the scale of the map * src/de/intevation/gis/viewer/map/Map.java (Map::paint): Add the scale parameter. * src/de/intevation/gis/viewer/ui/MapPane.java (MapPane::getBufferedMap): Pass the scale to the map's paint method. Now the map and the scale bar actually have the same idea about the scale. 2008-11-13 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Use simpler formula to calculate the scale denominator. The width parameter is not needed anymore and thus removed. Update the callers. 2008-08-19 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java: Extend the constructor to accept a list of predefined URLs which will be available in the combo box on the base url page. * src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java: Use a combo box instead of a simple JTextField. so that a list of predefined URLs can be shown. Also provide a way to add itsms to that list. * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: Adapt to changes in the WMSWizard. Pass none as the list of the predefined urls. 2008-08-11 Hans Plum * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Typo in WMS wizard corrected. 2008-07-30 Bernhard Herzog * build.xml: Add a way to build jars and source zips with a date in the name. 2008-07-30 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java: Add constructor parameter for the coordinate system to use. * src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java: This wizard page now requires a reference to the containing WMS wizard so that the coordinate sytem can be fetched from it to restrict the selection of the user and to include it in the generated GetMap URL. Also, add an empty STYLES parameter to the URL * src/de/intevation/gis/viewer/ui/wms/WMSLayerTree.java: If an SRS name is provided, make only those layers selectable that support that SRS * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: Pass the coordinate system to the WMS wizard 2008-07-23 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/PolygonSymbolizerPanel.java, src/de/intevation/gis/viewer/ui/style/MainStylePanel.java, src/de/intevation/gis/viewer/ui/ErrorDialog.java, src/de/intevation/gis/viewer/tools/snap/SnapStrategy.java, src/de/intevation/gis/viewer/tools/snap/IdentitySnapStrategy.java, src/de/intevation/gis/viewer/tools/snap/GridSnapStrategy.java, src/de/intevation/gis/viewer/demo/SnappingPolygonDrawListener.java, src/de/intevation/gis/viewer/demo/PolygonDrawListener.java, src/de/intevation/gis/viewer/demo/GisApplicationToolBar.java, src/de/intevation/gis/viewer/demo/GeometryEditListener.java: Fix comments to silence javadoc warnings 2008-07-22 Bernhard Herzog * src/de/intevation/gis/viewer/map/MapTheme.java: Clarify that getProperty returns null if the key has no associated value 2008-07-22 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSChoice.java: New class to hold the result of the WMSWizard dialog. * src/de/intevation/gis/viewer/ui/wms/WMSWizard.java: Use a WMSChoice object as the result instead of OWSRasterLayer. * src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java: Return the result as a WMSChoice object * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: Adapt to the new result type of the WMS wizard 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Update translations 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java: Internationalize error messages * src/de/intevation/gis/viewer/ui/i18n/messages.properties: More messages from WMSBaseURLPage 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/ErrorDialog.java: Internationalize messages * src/de/intevation/gis/viewer/ui/i18n/messages.properties: Add messages from error dialog 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java: Use the new error dialog when accessing the WMS server fails 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/ErrorDialog.java: New class with an error dialog that also shows stack traces 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Add translations for the WMS wizard messages 2008-07-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java, src/de/intevation/gis/viewer/ui/wms/WizardDialog.java, src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java, src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java: internationalize the messages * src/de/intevation/gis/viewer/ui/i18n/messages.properties: Add the WMS wizard messages 2008-07-18 Bernhard Herzog * README.txt: Update information about required libraries 2008-07-18 Bernhard Herzog Initial implementation of a WMS dialog * src/de/intevation/gis/viewer/ui/action/AddWMSLayerAction.java: New. Action that adds a WMS layer * src/de/intevation/gis/viewer/ui/MainMenu.java: Add a menu item with a AddWMSLayerAction * src/de/intevation/gis/viewer/ui/wms/WMSBaseURLPage.java, src/de/intevation/gis/viewer/ui/wms/WMSChooseLayerPage.java, src/de/intevation/gis/viewer/ui/wms/WMSLayerTree.java, src/de/intevation/gis/viewer/ui/wms/WMSWizard.java, src/de/intevation/gis/viewer/ui/wms/WizardDialog.java, src/de/intevation/gis/viewer/ui/wms/WizardPage.java, src/de/intevation/gis/viewer/ui/wms/WizardPageChangedEvent.java, src/de/intevation/gis/viewer/ui/wms/WizardPageSwitchedEvent.java, src/de/intevation/gis/viewer/ui/wms/WizardPanel.java, src/de/intevation/gis/viewer/ui/wms/WizardPanelListener.java: New files implementing the WMS dialog 2008-06-06 Bernhard Herzog * src/de/intevation/gis/viewer/map/DefaultMap.java: Make getCoordinatesSystem return the defaultCRS if the mapView hasn't been created yet. Otherwise, the File->Load Shapefile menu item fails with a NPE in getCoordinatesSystem if no theme has been created yet. 2008-06-05 Bernhard Herzog * README.txt: Update the Requirements section to deegree 2.2_testing 2007-08-22 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/StylesTable.java: Make the title of the default rule editable 2007-08-22 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Use the lower bound of the selected ranged property as the lower bound of the first rule. 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Use the correct column for the title when creating else rules 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/messages_de.properties, src/de/intevation/gis/viewer/ui/style/messages.properties: Do not xml-escape the value of the StylesTable.intervallPrefix property. Doing it in the properties file is a work-around for a deegree bug. 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Rework the getStyle method to make it sort the rules so that they occur in the style in the proper order. Otherwise we may end up with filters effectively using conditions like "3 < x <= 2". 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Remove unused imports 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Remove unused method replaceRuleName 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/StylesTable.java, src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Use the Rule's title as the third column of the table. The title is what deegree's LegendFactory prefers when rendering the LegendElements. If the style dialog sets the name instead but not the title, the title will effectively be "default" which will show up in the legend instead of the string given by the user. 2007-08-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/style/StyleTest.java: Rework the StyleTest class to be more flexible. The style edited by the test program can now be given on the command line and the ranged properties can also be specified on the command line. The exit code of the program indicates whether the style was edited successfully (if the user clicked OK the exit code is 0, non-zero otherwise). 2007-08-21 Bernhard Herzog * build.xml: Provide a way to specify the class used for the demo target 2007-05-16 Andreas Schmitz * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: added simple menu for reading GML/Shape files * src/de/intevation/gis/viewer/ui/Legend.java: added fix for changed SLD-requirements 2007-01-17 Ugo Taddei * src/de/intevation/gis/viewer/demo/EditingToolBar.java: Changed icon names for add, remove and move vertex tools. * src/de/intevation/gis/viewer/ui/img/add_vertex.png, * src/de/intevation/gis/viewer/ui/img/move_vertex.png, * src/de/intevation/gis/viewer/ui/img/remove_vertex.png: New icons. 2006-12-04 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Make the viewer build and work with a deegree version from before the proj-code was removed, too, by catching Exception instead of UnknownCRSException 2006-12-01 Ugo Taddei * src/de/intevation/gis/viewer/ui/Legend.java: untested changes (provided by Silke Reimer). * src/de/intevation/gis/viewer/ui/style/AbstractSymbolizerFactory.java, * src/de/intevation/gis/viewer/ui/style/DashCombo.java, * src/de/intevation/gis/viewer/ui/style/DashGenerator, * src/de/intevation/gis/viewer/ui/style/DashProperties.java: changed header as it contained illegal chars. * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: surrounded CRSFactory.create( csname ) with a try/catch (due to Projection code change in deegree), and made default crs to be 4326. 2006-11-23 Serge N'Cho * src/de/intevation/gis/viewer/demo/EditingToolBar.java: added missing header 2006-11-20 Ugo Taddei * src/de/intevation/gis/viewer/ui/map/MapSelection.java: added untested changes by request of Silke Reimer; regards order of feature info result. 2006-11-20 Ugo Taddei * src/de/intevation/gis/viewer/ui/map/Map.java, * src/de/intevation/gis/viewer/ui/map/DefaultMap.java: added untested changes by request of Silke Reimer; regards order of feature info result. 2006-11-20 Ugo Taddei * src/de/intevation/gis/viewer/ui/style/FilterPanel.java, * src/de/intevation/gis/viewer/ui/style/SymbolizerPanel.java: added code to display title. * src/de/intevation/gis/viewer/ui/style/RangedProperties.java: toString() now returns qualiName.getLocalName(). * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: fixed NPW when rangedProperties.length == 0. * src/de/intevation/gis/viewer/ui/Legend.java, * src/de/intevation/gis/viewer/ui/style/messages.properties, * src/de/intevation/gis/viewer/ui/style/messages_de.properties: i18n work (provided by Silke Reimer). 2006-11-08 Bernhard Herzog * src/de/intevation/gis/viewer/map/MapEvent.java: Add missing copyright notice. 2006-11-08 Bernhard Herzog Add some limited support for events to MapTheme objects. It's limited to what we currently need in an application using the viewer. * src/de/intevation/gis/viewer/ui/MapPane.java: Call fireLayerChanged on the theme after the selected features have been remove.d * src/de/intevation/gis/viewer/map/MapTheme.java: Add basic support for events and one method, fireLayerChanged, to send an event. * src/de/intevation/gis/viewer/map/MapThemeListener.java: New. Listener interface for MapTheme events. * src/de/intevation/gis/viewer/map/MapThemeEvent.java: New. Event for MapThemes * src/de/intevation/gis/viewer/map/DefaultTheme.java: Add basic support for events and implement fireLayerChanged. 2006-11-08 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Remove some obsolete commented out code 2006-11-08 Bernhard Herzog * src/de/intevation/gis/viewer/map/ThemeEditor.java: New method createAppName that creates a QualifiedName in the http://www.deegree.org/app namespace. The createName method was changed to explicitly produce names with a null namespace. Also adds another new method, createPropertyType(QualifiedName,...), to create a property type with a QualifiedName so that one can use e.g. createAppName to create the name of the property. 2006-11-08 Bernhard Herzog * src/de/intevation/gis/viewer/map/MapTheme.java: Add setProperty and getProperty methods * src/de/intevation/gis/viewer/map/DefaultTheme.java: Implement setProperty and getProperty 2006-11-07 Bernhard Herzog * src/de/intevation/gis/viewer/map/DefaultTheme.java: Add another constructor variant (name, title, layer). 2006-11-06 Bernhard Herzog * src/de/intevation/gis/viewer/ui/Legend.java: The legend now shows the title of a theme instead of the name and the title is editable. * src/de/intevation/gis/viewer/map/MapTheme.java: Add the title methods. * src/de/intevation/gis/viewer/map/DefaultTheme.java: Add the title handling. 2006-11-06 Bernhard Herzog * src/de/intevation/gis/viewer/map/MapTheme.java: New. Interface for all themes used by Map. * src/de/intevation/gis/viewer/map/DefaultTheme.java: New. Default implementation of MapTheme * src/de/intevation/gis/viewer/map/Map.java: Use MapTheme instead of Theme * src/de/intevation/gis/viewer/map/DefaultMap.java: Adapt to Map changes. * src/de/intevation/gis/viewer/map/WfsTheme.java: Derive from DefaultTheme * src/de/intevation/gis/viewer/demo/DemoGisApplication.java, src/de/intevation/gis/viewer/demo/DemoThemeEditor.java, src/de/intevation/gis/viewer/demo/GeometryEditListener.java, src/de/intevation/gis/viewer/demo/GeometrySplitListener.java, src/de/intevation/gis/viewer/demo/GeometryUnionListener.java, src/de/intevation/gis/viewer/demo/PointDrawListener.java, src/de/intevation/gis/viewer/map/ThemeEditor.java, src/de/intevation/gis/viewer/tools/MoveVertexTool.java, src/de/intevation/gis/viewer/tools/VertexTool.java, src/de/intevation/gis/viewer/tools/snap/SnapStrategy.java, src/de/intevation/gis/viewer/ui/Legend.java, src/de/intevation/gis/viewer/ui/LegendPanel.java, src/de/intevation/gis/viewer/ui/LegendSelectionAdapter.java, src/de/intevation/gis/viewer/ui/MapPane.java, src/de/intevation/gis/viewer/ui/MapSelection.java, src/de/intevation/gis/viewer/ui/action/AbstractFileLoadAction.java: Adapt to MapTheme introduction 2006-11-03 Bernhard Herzog * src/de/intevation/gis/viewer/map/ExtendedMapPane.java, src/de/intevation/gis/viewer/ui/MapPane.java: Move getVisibleEnvelope from ExtendedMapPane to MapPane and rename it to getVisibleRegion. Also use a slightly different implementation from flys * src/de/intevation/gis/viewer/map/WfsTheme.java: Adapt to getVisibleEnvelope renaming. 2006-11-02 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Fix typo in doc-comment 2006-11-01 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java, src/de/intevation/gis/viewer/demo/NavigationToolBar.java, src/de/intevation/gis/viewer/tools/RulerTool.java, src/de/intevation/gis/viewer/ui/MapPaneSettingsPanel.java, src/de/intevation/gis/viewer/ui/MovePanel.java, src/de/intevation/gis/viewer/ui/action/LoadShapefileAction.java: Remove unused imports. 2006-10-30 Bernhard Herzog * src/de/intevation/gis/viewer/tools/AddVertexTool.java, src/de/intevation/gis/viewer/tools/RemoveVertexTool.java: New. Tools to add/remove vertices. Based on code from DEG. The AddVertexTool can add points anywhere on the border of the polygon, though. * src/de/intevation/gis/viewer/demo/EditingToolBar.java: Add buttons for the add/remove vertex tools. * src/de/intevation/gis/viewer/ui/i18n/messages.properties, src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Add messages for add/remove vertex buttons 2006-10-30 Bernhard Herzog * src/de/intevation/gis/viewer/tools/VertexTool.java: New. Base class for the vertex editing tools. * src/de/intevation/gis/viewer/tools/MoveVertexTool.java: derived from VertexTool now. 2006-10-27 Ugo Taddei * src/de/intevation/gis/viewer/ui/style/FilterCellRenderer.java, * src/de/intevation/gis/viewer/ui/style/InputVerifierFactory, * src/de/intevation/gis/viewer/ui/style/RuleNameCellRenderer: Deleted unused classes * src/de/intevation/gis/viewer/ui/style/FilterPanel.java: Removed unused code * src/de/intevation/gis/viewer/ui/style/FilterPanel.java, * src/de/intevation/gis/viewer/ui/style/StylesTable.java, * src/de/intevation/gis/viewer/ui/style/messages.properties, * src/de/intevation/gis/viewer/ui/style/messages_de.properties: Bug fixes, and i18n work. 2006-10-27 Ugo Taddei * src/de/intevation/gis/viewer/ui/style/PolygonSymbolizerPanel.java: bug fix (widget was adding borders to polys that had none) * src/de/intevation/gis/viewer/ui/style/DefaultSymbolizerPanelFactory.java: Changed default poly and line widths to 0 and 1, respectively; commented out unused poly array array 2006-10-25 Bernhard Herzog * src/de/intevation/gis/viewer/ui/Legend.java: Rearrange the change style action code. Most of it is now implemented as methods of Legend so that derived classes can easily override parts of the behavior. 2006-10-23 Ugo Taddei * src/de/intevation/gis/viewer/tools/SnappingPolygonDrawTool.java, * src/de/intevation/gis/viewer/tools/snap/SnapStrategy.java: Change issues with mapPane being null * src/de/intevation/gis/viewer/tools/snap/IdentitySnapStrategy.java: Made final, added javadoc * src/de/intevation/gis/viewer/tools/snap/SingleThemeSnapStrategy.java: Now uses BufferablePoint * src/de/intevation/gis/viewer/tools/snap/GridSnapStrategy.java: New class, Snap-to-grid strategy * src/de/intevation/gis/viewer/tools/snap/BufferablePoint.java: New class, re-implementation of PointImpl (with getBuffer) * src/de/intevation/gis/viewer/map/WfsTheme.java, * src/de/intevation/gis/viewer/map/ExtendedMapPane.java, * src/de/intevation/gis/viewer/map/MapEnvelopeListener.java: New classes (WFS related) * src/de/intevation/gis/viewer/demo/GeometryEditListener.java: Removed unused method consumeGeometry2() 2006-10-23 Ugo Taddei * src/de/intevation/gis/viewer/ui/Legend.java: Added support for custom styling * src/de/intevation/gis/viewer/ui/style/FilterCellRenderer.java, * src/de/intevation/gis/viewer/ui/style/FilterPanel.java, * src/de/intevation/gis/viewer/ui/style/InputVerifierFactory.java, * src/de/intevation/gis/viewer/ui/style/MainStylePanel.java, * src/de/intevation/gis/viewer/ui/style/StylesTable.java: Custom styling widgets: number of bug fixes and corrections * src/de/intevation/gis/viewer/ui/style/SymbolizerPanel.java: Implements StylesUI interface * src/de/intevation/gis/viewer/ui/style/StylesUI.java: New interface for UIs that generate a style 2006-10-16 Bernhard Herzog * src/de/intevation/gis/viewer/tools/MoveVertexTool.java: Fix some javadoc issues 2006-10-16 Bernhard Herzog * src/de/intevation/gis/viewer/tools/MoveVertexTool.java: New. A tool to move the vertex of a polygon * src/de/intevation/gis/viewer/demo/EditingToolBar.java: Add button for the MoveVertexTool * src/de/intevation/gis/viewer/ui/i18n/messages.properties, src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: Add message for MoveVertexTool button 2006-10-16 Ugo Taddei Added snap demo class and code to show it off * src/de/intevation/gis/viewer/tools/SnappingPolygonDrawTool.java * src/de/intevation/gis/viewer/demo/SnappingPolygonDrawListener.java * src/de/intevation/gis/viewer/demo/EditingToolBar.java * src/de/intevation/gis/viewer/tools/DrawTool.java: made dragging protected Added snap classes: * src/de/intevation/gis/viewer/tools/snap/SnapStrategy.java * src/de/intevation/gis/viewer/tools/snap/IdentitySnapStrategy.java * src/de/intevation/gis/viewer/tools/snap/SingleThemeSnapStrategy.java 2006-10-09 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Fill the buffered image with the background color of the map pane before drawing the map. 2006-10-09 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Move the code that creates the ScaleBar into the new method getScaleBar. This allows e.g. customization of the look of the scale bar. 2006-10-05 Bernhard Herzog * src/de/intevation/gis/viewer/ui/SelectionPainter.java: The innerRings of a SurfacePatch may be null. 2006-09-29 Ugo Taddei Changes to FilterPanel et al. for custom symbolization * src/de/intevation/gis/viewer/ui/style/FilterPanel.java * src/de/intevation/gis/viewer/ui/style/MainStylePanel.java * src/de/intevation/gis/viewer/ui/style/StylesTable.java * src/de/intevation/gis/viewer/ui/style/SymbolizerCellRenderer.java 2006-09-28 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapSelection.java: Make sure to change the selection only at the end when we know which features the user clicked on. Also, in multi-selection mode, only do something if the user actually clicked on a feature. 2006-09-28 Ugo Taddei * src/de/intevation/gis/viewer/ui/SelectionPainter.java: javadoc * src/de/intevation/gis/viewer/EditingToolBar.java: added point tool Refactoring: moved the some logic into GeomEditListener * src/de/intevation/gis/viewer/GeometryEditListener.java * src/de/intevation/gis/viewer/PolygonDrawListener.java * src/de/intevation/gis/viewer/PointDrawListener.java: new class * src/de/intevation/gis/viewer/tools/PointTool.java: new class Added some javadoc * src/de/intevation/gis/viewer/tools/GeometrySplitTool.java * src/de/intevation/gis/viewer/tools/GeometryUnionTool.java: * src/de/intevation/gis/viewer/ui/Legend.java: changed user message * src/de/intevation/gis/viewer/ui/MapSelection.java: added remove() and adapted the logic in selectFeature (if multiClick and feature selected, deselect) Delegating selection drawing to its own class * src/de/intevation/gis/viewer/ui/MapPane.java * src/de/intevation/gis/viewer/ui/SelectionPainter.java * src/de/intevation/gis/viewer/ui/MapPane.java: when getting Bbox, check if not OWSRasterLayer, because we want to zoom to vector layers only Passing the compo. parent to the color choosers: better window positioning * src/de/intevation/gis/viewer/ui/style/PolygonSymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/LineSymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/PointSymbolizerPanel.java 2006-09-27 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapSelection.java: Clean up the logic in selectFeature so that only the feature closest to the point is considered. Also, make clearFeatureSelection send events. 2006-09-27 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: Make drawSelection work for point and line geometries again. 2006-09-27 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MovePanel.java: Removed now unused constant RESOURCEPATH 2006-09-26 Ugo Taddei * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: removed inner listener classes (for geom editing/consuming), added toolbars Added/refactored * src/de/intevation/gis/viewer/demo/GisApplicationToolBar.java * src/de/intevation/gis/viewer/demo/EditingToolBar.java * src/de/intevation/gis/viewer/demo/NavigationToolBar.java * src/de/intevation/gis/viewer/demo/GeometryEditListener.java * src/de/intevation/gis/viewer/demo/GeometrySplitListener.java * src/de/intevation/gis/viewer/demo/GeometryUnionListener.java * src/de/intevation/gis/viewer/demo/LineDrawListener.java * src/de/intevation/gis/viewer/demo/PolygonDrawListener.java Added for testing and trying things out, but not in Demo yet * src/de/intevation/gis/viewer/ui/MainMenu.java * src/de/intevation/gis/viewer/ui/MapPaneSettings.java * src/de/intevation/gis/viewer/ui/action/AbstractFileLoadAction.java * src/de/intevation/gis/viewer/ui/action/AbstractGisAppAction.java * src/de/intevation/gis/viewer/ui/action/LoadGMLFileAction.java * src/de/intevation/gis/viewer/ui/action/LoadShapefileAction.java * src/de/intevation/gis/viewer/ui/MapPane.java:changes due to multi feature selection * src/de/intevation/gis/viewer/ui/MapSelection.java: implemented multi feature selection * src/de/intevation/gis/viewer/ui/Legend.java: added an ugly hack to refresh the GUI after style ahs changed (will be removed when Theme is OK) * src/de/intevation/gis/viewer/ui/InfoBar.java: added convenience methods Added new icons, renamed old (area/length ruler), redraw some (edit) Updated i18n messages (due to new tools) * src/de/intevation/gis/viewer/ui/i18n/messages.properties * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties Added new tools (and listeners): geom split and union * src/de/intevation/gis/viewer/tools/GeometryUnionTool.java * src/de/intevation/gis/viewer/tools/GeometrySplitTool.java * src/de/intevation/gis/viewer/tools/SelectionTool.java: added multi selection (if mouse ctrl-right-clicked), added message for user * src/de/intevation/gis/viewer/tools/PolygonDrawTool.java: fixed typo and now calling points.clear(); (instead of super.finishDrawing()) * src/de/intevation/gis/viewer/tools/KeyNavigationMap.java: added same type of zoom to 2 different keys 2006-09-22 Ugo Taddei * src/de/intevation/gis/viewer/tools/RuleTool.java: made RuleTool abstract 2006-09-21 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: add deleteSelectedFeature to remove the selected feature * src/de/intevation/gis/viewer/ui/MapSelection.java: Add method to select/deselect a given feature * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Add button to delete the currently selected feature * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties, src/de/intevation/gis/viewer/ui/i18n/messages.properties: Add message for delete button 2006-09-21 Bernhard Herzog * src/de/intevation/gis/viewer/resources/close.gif, src/de/intevation/gis/viewer/resources/go-bottom.png, src/de/intevation/gis/viewer/resources/go-down.png, src/de/intevation/gis/viewer/resources/go-top.png, src/de/intevation/gis/viewer/resources/go-up.png, src/de/intevation/gis/viewer/ui/img/close.gif, src/de/intevation/gis/viewer/ui/img/go-bottom.png, src/de/intevation/gis/viewer/ui/img/go-down.png, src/de/intevation/gis/viewer/ui/img/go-top.png, src/de/intevation/gis/viewer/ui/img/go-up.png: Moved images from resources/ to ui/img/ so that all icons used by ui are now in ui/img. * src/de/intevation/gis/viewer/ui/MovePanel.java: use ui.img.IconLoader to load the icons from ui/img instead of from resources 2006-09-20 Bernhard Herzog * README.txt: Add notes about the runtime requirements. Add section about the demo program. 2006-09-20 Bernhard Herzog * build.xml: Do not use spawn to start the demo. With spawn the output of the program is lost and that includes error messages. Also, make the "demo" target depend on "compile". 2006-09-20 Bernhard Herzog * build.xml: Added "demo" target to make it a little easier to start the demo program. 2006-09-19 Ugo Taddei * src/de/intevation/gis/viewer/DemoGisApplication.java: changed cursor for selection tool, added style generator * src/de/intevation/gis/viewer/ui/img/cursor.png: added image * src/de/intevation/gis/viewer/ui/Legend.java. Added ChangeStyleAction, changed columnClasses of table model Added change style string * src/de/intevation/gis/viewer/ui/messages.properties * src/de/intevation/gis/viewer/ui/messages_de.properties 2006-09-19 Ugo Taddei Added style widgets * src/de/intevation/gis/viewer/ui/style/AbstractSymbolizerFactory.java * src/de/intevation/gis/viewer/ui/style/dash.properties * src/de/intevation/gis/viewer/ui/style/DashCombo.java * src/de/intevation/gis/viewer/ui/style/DashGenerator.java * src/de/intevation/gis/viewer/ui/style/DashProperties.java * src/de/intevation/gis/viewer/ui/style/DefaultSymbolizerPanelFactory.java * src/de/intevation/gis/viewer/ui/style/FilterCellRenderer.java * src/de/intevation/gis/viewer/ui/style/FilterPanel.java * src/de/intevation/gis/viewer/ui/style/InputVerifierFactory.java * src/de/intevation/gis/viewer/ui/style/LineSymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/MainStylePanel.java * src/de/intevation/gis/viewer/ui/style/Messages.java * src/de/intevation/gis/viewer/ui/style/messages.properties * src/de/intevation/gis/viewer/ui/style/messages_de.properties * src/de/intevation/gis/viewer/ui/style/PointSymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/PolygonSymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/RangedProperty.java * src/de/intevation/gis/viewer/ui/style/RuleNameCellRenderer.java * src/de/intevation/gis/viewer/ui/style/StyleGenerator.java * src/de/intevation/gis/viewer/ui/style/StylesTable.java * src/de/intevation/gis/viewer/ui/style/StyleTest.java * src/de/intevation/gis/viewer/ui/style/SymbolizerCellRenderer.java * src/de/intevation/gis/viewer/ui/style/SymbolizerPanel.java * src/de/intevation/gis/viewer/ui/style/test_style.xml 2006-09-15 Bernhard Herzog Add simple selection handling * src/de/intevation/gis/viewer/ui/MapSelection.java: New. Class that represents the selection. * src/de/intevation/gis/viewer/ui/MapSelectionListener.java: New. Interface for listeners of MapSelection events. * src/de/intevation/gis/viewer/ui/MapSelectionEvent.java: New. Event sent by MapSelection * src/de/intevation/gis/viewer/ui/MapPane.java: The MapPane manages a selection now. New methods to deal with the selection: getMapSelection, selectTheme, getSelectedTheme, selectPoint, onSelectionChanged. And some new methods to draw the selection: drawSelection, geometryDimension. * src/de/intevation/gis/viewer/map/DefaultMap.java: Add createGeoTransform method to determine a GeoTransform. * src/de/intevation/gis/viewer/ui/Legend.java: New method addListSelectionListener to set a listener for the underlying JTable. In #setSelection, set the ValueIsAdjusting attribute because the JPTable will send several events for the selection changes. * src/de/intevation/gis/viewer/ui/LegendPanel.java: Add methods getSelection, selectTheme, addListSelectionListener for selection handling. * src/de/intevation/gis/viewer/ui/LegendSelectionAdapter.java: New. Helper class to keep the legend's selection and the MapPane's selection in sync * src/de/intevation/gis/viewer/tools/SelectionTool.java: New. Selection Tool * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Add button for selection tool. Hook up the LegendSelectionAdapter. * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties, src/de/intevation/gis/viewer/ui/i18n/messages.properties: Add selection tool strings. 2006-09-15 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MovePanel.java, src/de/intevation/gis/viewer/ui/Legend.java: internationalize various strings. * src/de/intevation/gis/viewer/ui/i18n/messages.properties: Add the strings from Legend and MovePanel. * src/de/intevation/gis/viewer/ui/i18n/messages_de.properties: New. German localization. 2006-09-15 Bernhard Herzog * build.xml: New target dist-src for a source tarball. Target dist renamed to dist-bin and a new target dist now does both dist-bin and dist-src. The default target is dist-bin now. 2006-09-15 Bernhard Herzog * src/de/intevation/gis/viewer/tools/ZoomTool.java: In mouseReleased use w_start instead of start when checking the distance the mouse has been moved, so that we compare window coordinates with window coordinates. 2006-09-12 Bernhard Herzog * src/de/intevation/gis/viewer/map/DefaultMap.java: Make it easier to do more complex modifications of the map without triggering expensive redraws: Make fireLayersChanged public and add a version of addTheme that takes and additional boolean parameter that indicates whether to send MapEvents. 2006-09-12 Bernhard Herzog * src/de/intevation/gis/viewer/map/Map.java: Remove the access modifiers. 2006-09-12 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: remove unused imports 2006-09-11 Bernhard Herzog * src/de/intevation/gis/viewer/map/ThemeEditor.java: Set the prefix of the new QualifiedName objects in createName to null. Otherwise the prefix will be used in the attribute name when exporting to shapefiles. 2006-09-08 Ugo Taddei * DemoGisApplication: new icons, poly draw too, info bar and keybard nav * added c-a-p version of lineDrawTool (need refactoring) * made geomConsumer protected (this needs fixing) * added KeyNavigationMap for keyboard navigation * added InfoBar class, for info mesgs * filled in messages.props with some values * added new icons 2006-09-07 Bernhard Herzog * src/de/intevation/gis/viewer/ui/LegendPanel.java: New. A JPanel that combines Legend and MovePanel and implements the glue to make the buttons in the MovePanel work. * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Use the new LegendPanel instead of Legend and MovePanel directly. Now the buttons in the MovePanel actually work. 2006-09-07 Ugo Taddei * src/de/intevation/gis/viewer/ui/MapPane.java: bug fix (NPE); added addTheme() 2006-09-07 Bernhard Herzog * src/de/intevation/gis/viewer/ui/MapPane.java: javadoc fixes 2006-09-07 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Add copyright header. 2006-09-07 Bernhard Herzog Flesh out the demo a little more with a tool that lets the user draw lines that appear in the map: * src/de/intevation/gis/viewer/demo/DemoThemeEditor.java: New. A theme editor that can create features with a geometry and a name for demo purposes. * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Add a LineDrawTool that draws lines into a new layer. 2006-09-06 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: When activating a tool, it's not necessary to call the tool's setPane method because the MapPane instance will do that automatically in setTool. 2006-09-06 Bernhard Herzog * src/de/intevation/gis/viewer/demo/DemoGisApplication.java: The names of the shapefiles and the CRS to use can now be given on the command line. The filenames are also used to name the themes created for them. 2006-09-06 Bernhard Herzog * src/de/intevation/gis/DemoGisApplication.java, src/de/intevation/gis/viewer/demo/DemoGisApplication.java: Moved the demo application to src/de/intevation/gis/viewer/demo/ 2006-09-06 Bernhard Herzog * src/de/intevation/gis/viewer/map/ThemeEditor.java: New. Class to help editing a theme. 2006-09-06 Bernhard Herzog * src/de/intevation/gis/viewer/tools/LineDrawTool.java: New. Line drawing tool that creates Geometry objects for the lines. * src/de/intevation/gis/viewer/tools/GeometryConsumer.java: New interface used by LineDrawTool 2006-08-31 Bernhard Herzog * build.xml: Add target javadoc to build the API docs 2006-08-29 Bernhard Herzog * build.xml: Copy the properties files to the build directory 2006-08-29 Ugo Taddei * src/de/intevation/gis/DemoGisApplication.java: added demo application * src/de/intevation/gis/viewer/ui/i18n/Messages.java, src/de/intevation/gis/viewer/ui/i18n/messages.properties: added i18n class and props * src/de/intevation/gis/viewer/ui/img/IconLoader.java, src/de/intevation/gis/viewer/ui/img/pencil.png, src/de/intevation/gis/viewer/ui/img/pencil_add.png, src/de/intevation/gis/viewer/ui/img/readme.txt, src/de/intevation/gis/viewer/ui/img/world_go.png, src/de/intevation/gis/viewer/ui/img/zoom_in.png, src/de/intevation/gis/viewer/ui/img/zoom_out.png: added some icons and loader class 2006-08-24 Ugo Taddei * src/de/intevation/gis/viewer/DefaultMap.java, src/de/intevation/gis/viewer/DrawTool.java, src/de/intevation/gis/viewer/Legend.java, src/de/intevation/gis/viewer/Map.java, src/de/intevation/gis/viewer/MapPane.java, src/de/intevation/gis/viewer/MovePanel.java, src/de/intevation/gis/viewer/PanTool.java, src/de/intevation/gis/viewer/RulerTool.java, src/de/intevation/gis/viewer/Tool.java, src/de/intevation/gis/viewer/ZoomTool.java, src/de/intevation/gis/viewer/map/DefaultMap.java, src/de/intevation/gis/viewer/map/Map.java, src/de/intevation/gis/viewer/map/MapEvent.java, src/de/intevation/gis/viewer/map/MapListener.java, src/de/intevation/gis/viewer/tools/DrawTool.java, src/de/intevation/gis/viewer/tools/PanTool.java, src/de/intevation/gis/viewer/tools/RulerTool.java, src/de/intevation/gis/viewer/tools/Tool.java, src/de/intevation/gis/viewer/tools/ZoomTool.java, src/de/intevation/gis/viewer/ui/Legend.java, src/de/intevation/gis/viewer/ui/MapPane.java, src/de/intevation/gis/viewer/ui/MapPaneListener.java, src/de/intevation/gis/viewer/ui/MovePanel.java, src/de/intevation/gis/viewer/ui/ToolTextEvent.java: refactoring (map, ui and tools package); extraction of some listeners and events 2006-08-23 Bernhard Herzog * README.txt: Updated with build instructions and other information. 2006-08-23 Bernhard Herzog * build.xml, LGPL.txt: Added 2006-08-23 Bernhard Herzog * ChangeLog: Started changelog