Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.relation |
Provides the classes for JOSM actions that work with
relations . |
org.openstreetmap.josm.actions.search |
Provides the classes for JOSM
search action . |
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 |
Provides the classes for performing actions on OSM primitives using Visitor design pattern.
|
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.dialogs.properties |
Toggle dialog allowing to display/edit tags and relation memberships of currently selected OSM objects.
|
org.openstreetmap.josm.gui.history |
Provides GUI classes for handling history of OSM objects.
|
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 |
Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time. |
org.openstreetmap.josm.gui.mappaint.mapcss |
Drawing system based on MapCSS map styles.
|
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) |
void |
IPrimitiveAction.setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
Specifies the working set of primitives.
|
static void |
AutoScaleAction.zoomTo(java.util.Collection<? extends IPrimitive> sel)
Zooms the view to display the given set of primitives.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<IPrimitive> |
DownloadSelectedIncompleteMembersAction.incompleteMembers |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<IPrimitive> |
DownloadSelectedIncompleteMembersAction.buildSetOfIncompleteMembers(java.util.Collection<IRelation<?>> rels)
Returns the set of incomplete members of the given relations.
|
Modifier and Type | Method and Description |
---|---|
protected static java.util.Collection<IRelation<?>> |
AbstractRelationAction.getRelations(java.util.Collection<? extends IPrimitive> primitives)
Returns the relations contained in the given collection.
|
private void |
AddSelectionToRelations.selectionChanged(java.util.Collection<? extends IPrimitive> newSelection) |
void |
DownloadSelectedIncompleteMembersAction.setPrimitives(java.util.Collection<? extends IPrimitive> primitives) |
void |
ExportRelationToGpxAction.setPrimitives(java.util.Collection<? extends IPrimitive> primitives) |
void |
DownloadMembersAction.setPrimitives(java.util.Collection<? extends IPrimitive> primitives) |
void |
AbstractRelationAction.setPrimitives(java.util.Collection<? extends IPrimitive> primitives) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<IPrimitive> |
SearchAction.SearchTask.predicate |
private java.util.Collection<IPrimitive> |
SearchAction.CapturingSearchReceiver.result |
private java.util.Collection<IPrimitive> |
SearchAction.SearchTask.selection |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<IPrimitive> |
SearchAction.searchAndReturn(java.lang.String search,
SearchMode mode)
Performs the search specified by the search string
search and the search mode mode and returns the result of the search. |
Modifier and Type | Method and Description |
---|---|
void |
SearchAction.SearchReceiver.receiveSearchResult(OsmData<?,?,?,?> ds,
java.util.Collection<IPrimitive> result,
int foundMatches,
SearchSetting setting,
java.awt.Component parent)
Receive the search result
|
void |
SearchAction.SelectSearchReceiver.receiveSearchResult(OsmData<?,?,?,?> ds,
java.util.Collection<IPrimitive> result,
int foundMatches,
SearchSetting setting,
java.awt.Component parent) |
void |
SearchAction.CapturingSearchReceiver.receiveSearchResult(OsmData<?,?,?,?> ds,
java.util.Collection<IPrimitive> result,
int foundMatches,
SearchSetting setting,
java.awt.Component parent) |
Constructor and Description |
---|
SearchTask(OsmData<?,?,?,?> ds,
SearchSetting setting,
java.util.Collection<IPrimitive> selection,
java.util.function.Predicate<IPrimitive> predicate,
SearchAction.SearchReceiver resultReceiver) |
SearchTask(OsmData<?,?,?,?> ds,
SearchSetting setting,
java.util.Collection<IPrimitive> selection,
java.util.function.Predicate<IPrimitive> predicate,
SearchAction.SearchReceiver resultReceiver) |
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 |
IRelationMember<P extends IPrimitive>
IRelationMember captures the common functions of
RelationMember and RelationMemberData . |
interface |
OsmData<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>>
Abstraction of
DataSet . |
class |
QuadBuckets<T extends IPrimitive>
Note: bbox of primitives added to QuadBuckets has to stay the same.
|
(package private) static class |
QuadBuckets.QBLevel<T extends IPrimitive> |
Modifier and Type | Interface and Description |
---|---|
interface |
INode
|
interface |
IRelation<M extends IRelationMember<?>>
IRelation captures the common functions of
Relation and RelationData . |
interface |
IWay<N extends INode>
|
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 |
---|---|
(package private) static <T extends IPrimitive> |
PrimitiveComparator.doComparingNames() |
(package private) static <T extends IPrimitive> |
PrimitiveComparator.doComparingUniqueId() |
(package private) static <T extends IPrimitive> |
PrimitiveComparator.doOrderingNodesWaysRelations() |
(package private) static <T extends IPrimitive> |
PrimitiveComparator.doOrderingRelationsWaysNodes() |
(package private) static <T extends IPrimitive> |
PrimitiveComparator.doOrderingWaysRelationsNodes() |
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<IPrimitive> |
PrimitiveComparator.comparingNames()
Returns a comparator comparing primitives by their name using
DefaultNameFormatter . |
static java.util.Comparator<IPrimitive> |
PrimitiveComparator.comparingUniqueId()
Returns a comparator comparing primitives by their unique id.
|
default java.util.Collection<? extends IPrimitive> |
IRelation.getIncompleteMembers()
Replies a collection with the incomplete children this relation refers to.
|
java.util.Collection<? extends IPrimitive> |
OsmDataManager.getInProgressISelection() |
java.util.Collection<? extends IPrimitive> |
IOsmDataManager.getInProgressISelection()
Replies the current selected primitives, from a end-user point of view.
|
default java.util.List<? extends IPrimitive> |
IRelation.getMemberPrimitivesList()
Returns an unmodifiable list of the
OsmPrimitive s referred to by at least one member of this relation. |
default java.util.List<? extends IPrimitive> |
IPrimitive.getReferrers()
Gets a list of all primitives in the current dataset that reference this primitive.
|
java.util.List<? extends IPrimitive> |
IPrimitive.getReferrers(boolean allowWithoutDataset)
Find primitives that reference this primitive.
|
static java.util.Comparator<IPrimitive> |
PrimitiveComparator.orderingNodesWaysRelations()
Returns a comparator ordering the primitives by type in the order NODE, WAY, RELATION
|
static java.util.Comparator<IPrimitive> |
PrimitiveComparator.orderingRelationsWaysNodes()
Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODE
|
static java.util.Comparator<IPrimitive> |
PrimitiveComparator.orderingWaysRelationsNodes()
Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODE
|
Modifier and Type | Method and Description |
---|---|
void |
QuadBucketPrimitiveStore.addPrimitive(IPrimitive primitive)
Adds a primitive to this quad bucket store
|
java.lang.String |
DefaultNameFormatter.buildDefaultToolTip(IPrimitive primitive)
Builds a default tooltip text for the primitive
primitive . |
default int |
IRelation.compareTo(IPrimitive o) |
default int |
IWay.compareTo(IPrimitive o) |
default int |
INode.compareTo(IPrimitive o) |
protected void |
DefaultNameFormatter.decorateNameWithId(java.lang.StringBuilder name,
IPrimitive primitive)
Decorates the name of primitive with its id and version, if the preferences
osm-primitives.showid and osm-primitives.showversion are 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).
|
default boolean |
IPrimitive.hasSameInterestingTags(IPrimitive other)
Replies true if other isn't null and has the same interesting tags (key/value-pairs) as this.
|
protected void |
QuadBucketPrimitiveStore.removePrimitive(IPrimitive primitive) |
Modifier and Type | Method and Description |
---|---|
static boolean |
OsmUtils.isOsmCollectionEditable(java.util.Collection<? extends IPrimitive> collection)
Determines if the given collection contains primitives, and that none of them belong to a locked layer.
|
Modifier and Type | Method and Description |
---|---|
void |
BoundingXYVisitor.computeBoundingBox(java.util.Collection<? extends IPrimitive> primitives)
Compute the bounding box of a collection of primitives.
|
Modifier and Type | Field and Description |
---|---|
private IPrimitive |
StyledMapRenderer.StyleRecord.osm |
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends IPrimitive> |
ComputeStyleListWorker.input |
Modifier and Type | Method and Description |
---|---|
private void |
ComputeStyleListWorker.acceptDrawable(IPrimitive osm) |
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-
|
Constructor and Description |
---|
StyleRecord(StyleElement style,
IPrimitive osm,
int flags) |
Constructor and Description |
---|
ComputeStyleListWorker(double circum,
NavigatableComponent nc,
java.util.List<? extends IPrimitive> input,
java.util.List<StyledMapRenderer.StyleRecord> output,
int directExecutionTaskSize)
Constructs a new
ComputeStyleListWorker . |
ComputeStyleListWorker(double circum,
NavigatableComponent nc,
java.util.List<? extends IPrimitive> input,
java.util.List<StyledMapRenderer.StyleRecord> output,
int directExecutionTaskSize,
ElemStyles styles)
Constructs a new
ComputeStyleListWorker . |
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 void |
MapStatus.Collector.popupSetLabelColors(javax.swing.JLabel lbl,
IPrimitive osm)
Sets the colors for the given label depending on the selected status of
the given OsmPrimitive
|
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.
|
void |
PopupMenuHandler.setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
Specifies the working set of primitives for all primitive actions.
|
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 | Field and Description |
---|---|
protected java.util.List<IPrimitive> |
InspectPrimitiveDialog.primitives |
Modifier and Type | Method and Description |
---|---|
(package private) void |
InspectPrimitiveDataText.addAttributes(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addBbox(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addCommon(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addHeadline(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addNameAndId(IPrimitive o) |
void |
InspectPrimitiveDataText.addPrimitive(IPrimitive o)
Adds a new OSM primitive.
|
(package private) void |
InspectPrimitiveDataText.addReferrers(java.lang.StringBuilder s,
IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addSpecial(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addState(IPrimitive o) |
(package private) void |
InspectPrimitiveDataText.addType(IPrimitive o) |
protected java.lang.String |
RelationListDialog.NoTooltipOsmRenderer.getComponentToolTipText(IPrimitive value) |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
InspectPrimitiveDialog.buildDataText(OsmData<?,?,?,?> data,
java.util.List<IPrimitive> primitives) |
protected static java.lang.String |
InspectPrimitiveDialog.buildListOfEditorsText(java.lang.Iterable<? extends IPrimitive> primitives) |
Constructor and Description |
---|
InspectPrimitiveDialog(java.util.Collection<? extends IPrimitive> primitives,
OsmData<?,?,?,?> data)
Constructs a new
InspectPrimitiveDialog . |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<IPrimitive> |
PropertiesDialog.MemberInfo.members |
private java.util.Collection<? extends IPrimitive> |
PropertiesDialog.MemberInfo.selection |
Modifier and Type | Method and Description |
---|---|
(package private) static SearchSetting |
PropertiesDialog.createSearchSetting(java.lang.String key,
java.util.Collection<? extends IPrimitive> sel,
boolean sameType) |
Constructor and Description |
---|
MemberInfo(java.util.Collection<? extends IPrimitive> selection) |
Modifier and Type | Method and Description |
---|---|
protected IPrimitive |
NodeListViewer.ZoomToNodeAction.getPrimitiveToZoom() |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<IPrimitive> |
UploadLayerTask.processedPrimitives |
private java.util.Set<IPrimitive> |
UploadPrimitivesTask.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 | Field and Description |
---|---|
IPrimitive |
Environment.child
The same for parent selector.
|
IPrimitive |
Environment.osm
The primitive that is currently evaluated
|
IPrimitive |
Environment.parent
If not null, this is the matching parent object if a condition or an expression
is evaluated in a
Selector.LinkSelector (within a child selector) |
Modifier and Type | Field and Description |
---|---|
java.util.Set<IPrimitive> |
Environment.children
Set of matched children filled by ContainsFinder and CrossingFinder, null if nothing matched
|
Modifier and Type | Method and Description |
---|---|
abstract void |
StyleSource.apply(MultiCascade mc,
IPrimitive osm,
double scale,
boolean pretendWayIsClosed)
Apply style to osm primitive.
|
Pair<StyleElementList,Range> |
ElemStyles.generateStyles(IPrimitive osm,
double scale,
boolean pretendWayIsClosed)
Create the list of styles and its valid scale range for one primitive.
|
StyleElementList |
ElemStyles.get(IPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles for one primitive.
|
static AreaElement |
ElemStyles.getAreaElemStyle(IPrimitive p,
boolean pretendWayIsClosed)
Returns the first AreaElement for a given primitive.
|
private Pair<StyleElementList,Range> |
ElemStyles.getImpl(IPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles and its valid scale range for one primitive.
|
Pair<StyleElementList,Range> |
ElemStyles.getStyleCacheWithRange(IPrimitive osm,
double scale,
NavigatableComponent nc)
Create the list of styles and its valid scale range for one primitive.
|
static boolean |
ElemStyles.hasAreaElemStyle(IPrimitive p,
boolean pretendWayIsClosed)
Determines whether primitive has an AreaElement.
|
static boolean |
ElemStyles.hasOnlyAreaElements(IPrimitive p)
Determines whether primitive has area-type
StyleElement s, but
no line-type StyleElements. |
Environment |
Environment.withChild(IPrimitive child)
Creates a clone of this environment, with the specified child.
|
Environment |
Environment.withChildAndIndexAndLinkContext(IPrimitive child,
int index,
int count)
Creates a clone of this environment, with the specified child, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withParent(IPrimitive parent)
Creates a clone of this environment, with the specified parent.
|
Environment |
Environment.withParentAndIndexAndLinkContext(IPrimitive parent,
int index,
int count)
Creates a clone of this environment, with the specified parent, index, and context set to
Condition.Context.LINK . |
Environment |
Environment.withPrimitive(IPrimitive osm)
Creates a clone of this environment, with the specified primitive.
|
Constructor and Description |
---|
Environment(IPrimitive osm)
Creates a new environment.
|
Environment(IPrimitive osm,
MultiCascade mc,
java.lang.String layer,
StyleSource source)
Creates a new environment.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<IPrimitive> |
Selector.ChildOrParentSelector.ContainsFinder.toCheck |
Modifier and Type | Method and Description |
---|---|
private <T extends IPrimitive> |
Selector.ChildOrParentSelector.MatchingReferrerFinder.doVisit(T parent,
java.util.function.IntSupplier counter,
java.util.function.IntFunction<IPrimitive> getter) |
Modifier and Type | Method and Description |
---|---|
protected void |
Selector.ChildOrParentSelector.AbstractFinder.addToChildren(Environment e,
IPrimitive p) |
void |
MapCSSStyleSource.apply(MultiCascade mc,
IPrimitive osm,
double scale,
boolean pretendWayIsClosed) |
java.util.Iterator<MapCSSRule> |
MapCSSStyleSource.MapCSSRuleIndex.getRuleCandidates(IPrimitive osm)
Get a subset of all rules that might match the primitive.
|
private static boolean |
Selector.ChildOrParentSelector.isArea(IPrimitive p) |
boolean |
Selector.ChildOrParentSelector.AbstractFinder.isPrimitiveUsable(IPrimitive p) |
boolean |
Selector.OptimizedGeneralSelector.matchesBase(IPrimitive p) |
Modifier and Type | Method and Description |
---|---|
private <T extends IPrimitive> |
Selector.ChildOrParentSelector.MatchingReferrerFinder.doVisit(T parent,
java.util.function.IntSupplier counter,
java.util.function.IntFunction<IPrimitive> getter) |
void |
Selector.ChildOrParentSelector.AbstractFinder.visit(java.util.Collection<? extends IPrimitive> primitives) |
void |
Selector.ChildOrParentSelector.ContainsFinder.visit(java.util.Collection<? extends IPrimitive> primitives) |
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 . |
void |
AreaIconElement.paintPrimitive(IPrimitive osm,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
void |
TextElement.paintPrimitive(IPrimitive primitive,
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 |
BoxTextElement.paintPrimitive(IPrimitive osm,
MapPaintSettings settings,
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 |
LineElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member) |
abstract void |
StyleElement.paintPrimitive(IPrimitive primitive,
MapPaintSettings paintSettings,
StyledMapRenderer painter,
boolean selected,
boolean outermember,
boolean member)
draws a primitive
|
Modifier and Type | Method and Description |
---|---|
TaggingPreset |
TaggingPresetNameTemplateList.findPresetTemplate(IPrimitive primitive)
Finds and returns the first occurrence 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.UnaryOperator<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.util.List<IPrimitive> |
Geometry.filterInsideMultipolygon(java.util.Collection<IPrimitive> primitives,
Relation multiPolygon)
Find all primitives in the given collection which are inside the given multipolygon.
|
static java.util.List<IPrimitive> |
Geometry.filterInsidePolygon(java.util.List<IPrimitive> primitives,
IWay<?> polygon)
Find all primitives in the given collection which are inside the given polygon.
|
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) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<IPrimitive> |
Geometry.filterInsideMultipolygon(java.util.Collection<IPrimitive> primitives,
Relation multiPolygon)
Find all primitives in the given collection which are inside the given multipolygon.
|
static java.util.List<IPrimitive> |
Geometry.filterInsidePolygon(java.util.List<IPrimitive> primitives,
IWay<?> polygon)
Find all primitives in the given collection which are inside the given polygon.
|