Package org.meteoinfo.shape
Class ShapeUtil
- java.lang.Object
-
- org.meteoinfo.shape.ShapeUtil
-
public class ShapeUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShapeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CircleShapecreateCircleShape(float x, float y, float radius)Add a circlestatic java.util.List<PointShape>createPointShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)Create point shapesstatic java.util.List<PointShape>createPointShapes(ucar.ma2.Array x, ucar.ma2.Array y)Create point shapesstatic java.util.List<PointZShape>createPointShapes(ucar.ma2.Array x, ucar.ma2.Array y, ucar.ma2.Array z, ucar.ma2.Array m)Create PointZ shapesstatic PolygonShapecreatePolygonShape(java.util.List<java.lang.Number> x_p, java.util.List<java.lang.Number> y_p)Create polygon shapestatic PolygonShapecreatePolygonShape(java.util.List<java.util.List<java.lang.Number>> xy)Create polygon shapestatic java.util.List<PolygonShape>createPolygonShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)Create polygon shapesstatic java.util.List<PolygonShape>createPolygonShapes(ucar.ma2.Array x, ucar.ma2.Array y)Create polygon shapesstatic java.util.List<PolylineShape>createPolylineShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)Create polyline shapesstatic java.util.List<PolylineShape>createPolylineShapes(ucar.ma2.Array x, ucar.ma2.Array y)Create polyline shapesstatic java.util.List<PolylineZShape>createPolylineShapes(ucar.ma2.Array x, ucar.ma2.Array y, ucar.ma2.Array z, ucar.ma2.Array m)Create polylineZ shapes
-
-
-
Method Detail
-
createPointShapes
public static java.util.List<PointShape> createPointShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)
Create point shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Point shapes
-
createPointShapes
public static java.util.List<PointShape> createPointShapes(ucar.ma2.Array x, ucar.ma2.Array y)
Create point shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Point shapes
-
createPointShapes
public static java.util.List<PointZShape> createPointShapes(ucar.ma2.Array x, ucar.ma2.Array y, ucar.ma2.Array z, ucar.ma2.Array m)
Create PointZ shapes- Parameters:
x- X coordinatesy- Y coordinatesz- Z coordinatesm- M coordinates- Returns:
- PointZ shapes
-
createPolylineShapes
public static java.util.List<PolylineShape> createPolylineShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)
Create polyline shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Polyline shapes
-
createPolylineShapes
public static java.util.List<PolylineShape> createPolylineShapes(ucar.ma2.Array x, ucar.ma2.Array y)
Create polyline shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Polyline shapes
-
createPolylineShapes
public static java.util.List<PolylineZShape> createPolylineShapes(ucar.ma2.Array x, ucar.ma2.Array y, ucar.ma2.Array z, ucar.ma2.Array m)
Create polylineZ shapes- Parameters:
x- X coordinatesy- Y coordinatesz- Z coordinatesm- M coordinates- Returns:
- PolylineZ shapes
-
createPolygonShapes
public static java.util.List<PolygonShape> createPolygonShapes(java.util.List<java.lang.Number> x, java.util.List<java.lang.Number> y)
Create polygon shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Polygon shapes
-
createPolygonShapes
public static java.util.List<PolygonShape> createPolygonShapes(ucar.ma2.Array x, ucar.ma2.Array y)
Create polygon shapes- Parameters:
x- X coordinatesy- Y coordinates- Returns:
- Polygon shapes
-
createPolygonShape
public static PolygonShape createPolygonShape(java.util.List<java.lang.Number> x_p, java.util.List<java.lang.Number> y_p)
Create polygon shape- Parameters:
x_p- X coordinate listy_p- Y coordinate list- Returns:
- Polygon shape
-
createPolygonShape
public static PolygonShape createPolygonShape(java.util.List<java.util.List<java.lang.Number>> xy)
Create polygon shape- Parameters:
xy- X/Y coordinates- Returns:
- Polygon shape
-
createCircleShape
public static CircleShape createCircleShape(float x, float y, float radius)
Add a circle- Parameters:
x- Center xy- Center yradius-- Returns:
- Graphic
-
-