Uses of Interface
org.openstreetmap.josm.data.osm.IPrimitive
-
Packages that use IPrimitive 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 withrelations
.org.openstreetmap.josm.actions.search Provides the classes for JOSMsearch 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 classesorg.openstreetmap.josm.data.osm.event Provides the classes for OSM dataset events.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.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.data.vector Provides classes for vector data like Mapbox Vector Tiles.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 elseorg.openstreetmap.josm.gui.dialogs.properties Toggle dialog allowing to display/edit tags and relation memberships of currently selected OSM objects.org.openstreetmap.josm.gui.dialogs.relation.sort Provides the classes for sorting relations.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. -
-
Uses of IPrimitive in org.openstreetmap.josm.actions
Methods in org.openstreetmap.josm.actions that return types with arguments of type IPrimitive Modifier and Type Method Description private static java.util.Set<? extends IPrimitive>
SelectSharedChildObjectsAction. getSharedChildren(java.util.Collection<? extends IPrimitive> selection)
Get the shared children for a selectionMethods in org.openstreetmap.josm.actions with parameters of type IPrimitive Modifier and Type Method Description java.awt.Component
PurgeAction.SelectionForcedPrimitiveRenderer. getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list, IPrimitive value, int index, boolean isSelected, boolean cellHasFocus)
Method parameters in org.openstreetmap.josm.actions with type arguments of type IPrimitive Modifier and Type Method Description java.awt.Component
PurgeAction.SelectionForcedPrimitiveRenderer. getListCellRendererComponent(javax.swing.JList<? extends IPrimitive> list, IPrimitive value, int index, boolean isSelected, boolean cellHasFocus)
private static java.util.Set<? extends IPrimitive>
SelectSharedChildObjectsAction. getSharedChildren(java.util.Collection<? extends IPrimitive> selection)
Get the shared children for a selectionvoid
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. -
Uses of IPrimitive in org.openstreetmap.josm.actions.relation
Fields in org.openstreetmap.josm.actions.relation with type parameters of type IPrimitive Modifier and Type Field Description private java.util.Collection<IPrimitive>
DownloadSelectedIncompleteMembersAction. incompleteMembers
Methods in org.openstreetmap.josm.actions.relation that return types with arguments of type IPrimitive Modifier and Type Method Description static java.util.Set<IPrimitive>
DownloadSelectedIncompleteMembersAction. buildSetOfIncompleteMembers(java.util.Collection<IRelation<?>> rels)
Returns the set of incomplete members of the given relations.Method parameters in org.openstreetmap.josm.actions.relation with type arguments of type IPrimitive Modifier and Type Method 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
AbstractRelationAction. setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
void
DownloadSelectedIncompleteMembersAction. setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
void
ExportRelationToGpxAction. setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
-
Uses of IPrimitive in org.openstreetmap.josm.actions.search
Fields in org.openstreetmap.josm.actions.search with type parameters of type IPrimitive Modifier and Type Field 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
Methods in org.openstreetmap.josm.actions.search that return types with arguments of type IPrimitive Modifier and Type Method Description static java.util.Collection<IPrimitive>
SearchAction. searchAndReturn(java.lang.String search, SearchMode mode)
Performs the search specified by the search stringsearch
and the search modemode
and returns the result of the search.Method parameters in org.openstreetmap.josm.actions.search with type arguments of type IPrimitive Modifier and Type Method Description void
SearchAction.CapturingSearchReceiver. receiveSearchResult(OsmData<?,?,?,?> ds, java.util.Collection<IPrimitive> result, int foundMatches, SearchSetting setting, java.awt.Component parent)
void
SearchAction.SearchReceiver. receiveSearchResult(OsmData<?,?,?,?> ds, java.util.Collection<IPrimitive> result, int foundMatches, SearchSetting setting, java.awt.Component parent)
Receive the search resultvoid
SearchAction.SelectSearchReceiver. receiveSearchResult(OsmData<?,?,?,?> ds, java.util.Collection<IPrimitive> result, int foundMatches, SearchSetting setting, java.awt.Component parent)
Constructor parameters in org.openstreetmap.josm.actions.search with type arguments of type IPrimitive Constructor 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)
-
Uses of IPrimitive in org.openstreetmap.josm.data
Method parameters in org.openstreetmap.josm.data with type arguments of type IPrimitive Modifier and Type Method Description void
APIDataSet. removeProcessed(java.util.Collection<IPrimitive> processed)
Removes the given primitives from thisAPIDataSet
-
Uses of IPrimitive in org.openstreetmap.josm.data.osm
Classes in org.openstreetmap.josm.data.osm with type parameters of type IPrimitive Modifier and Type Interface Description interface
IRelation<M extends IRelationMember<? extends IPrimitive>>
IRelation captures the common functions ofRelation
andRelationData
.interface
IRelationMember<P extends IPrimitive>
IRelationMember captures the common functions ofRelationMember
andRelationMemberData
.interface
OsmData<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>>
Abstraction ofDataSet
.Subinterfaces of IPrimitive in org.openstreetmap.josm.data.osm Modifier and Type Interface Description interface
INode
interface
IRelation<M extends IRelationMember<? extends IPrimitive>>
IRelation captures the common functions ofRelation
andRelationData
.interface
IWay<N extends INode>
Classes in org.openstreetmap.josm.data.osm that implement IPrimitive Modifier and Type Class 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 databaseclass
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 waynodes
.class
WayData
The data (tags and node ids) that is stored for a way in the database.Methods in org.openstreetmap.josm.data.osm with type parameters of type IPrimitive Modifier and Type Method Description private static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterMatcher. allParentWaysFiltered(T primitive, boolean hidden)
Check if all parent ways are filtered.static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterWorker. clearFilterFlags(java.util.Collection<T> prims)
Clear all filter flags, i.e. turn off filters.(package private) static <T extends IPrimitive>
java.util.Comparator<T>PrimitiveComparator. doComparingNames()
(package private) static <T extends IPrimitive>
java.util.Comparator<T>PrimitiveComparator. doComparingUniqueId()
private static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterWorker. doExecuteFilters(java.util.Collection<T> all, FilterMatcher filterMatcher)
(package private) static <T extends IPrimitive>
java.util.Comparator<T>PrimitiveComparator. doOrderingNodesWaysRelations()
(package private) static <T extends IPrimitive>
java.util.Comparator<T>PrimitiveComparator. doOrderingRelationsWaysNodes()
(package private) static <T extends IPrimitive>
java.util.Comparator<T>PrimitiveComparator. doOrderingWaysRelationsNodes()
static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterWorker. executeFilters(java.util.Collection<T> all, Filter... filters)
Apply the filters to the primitives of the data set.static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterWorker. executeFilters(java.util.Collection<T> all, FilterMatcher filterMatcher)
Apply the filters to the primitives of the data set.static <T extends IPrimitive & IFilterablePrimitive>
booleanFilterWorker. executeFilters(T primitive, FilterMatcher filterMatcher)
Apply the filters to a single primitive.<T extends IPrimitive & IFilterablePrimitive>
FilterMatcher.FilterTypeFilterMatcher. isDisabled(T primitive)
Check if primitive is disabled.<T extends IPrimitive & IFilterablePrimitive>
FilterMatcher.FilterTypeFilterMatcher. isHidden(T primitive)
Check if primitive is hidden.private static <T extends IPrimitive & IFilterablePrimitive>
FilterMatcher.FilterTypeFilterMatcher. test(java.util.List<FilterMatcher.FilterInfo> filters, T primitive, boolean hidden)
Methods in org.openstreetmap.josm.data.osm that return types with arguments of type IPrimitive Modifier and Type Method Description static java.util.Comparator<IPrimitive>
PrimitiveComparator. comparingNames()
Returns a comparator comparing primitives by their name usingDefaultNameFormatter
.static java.util.Comparator<IPrimitive>
PrimitiveComparator. comparingUniqueId()
Returns a comparator comparing primitives by their unique id.default java.util.List<? extends IPrimitive>
IRelation. findRelationMembers(java.lang.String role)
Returns a list of relation members having the specified role.default java.util.List<? extends IPrimitive>
IPrimitive. getChildren()
Get child primitives that are referred by this primitive.default java.util.List<? extends IPrimitive>
IRelation. getChildren()
default java.util.Collection<? extends IPrimitive>
IRelation. getIncompleteMembers()
Replies a collection with the incomplete children this relation refers to.java.util.Collection<? extends IPrimitive>
IOsmDataManager. getInProgressISelection()
Replies the current selected primitives, from a end-user point of view.java.util.Collection<? extends IPrimitive>
OsmDataManager. getInProgressISelection()
default java.util.List<? extends IPrimitive>
IRelation. getMemberPrimitivesList()
Returns an unmodifiable list of theOsmPrimitive
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, RELATIONstatic java.util.Comparator<IPrimitive>
PrimitiveComparator. orderingRelationsWaysNodes()
Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODEstatic java.util.Comparator<IPrimitive>
PrimitiveComparator. orderingWaysRelationsNodes()
Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODEMethods in org.openstreetmap.josm.data.osm with parameters of type IPrimitive Modifier and Type Method Description void
BBox. addPrimitive(IPrimitive primitive, double extraSpace)
Extends this bbox to include the bbox of the primitive extended by extraSpace.void
QuadBucketPrimitiveStore. addPrimitive(IPrimitive primitive)
Adds a primitive to this quad bucket storeprivate static boolean
FilterMatcher. allParentMultipolygonsFiltered(IPrimitive primitive, boolean hidden)
java.lang.String
DefaultNameFormatter. buildDefaultToolTip(IPrimitive primitive)
Builds a default tooltip text for the primitiveprimitive
.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 and version, if the preferencesosm-primitives.showid
andosm-primitives.showversion
are set.java.lang.String
DefaultNameFormatter. format(IPrimitive osm)
Formats a name for anIPrimitive
.private static java.lang.String
DefaultNameFormatter. formatLocalName(IPrimitive osm)
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.private static boolean
FilterMatcher. isFiltered(IPrimitive primitive, boolean hidden)
Check if primitive is filtered.private static boolean
FilterMatcher. oneParentMultipolygonNotFiltered(IPrimitive primitive, boolean hidden)
private static boolean
FilterMatcher. oneParentWayNotFiltered(IPrimitive primitive, boolean hidden)
protected void
QuadBucketPrimitiveStore. removePrimitive(IPrimitive primitive)
static void
IPrimitive. resetPrimitiveChildren(IPrimitive p)
Resets primitive children, if applicable.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type IPrimitive Modifier and Type Method 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. -
Uses of IPrimitive in org.openstreetmap.josm.data.osm.event
Classes in org.openstreetmap.josm.data.osm.event with type parameters of type IPrimitive Modifier and Type Interface Description interface
IDataSelectionEventSource<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
This interface indicates that the class can fireIDataSelectionListener
.interface
IDataSelectionListener<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
This interface is the same asDataSelectionListener
, except it isn'tOsmPrimitive
specific.static class
IDataSelectionListener.AbstractSelectionEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
The base class for selection eventsstatic class
IDataSelectionListener.SelectionAddEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
Primitives are added to the selectionstatic interface
IDataSelectionListener.SelectionChangeEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
The event that is fired when the selection changed.static class
IDataSelectionListener.SelectionRemoveEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
Primitives are removed from the selectionstatic class
IDataSelectionListener.SelectionReplaceEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
The selection is replaced by a new selectionstatic class
IDataSelectionListener.SelectionToggleEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
Toggle the selected state of a primitive -
Uses of IPrimitive in org.openstreetmap.josm.data.osm.visitor
Method parameters in org.openstreetmap.josm.data.osm.visitor with type arguments of type IPrimitive Modifier and Type Method Description void
BoundingXYVisitor. computeBoundingBox(java.util.Collection<? extends IPrimitive> primitives)
Compute the bounding box of a collection of primitives. -
Uses of IPrimitive in org.openstreetmap.josm.data.osm.visitor.paint
Fields in org.openstreetmap.josm.data.osm.visitor.paint declared as IPrimitive Modifier and Type Field Description private IPrimitive
StyledMapRenderer.StyleRecord. osm
Fields in org.openstreetmap.josm.data.osm.visitor.paint with type parameters of type IPrimitive Modifier and Type Field Description private java.util.List<? extends IPrimitive>
ComputeStyleListWorker. input
Methods in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type IPrimitive Modifier and Type Method 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.AffineTransform at)
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 primitiveprivate void
StyledMapRenderer. forEachPolygon(IPrimitive osm, java.util.function.Consumer<MapViewPath> consumer)
Calls a consumer for each path of the area shape-Constructors in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type IPrimitive Constructor Description StyleRecord(StyleElement style, IPrimitive osm, int flags)
Constructor parameters in org.openstreetmap.josm.data.osm.visitor.paint with type arguments of type IPrimitive Constructor Description ComputeStyleListWorker(double circum, NavigatableComponent nc, java.util.List<? extends IPrimitive> input, java.util.List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize)
Constructs a newComputeStyleListWorker
.ComputeStyleListWorker(double circum, NavigatableComponent nc, java.util.List<? extends IPrimitive> input, java.util.List<StyledMapRenderer.StyleRecord> output, int directExecutionTaskSize, ElemStyles styles)
Constructs a newComputeStyleListWorker
. -
Uses of IPrimitive in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests with type parameters of type IPrimitive Modifier and Type Field Description private static java.util.Map<IPrimitive,java.awt.geom.Area>
MapCSSTagChecker. mpAreaCache
private static java.util.Set<IPrimitive>
MapCSSTagChecker. toMatchForSurrounding
Methods in org.openstreetmap.josm.data.validation.tests with parameters of type IPrimitive Modifier and Type Method Description private static boolean
TagChecker. primitiveInRegions(IPrimitive primitive, java.util.Collection<java.lang.String> regions, boolean excludeRegions)
Check if a primitive is in the specified regions -
Uses of IPrimitive in org.openstreetmap.josm.data.vector
Classes in org.openstreetmap.josm.data.vector with type parameters of type IPrimitive Modifier and Type Class Description (package private) class
DataStore<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>>
A class that stores data (essentially a simpleDataSet
)Classes in org.openstreetmap.josm.data.vector that implement IPrimitive Modifier and Type Class Description class
VectorNode
The "Node" type of a vector layerclass
VectorPrimitive
The base class for Vector primitivesclass
VectorRelation
The "Relation" type for vectorsclass
VectorWay
The "Way" type for a Vector layerMethods in org.openstreetmap.josm.data.vector with type parameters of type IPrimitive Modifier and Type Method Description private <T extends IPrimitive>
java.util.stream.Stream<T>VectorPrimitive. referrers(boolean allowWithoutDataset, java.lang.Class<T> filter)
<T extends IPrimitive>
java.util.stream.Stream<T>VectorPrimitive. referrers(java.lang.Class<T> filter)
Gets all primitives in the current dataset that reference this primitive.Methods in org.openstreetmap.josm.data.vector with parameters of type IPrimitive Modifier and Type Method Description protected void
VectorPrimitive. addReferrer(IPrimitive referrer)
Add new referrer.void
DataStore.LocalQuadBucketPrimitiveStore. removePrimitive(IPrimitive primitive)
protected void
VectorPrimitive. removeReferrer(IPrimitive referrer)
Remove referrer.Method parameters in org.openstreetmap.josm.data.vector with type arguments of type IPrimitive Modifier and Type Method Description private void
VectorPrimitive. doVisitReferrers(java.util.function.Consumer<IPrimitive> visitor)
-
Uses of IPrimitive in org.openstreetmap.josm.gui
Fields in org.openstreetmap.josm.gui declared as IPrimitive Modifier and Type Field Description private IPrimitive
PrimitiveHoverListener.PrimitiveHoverEvent. hoveredPrimitive
The primitive that is being hovered over by the mouse pointer.private IPrimitive
NavigatableComponent. previousHoveredPrimitive
private IPrimitive
PrimitiveHoverListener.PrimitiveHoverEvent. previousPrimitive
Methods in org.openstreetmap.josm.gui that return IPrimitive Modifier and Type Method Description IPrimitive
PrimitiveHoverListener.PrimitiveHoverEvent. getHoveredPrimitive()
Get the primitive that is being hovered over with the mouse pointerIPrimitive
PrimitiveHoverListener.PrimitiveHoverEvent. getPreviousPrimitive()
Get the previously hovered primitiveMethods in org.openstreetmap.josm.gui with parameters of type IPrimitive Modifier and Type Method 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 OsmPrimitiveprivate 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.private void
NavigatableComponent. updateHoveredPrimitive(IPrimitive hovered, java.awt.event.MouseEvent e)
Method parameters in org.openstreetmap.josm.gui with type arguments of type IPrimitive Modifier and Type Method 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.Constructors in org.openstreetmap.josm.gui with parameters of type IPrimitive Constructor Description PrimitiveHoverEvent(IPrimitive hoveredPrimitive, IPrimitive previousPrimitive, java.awt.event.MouseEvent mouseEvent)
Construct a newPrimitiveHoverEvent
-
Uses of IPrimitive in org.openstreetmap.josm.gui.datatransfer.importers
Fields in org.openstreetmap.josm.gui.datatransfer.importers with type parameters of type IPrimitive Modifier and Type Field Description private java.util.Collection<? extends IPrimitive>
PrimitiveTagTransferPaster.TagPasteSupport. selection
Constructor parameters in org.openstreetmap.josm.gui.datatransfer.importers with type arguments of type IPrimitive Constructor Description TagPasteSupport(PrimitiveTagTransferData data, java.util.Collection<? extends IPrimitive> selection)
Constructs a newTagPasteSupport
. -
Uses of IPrimitive in org.openstreetmap.josm.gui.dialogs
Methods in org.openstreetmap.josm.gui.dialogs with parameters of type IPrimitive Modifier and Type Method 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)
Method parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type IPrimitive Modifier and Type Method Description protected static java.lang.String
InspectPrimitiveDialog. buildDataText(OsmData<?,?,?,?> data, java.util.List<IPrimitive> primitives)
protected static java.lang.String
InspectPrimitiveDialog. buildListOfEditorsText(java.util.Collection<? extends IPrimitive> primitives)
Constructor parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type IPrimitive Constructor Description InspectPrimitiveDialog(java.util.Collection<? extends IPrimitive> primitives, OsmData<?,?,?,?> data)
Constructs a newInspectPrimitiveDialog
. -
Uses of IPrimitive in org.openstreetmap.josm.gui.dialogs.properties
Fields in org.openstreetmap.josm.gui.dialogs.properties with type parameters of type IPrimitive Modifier and Type Field Description private java.util.Set<IPrimitive>
PropertiesDialog.MemberInfo. members
private java.util.Collection<? extends IPrimitive>
PropertiesDialog.MemberInfo. selection
Methods in org.openstreetmap.josm.gui.dialogs.properties with parameters of type IPrimitive Modifier and Type Method Description private void
PropertiesDialog. updateUi(IPrimitive primitive)
Method parameters in org.openstreetmap.josm.gui.dialogs.properties with type arguments of type IPrimitive Modifier and Type Method Description (package private) static SearchSetting
PropertiesDialog. createSearchSetting(java.lang.String key, java.util.Collection<? extends IPrimitive> sel, boolean sameType)
private void
PropertiesDialog. setupTaginfoNationalActions(java.util.Collection<? extends IPrimitive> newSel)
private void
PropertiesDialog. updateMembershipTableData(java.util.Collection<? extends IPrimitive> primitives)
private void
PropertiesDialog. updateTagTableData(java.util.Collection<? extends IPrimitive> primitives)
private void
PropertiesDialog. updateTagTableVisibility(java.util.Collection<? extends IPrimitive> primitives)
private void
PropertiesDialog. updateTitle(java.util.Collection<? extends IPrimitive> primitives)
private void
PropertiesDialog. updateUi(java.util.Collection<? extends IPrimitive> primitives)
Constructor parameters in org.openstreetmap.josm.gui.dialogs.properties with type arguments of type IPrimitive Constructor Description MemberInfo(java.util.Collection<? extends IPrimitive> selection)
-
Uses of IPrimitive in org.openstreetmap.josm.gui.dialogs.relation.sort
Classes in org.openstreetmap.josm.gui.dialogs.relation.sort with type parameters of type IPrimitive Modifier and Type Class Description class
RelationNodeMap<T extends IRelationMember<? extends IPrimitive>>
Auxiliary class for relation sorting.Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with type parameters of type IPrimitive Modifier and Type Method Description static <T extends IRelationMember<? extends IPrimitive>>
java.util.List<T>RelationSorter. sortMembersByConnectivity(java.util.List<T> defaultMembers)
Sorts a list of members by connectivity -
Uses of IPrimitive in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history that return IPrimitive Modifier and Type Method Description protected IPrimitive
HistoryViewerPanel.ZoomToObjectAction. getPrimitiveToZoom()
-
Uses of IPrimitive in org.openstreetmap.josm.gui.io
Fields in org.openstreetmap.josm.gui.io with type parameters of type IPrimitive Modifier and Type Field Description private java.util.Set<IPrimitive>
UploadLayerTask. processedPrimitives
private java.util.Set<IPrimitive>
UploadPrimitivesTask. processedPrimitives
Method parameters in org.openstreetmap.josm.gui.io with type arguments of type IPrimitive Modifier and Type Method Description (package private) void
UploadTextComponentValidator.UploadAreaValidator. computeArea(java.util.Collection<? extends IPrimitive> primitives)
-
Uses of IPrimitive in org.openstreetmap.josm.gui.layer
Methods in org.openstreetmap.josm.gui.layer with parameters of type IPrimitive Modifier and Type Method Description private void
OsmDataLayer. resetTiles(IPrimitive p)
Method parameters in org.openstreetmap.josm.gui.layer with type arguments of type IPrimitive Modifier and Type Method Description void
OsmDataLayer. cleanupAfterUpload(java.util.Collection<? extends IPrimitive> processed)
Clean out the data behind the layer.private void
OsmDataLayer. resetTiles(java.util.Collection<? extends IPrimitive> primitives)
-
Uses of IPrimitive in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint declared as IPrimitive Modifier and Type Field Description IPrimitive
Environment. child
The same for parent selector.IPrimitive
Environment. osm
The primitive that is currently evaluatedIPrimitive
Environment. parent
If not null, this is the matching parent object if a condition or an expression is evaluated in aSelector.LinkSelector
(within a child selector)Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type IPrimitive Modifier and Type Field Description java.util.Set<IPrimitive>
Environment. children
Set of matched children filled by ContainsFinder and CrossingFinder, null if nothing matchedjava.util.Map<IPrimitive,java.util.Map<java.util.List<Way>,java.util.List<WaySegment>>>
Environment. crossingWaysMap
Crossing ways result from CrossingFinder, filled for incomplete ways/relationsjava.util.Map<IPrimitive,java.awt.geom.Area>
Environment. intersections
Intersection areas (only filled with CrossingFinder if children is not null)java.util.Map<IPrimitive,java.awt.geom.Area>
Environment. mpAreaCache
Cache for multipolygon areas, can be null, used with CrossingFinderjava.util.Set<IPrimitive>
Environment. toMatchForSurrounding
Can be null, may contain primitives when surrounding objects of the primitives are testedMethods in org.openstreetmap.josm.gui.mappaint with parameters of type IPrimitive Modifier and Type Method 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-typeStyleElement
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 toCondition.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 toCondition.Context.LINK
.Environment
Environment. withPrimitive(IPrimitive osm)
Creates a clone of this environment, with the specified primitive.Constructors in org.openstreetmap.josm.gui.mappaint with parameters of type IPrimitive Constructor Description Environment(IPrimitive osm)
Creates a new environment.Environment(IPrimitive osm, MultiCascade mc, java.lang.String layer, StyleSource source)
Creates a new environment. -
Uses of IPrimitive in org.openstreetmap.josm.gui.mappaint.mapcss
Fields in org.openstreetmap.josm.gui.mappaint.mapcss with type parameters of type IPrimitive Modifier and Type Field Description protected java.util.List<IPrimitive>
Selector.ChildOrParentSelector.ContainsFinder. toCheck
Methods in org.openstreetmap.josm.gui.mappaint.mapcss that return types with arguments of type IPrimitive Modifier and Type Method Description static java.util.List<IPrimitive>
Functions. parent_osm_primitives(Environment env)
Gets a list of all OSM id's of the object's parent(s).static java.util.List<IPrimitive>
Functions. parent_osm_primitives(Environment env, java.lang.String key)
Gets a list of all OSM id's of the object's parent(s) with a specified key.static java.util.List<IPrimitive>
Functions. parent_osm_primitives(Environment env, java.lang.String key, java.lang.String keyValue)
Gets a list of all OSM id's of the object's parent(s) with a specified key.Methods in org.openstreetmap.josm.gui.mappaint.mapcss with parameters of type IPrimitive Modifier and Type Method Description protected void
Selector.ChildOrParentSelector.AbstractFinder. addToChildren(Environment e, IPrimitive p)
void
MapCSSStyleSource. apply(MultiCascade mc, IPrimitive osm, double scale, boolean pretendWayIsClosed)
private void
Selector.ChildOrParentSelector.MatchingReferrerFinder. doVisit(IPrimitive parent)
private java.util.Map<java.util.List<Way>,java.util.List<WaySegment>>
Selector.ChildOrParentSelector.CrossingFinder. findCrossings(IPrimitive area, java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments)
MapCSSRuleIndex
MapCSSStyleIndex. get(IPrimitive p)
Get the index of rules for the given primitive.private java.awt.geom.Area
Selector.ChildOrParentSelector.CrossingFinder. getAreaEastNorth(IPrimitive p, Environment e)
java.util.Iterator<MapCSSRule>
MapCSSRuleIndex. getRuleCandidates(IPrimitive osm)
Get a subset of all rules that might match the primitive.java.util.Iterator<MapCSSRule>
MapCSSStyleIndex. 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.GeneralSelector. matchesBase(IPrimitive p)
private void
Selector.ChildOrParentSelector.CrossingFinder. useFindCrossings(IPrimitive p)
private void
Selector.ChildOrParentSelector.CrossingFinder. visitArea(IPrimitive p)
Method parameters in org.openstreetmap.josm.gui.mappaint.mapcss with type arguments of type IPrimitive Modifier and Type Method Description void
Selector.ChildOrParentSelector.AbstractFinder. visit(java.util.Collection<? extends IPrimitive> primitives)
void
Selector.ChildOrParentSelector.ContainsFinder. visit(java.util.Collection<? extends IPrimitive> primitives)
void
Selector.ChildOrParentSelector.CrossingFinder. visit(java.util.Collection<? extends IPrimitive> primitives)
-
Uses of IPrimitive in org.openstreetmap.josm.gui.mappaint.styleelement
Methods in org.openstreetmap.josm.gui.mappaint.styleelement with parameters of type IPrimitive Modifier and Type Method Description java.lang.String
LabelCompositionStrategy. compose(IPrimitive primitive)
Replies the text value to be rendered as label for the primitiveprimitive
.java.lang.String
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy. compose(IPrimitive primitive)
java.lang.String
LabelCompositionStrategy.StaticLabelCompositionStrategy. compose(IPrimitive primitive)
java.lang.String
LabelCompositionStrategy.TagLookupCompositionStrategy. 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 primitiveosm
.void
AreaElement. paintPrimitive(IPrimitive osm, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member)
void
AreaIconElement. 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
LineElement. 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
RepeatImageElement. 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 primitivevoid
TextElement. paintPrimitive(IPrimitive primitive, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean outermember, boolean member)
-
Uses of IPrimitive in org.openstreetmap.josm.gui.tagging.presets
Methods in org.openstreetmap.josm.gui.tagging.presets with parameters of type IPrimitive Modifier and Type Method Description TaggingPreset
TaggingPresetNameTemplateList. findPresetTemplate(IPrimitive primitive)
Finds and returns the first occurrence of preset with template name matching the given primitivestatic TaggingPresetType
TaggingPresetType. forPrimitive(IPrimitive p)
Determines theTaggingPresetType
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 thetype matches
and thetags match
.boolean
TaggingPreset. typeMatches(IPrimitive primitive)
Determines whether this preset matches the OSM primitive type. -
Uses of IPrimitive in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io with parameters of type IPrimitive Modifier and Type Method 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)
Method parameters in org.openstreetmap.josm.io with type arguments of type IPrimitive Modifier and Type Method Description void
OsmChangeBuilder. append(java.util.Collection<? extends IPrimitive> primitives)
Appends a collection of Primitives to the OsmChange document. -
Uses of IPrimitive in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools that return types with arguments of type IPrimitive Modifier and Type Method Description static java.util.List<IPrimitive>
Geometry. filterInsideAnyPolygon(java.util.Collection<IPrimitive> primitives, IPrimitive polygon)
Find all primitives in the given collection which are inside the given polygon.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.Collection<IPrimitive> primitives, IWay<?> polygon)
Find all primitives in the given collection which are inside the given polygon.Methods in org.openstreetmap.josm.tools with parameters of type IPrimitive Modifier and Type Method Description static java.lang.Double
Geometry. computeArea(IPrimitive osm)
Computes the area of a closed way and multipolygon in square meters, ornull
for other primitivesstatic java.util.List<IPrimitive>
Geometry. filterInsideAnyPolygon(java.util.Collection<IPrimitive> primitives, IPrimitive polygon)
Find all primitives in the given collection which are inside the given polygon.static java.awt.geom.Area
Geometry. getAreaEastNorth(IPrimitive p)
Calculate area in east/north space for given primitive.double
RotationAngle. getRotationAngle(IPrimitive p)
Calculates the rotation angle depending on the primitive to be displayed.double
RotationAngle.StaticRotationAngle. getRotationAngle(IPrimitive p)
double
RotationAngle.WayDirectionRotationAngle. getRotationAngle(IPrimitive p)
Method parameters in org.openstreetmap.josm.tools with type arguments of type IPrimitive Modifier and Type Method Description static java.util.List<IPrimitive>
Geometry. filterInsideAnyPolygon(java.util.Collection<IPrimitive> primitives, IPrimitive polygon)
Find all primitives in the given collection which are inside the given polygon.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.Collection<IPrimitive> primitives, IWay<?> polygon)
Find all primitives in the given collection which are inside the given polygon.
-