Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.data |
Provides the classes for JOSM managed data.
|
org.openstreetmap.josm.data.osm |
Provides the classes for OSM data:
Primitives :
Node ,
Way ,
Relation
Users
Tags
Changesets
Utilities classes
|
org.openstreetmap.josm.data.osm.visitor.paint |
Provides the classes for painting (rendering) OSM primitives on the map.
|
org.openstreetmap.josm.gui |
Provides the classes for JOSM graphical user interface.
|
org.openstreetmap.josm.gui.datatransfer.importers |
Provides the classes for the transfer support controllers allowing cut/copy/paste operations.
|
org.openstreetmap.josm.gui.dialogs |
Provides three kinds of dialogs:
Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI
Changeset dialog based on a standalone implementation, dedicated to OSM changesets management
Extended dialogs for everything else
|
org.openstreetmap.josm.gui.io |
Provides GUI classes for handling input/output operations (download, upload, save).
|
org.openstreetmap.josm.gui.layer |
Provides classes for handling the different kinds of map layers.
|
org.openstreetmap.josm.gui.mappaint.styleelement |
Style elements defining how a map paint style is rendered.
|
org.openstreetmap.josm.gui.tagging.presets |
Provides classes for handling tagging presets.
|
org.openstreetmap.josm.io |
Provides the classes for JOSM input/output support.
|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
PurgeAction.SelectionForcedPrimitiveRenderer.getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list,
IPrimitive value,
int index,
boolean isSelected,
boolean cellHasFocus) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
PurgeAction.SelectionForcedPrimitiveRenderer.getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list,
IPrimitive value,
int index,
boolean isSelected,
boolean cellHasFocus) |
Modifier and Type | Method and Description |
---|---|
void |
APIDataSet.removeProcessed(java.util.Collection<IPrimitive> processed)
Removes the given primitives from this
APIDataSet |
Modifier and Type | Interface and Description |
---|---|
interface |
INode
|
interface |
IRelation
IRelation captures the common functions of
Relation and RelationData . |
interface |
IWay
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPrimitive
Abstract class to represent common features of the datatypes primitives.
|
class |
Node
One node data, consisting of one world coordinate waypoint.
|
class |
NodeData
The data on a single node (tags and position) that is stored in the database
|
class |
OsmPrimitive
|
class |
PrimitiveData
This class can be used to save properties of OsmPrimitive.
|
class |
Relation
A relation, having a set of tags and any number (0...n) of members.
|
class |
RelationData
Relation data.
|
class |
Way
One full way, consisting of a list of way
nodes . |
class |
WayData
The data (tags and node ids) that is stored for a way in the database
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
DefaultNameFormatter.buildDefaultToolTip(IPrimitive primitive)
Builds a default tooltip text for the primitive
primitive . |
default int |
INode.compareTo(IPrimitive o) |
default int |
IRelation.compareTo(IPrimitive o) |
default int |
IWay.compareTo(IPrimitive o) |
protected void |
DefaultNameFormatter.decorateNameWithId(java.lang.StringBuilder name,
IPrimitive primitive)
Decorates the name of primitive with its id, if the preference
osm-primitives.showid is set. |
java.lang.String |
DefaultNameFormatter.format(IPrimitive osm)
Formats a name for an
IPrimitive . |
static OsmPrimitiveType |
OsmPrimitiveType.from(IPrimitive obj)
Determines the OSM primitive type of the given object.
|
static java.lang.String |
OsmUtils.getLayer(IPrimitive w)
Returns the layer value of primitive (null for layer 0).
|
Modifier and Type | Method and Description |
---|---|
static int |
StyledMapRenderer.computeFlags(IPrimitive primitive,
boolean checkOuterMember)
Computes the flags for a given OSM primitive.
|
private void |
StyledMapRenderer.displayText(IPrimitive osm,
TextLabel text,
java.lang.String name,
java.awt.geom.Rectangle2D nb,
MapViewPositionAndRotation center) |
void |
StyledMapRenderer.drawAreaIcon(IPrimitive osm,
MapImage img,
boolean disabled,
boolean selected,
boolean member,
double theta,
PositionForAreaStrategy iconPosition)
Draw the icon for a given area.
|
void |
StyledMapRenderer.drawText(IPrimitive osm,
TextLabel text,
PositionForAreaStrategy labelPositionStrategy)
Draws a text for the given primitive
|
private void |
StyledMapRenderer.forEachPolygon(IPrimitive osm,
java.util.function.Consumer<MapViewPath> consumer)
Calls a consumer for each path of the area shape-
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
PrimitiveRenderer.getComponentText(IPrimitive value)
Returns the text representing an OSM primitive in a component.
|
protected java.lang.String |
PrimitiveRenderer.getComponentToolTipText(IPrimitive value)
Returns the text representing an OSM primitive in a tooltip.
|
java.awt.Component |
PrimitiveRenderer.getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list,
IPrimitive value,
int index,
boolean isSelected,
boolean cellHasFocus)
Adapter method supporting the ListCellRenderer interface.
|
private java.awt.Component |
PrimitiveRenderer.renderer(java.awt.Component def,
IPrimitive value,
boolean fast)
Internal method that stuffs information into the rendering component
provided that it's a kind of JLabel.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
PrimitiveRenderer.getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list,
IPrimitive value,
int index,
boolean isSelected,
boolean cellHasFocus)
Adapter method supporting the ListCellRenderer interface.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<? extends IPrimitive> |
PrimitiveTagTransferPaster.TagPasteSupport.selection |
Constructor and Description |
---|
TagPasteSupport(PrimitiveTagTransferData data,
java.util.Collection<? extends IPrimitive> selection)
Constructs a new
TagPasteSupport . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
RelationListDialog.NoTooltipOsmRenderer.getComponentToolTipText(IPrimitive value) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<IPrimitive> |
UploadPrimitivesTask.processedPrimitives |
private java.util.Set<IPrimitive> |
UploadLayerTask.processedPrimitives |
Modifier and Type | Method and Description |
---|---|
void |
OsmDataLayer.cleanupAfterUpload(java.util.Collection<? extends IPrimitive> processed)
Clean out the data behind the layer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
LabelCompositionStrategy.compose(IPrimitive primitive)
Replies the text value to be rendered as label for the primitive
primitive . |
java.lang.String |
LabelCompositionStrategy.StaticLabelCompositionStrategy.compose(IPrimitive primitive) |
java.lang.String |
LabelCompositionStrategy.TagLookupCompositionStrategy.compose(IPrimitive primitive) |
java.lang.String |
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy.compose(IPrimitive primitive) |
private java.lang.String |
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy.getPrimitiveName(IPrimitive n) |
java.lang.String |
TextLabel.getString(IPrimitive osm)
Replies the label to be rendered for the primitive
osm . |
abstract void |
StyleElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member)
draws a primitive
|
void |
LineElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
BoxTextElement.paintPrimitive(IPrimitive osm,
MapPaintSettings settings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
AreaIconElement.paintPrimitive(IPrimitive osm,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
AreaElement.paintPrimitive(IPrimitive osm,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
RepeatImageElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
NodeElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings settings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
TextElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
Modifier and Type | Method and Description |
---|---|
TaggingPreset |
TaggingPresetNameTemplateList.findPresetTemplate(IPrimitive primitive)
Finds and returns the first occurence of preset with template name matching the given primitive
|
static TaggingPresetType |
TaggingPresetType.forPrimitive(IPrimitive p)
Determines the
TaggingPresetType of a given primitive. |
static java.util.Collection<TaggingPreset> |
TaggingPresets.getMatchingPresets(IPrimitive primitive)
Replies a new collection of all presets matching the given preset.
|
boolean |
TaggingPreset.test(IPrimitive p)
Determines whether this preset matches the given primitive, i.e.,
whether the
type matches and the tags match . |
Modifier and Type | Method and Description |
---|---|
protected void |
OsmWriter.addCommon(IPrimitive osm,
java.lang.String tagname)
Add the common part as the form of the tag as well as the XML attributes
id, action, user, and visible.
|
void |
OsmChangeBuilder.append(IPrimitive p)
Appends an Primitive to the OsmChange document.
|
void |
OsmApi.createPrimitive(IPrimitive osm,
ProgressMonitor monitor)
Creates an OSM primitive on the server.
|
private void |
OsmApi.individualPrimitiveModification(java.lang.String method,
java.lang.String verb,
IPrimitive osm,
ProgressMonitor monitor,
java.util.function.Consumer<java.lang.String> consumer,
java.util.function.Function<java.lang.String,java.lang.String> errHandler) |
void |
OsmApi.modifyPrimitive(IPrimitive osm,
ProgressMonitor monitor)
Modifies an OSM primitive on the server.
|
protected java.lang.String |
OsmApi.toXml(IPrimitive o,
boolean addBody)
Makes an XML string from an OSM primitive.
|
protected void |
OsmChangeBuilder.write(IPrimitive p) |
Modifier and Type | Method and Description |
---|---|
void |
OsmChangeBuilder.append(java.util.Collection<? extends IPrimitive> primitives)
Appends a collection of Primitives to the OsmChange document.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Double |
Geometry.computeArea(IPrimitive osm)
Computes the area of a closed way and multipolygon in square meters, or
null for other primitives |
double |
RotationAngle.getRotationAngle(IPrimitive p)
Calculates the rotation angle depending on the primitive to be displayed.
|
double |
RotationAngle.WayDirectionRotationAngle.getRotationAngle(IPrimitive p) |
double |
RotationAngle.StaticRotationAngle.getRotationAngle(IPrimitive p) |