Reputation: 2773
With the use of what is written editor component? Where can I find the source code for drawing editor ? I try to develop simple training map editor with fast interface and drawing, but I don't know how to do it with Java.
Upvotes: 0
Views: 305
Reputation: 1955
JOSM is built with the standard Java API. Thus, all graphical components are based on Swing which is the standard GUI toolkit included in Java runtime.
You can find the source code of JOSM at various locations. The primary and official location is the SVN repository:
JOSM editing and rendering system is powerful, so it is built thanks to many classes. You should have a look to the following ones to understand the basics required to render map objects and edit them:
org.openstreetmap.josm.gui.NavigatableComponent
org.openstreetmap.josm.gui.MapView
org.openstreetmap.josm.data.osm.visitor.paint.AbstractMapRenderer
org.openstreetmap.josm.data.osm.visitor.paint.WireframeMapRenderer
Upvotes: 2
Reputation: 186
I don't know what JOSM uses. But have a look at GEF http://www.eclipse.org/gef/. It's a graphical editing framework.
Upvotes: 0