Recent days, i use geotools2 to develop a project, during this period ,i found in map and gui module, some functions should be added. In detail as following:
in Map module, in order to get the layer title from the layer, i think getTitle() should be added in Layer.java and DefaultLayer.java.
in gui module, i try to modify the Mapviewer and append the menus and toolbars linking to zoompane. so in ZoomPane.java, there should be have a function to return a Action instance which is used to build the toolbar. of course, the menu building neednt the returned Action instance.
This is only my own openion, i want the developer of those module to look at those sections.
Do You Yahoo!?
From: Martin Desruisseaux <martin.desruisseaux@te...> - 2002-12-16 04:17:40
wan changjiang a =E9crit :
> in gui module [...snip...] in ZoomPane.java, there should be
> have a function to return a Action instance which is used to build
> the toolbar. of course, the menu building neednt the returned Action
There is actually a undocumented way to do that. You can use the
ActionMap actionMap =3D zoompane.getActionMap();
Action action =3D actionMap.get(actionID);
Where "actionID" can be any of the following:
"Left", "Right", "Up", "Down", "ZoomIn", "ZoomOut", "ZoomMax", "Reset",
"RotateLeft" and "RotateRight".
This feature should probably be documented in the javadoc...