Class HexagonDrawable
java.lang.Object
org.oscim.layers.vector.geometries.JtsDrawable
org.oscim.layers.vector.geometries.HexagonDrawable
- All Implemented Interfaces:
Drawable
Predefined class for drawing hexagons on the map.
-
Field Summary
Fields inherited from class org.oscim.layers.vector.geometries.JtsDrawable
coordFactory, geometry, geomFactory, priority, style -
Constructor Summary
ConstructorsConstructorDescriptionHexagonDrawable(org.oscim.core.GeoPoint center, double radiusKm) HexagonDrawable(org.oscim.core.GeoPoint center, double radiusKm, double rotationRad, Style style) -
Method Summary
Methods inherited from class org.oscim.layers.vector.geometries.JtsDrawable
getGeometry, getPriority, getStyle, loadPoints, setPriority, setStyle
-
Constructor Details
-
HexagonDrawable
public HexagonDrawable(org.oscim.core.GeoPoint center, double radiusKm) - Parameters:
center- GeoPoint - center of the hexagonradiusKm- Radius of the hexagon in kilometers. The size of the hexagon may be distorted due to the Mercator projections properties.
-
HexagonDrawable
public HexagonDrawable(org.oscim.core.GeoPoint center, double radiusKm, double rotationRad, Style style) - Parameters:
center- GeoPoint - center of the hexagonradiusKm- Radius of the hexagon in kilometers. The size of the hexagon may be distorted due to the Mercator projections properties.rotationRad- rotation of the hexagon in radiansstyle-
-