Class SourceBounds
java.lang.Object
org.openstreetmap.josm.data.Bounds
org.openstreetmap.josm.data.sources.SourceBounds
- All Implemented Interfaces:
IBounds
- Direct Known Subclasses:
ImageryInfo.ImageryBounds
Multi-polygon bounds for source backgrounds.
Used to display source coverage in preferences and to determine relevant source entries based on edit location.
- Since:
- 16545 (extracted from
ImageryInfo.ImageryBounds)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.Bounds
Bounds.ParseMethod -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSourceBounds(String asString, String separator) Constructs a newSourceBoundsfrom string. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds a new shape to this bounds.booleanReturns the list of shapes defining this bounds.inthashCode()final voidSets the list of shapes defining this bounds.Methods inherited from class org.openstreetmap.josm.data.Bounds
asRect, contains, contains, crosses180thMeridian, encodeAsString, extend, extend, extend, getArea, getCenter, getHeight, getMax, getMaxLat, getMaxLon, getMin, getMinLat, getMinLon, getWidth, initLat, initLon, intersects, intersects, isCollapsed, isOutOfTheWorld, normalize, toBBox, toShortString, toString
-
Field Details
-
shapes
-
-
Constructor Details
-
SourceBounds
Constructs a newSourceBoundsfrom string.- Parameters:
asString- The string containing the list of shapes defining this boundsseparator- The shape separator in the given string, usually a comma
-
-
Method Details
-
addShape
Adds a new shape to this bounds.- Parameters:
shape- The shape to add
-
setShapes
Sets the list of shapes defining this bounds.- Parameters:
shapes- The list of shapes defining this bounds.
-
getShapes
Returns the list of shapes defining this bounds.- Returns:
- The list of shapes defining this bounds
-
hashCode
-
equals
-