public final class GMLTools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<Point2D> |
coordinatesAsPoints(java.util.List<GMLCoordinates> coords)
Convert a list of GMLCoordinates to Point2D objects.
|
static java.awt.Shape |
coordsToShape(java.util.List<GMLCoordinates> coords)
Turn a list of coordinates into a shape.
|
static java.awt.geom.Rectangle2D |
getBounds(java.util.List<GMLCoordinates> coords)
Get the bounds of a set of coordinates.
|
static java.util.List<GMLCoordinates> |
getCoordinatesList(java.lang.String coords)
Turn a coordinates string into a list of GMLCoordinates.
|
static java.lang.String |
getCoordinatesString(java.util.List<GMLCoordinates> coords)
Turn a list of coordinates into a string suitable for putting into an XML document.
|
static java.awt.geom.Rectangle2D |
getObjectBounds(java.util.List<? extends GMLObject> objects)
Get the bounds of a set of gml objects.
|
static Line2D |
toLine(GMLEdge edge)
Turn a GMLEdge into a Line2D.
|
static Point2D |
toPoint(GMLNode node)
Turn a GMLNode into a Point2D.
|
public static java.lang.String getCoordinatesString(java.util.List<GMLCoordinates> coords)
coords
- The coordinate list.public static java.util.List<GMLCoordinates> getCoordinatesList(java.lang.String coords)
coords
- The coordinates string.public static java.util.List<Point2D> coordinatesAsPoints(java.util.List<GMLCoordinates> coords)
coords
- The GMLCoordinates to convert.public static java.awt.geom.Rectangle2D getBounds(java.util.List<GMLCoordinates> coords)
coords
- The coordinate list.public static java.awt.geom.Rectangle2D getObjectBounds(java.util.List<? extends GMLObject> objects)
objects
- The object list.public static java.awt.Shape coordsToShape(java.util.List<GMLCoordinates> coords)
coords
- The coordinates.public static Point2D toPoint(GMLNode node)
node
- The node to convert.