类 ShapeUtil


  • public class ShapeUtil
    extends Object
    作者:
    wyq
    • 构造器详细资料

      • ShapeUtil

        public ShapeUtil()
    • 方法详细资料

      • createPointShapes

        public static List<PointShape> createPointShapes​(List<Number> x,
                                                         List<Number> y)
        Create point shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Point shapes
      • createPointShapes

        public static List<PointShape> createPointShapes​(Array x,
                                                         Array y)
        Create point shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Point shapes
      • createPointShapes

        public static List<PointZShape> createPointShapes​(Array x,
                                                          Array y,
                                                          Array z,
                                                          Array m)
        Create PointZ shapes
        参数:
        x - X coordinates
        y - Y coordinates
        z - Z coordinates
        m - M coordinates
        返回:
        PointZ shapes
      • createPolylineShapes

        public static List<PolylineShape> createPolylineShapes​(List<Number> x,
                                                               List<Number> y)
        Create polyline shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Polyline shapes
      • createPolylineShape

        public static PolylineShape createPolylineShape​(Array x,
                                                        Array y)
        Create a polyline shape
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Polyline shape
      • createPolylineShapes

        public static List<PolylineShape> createPolylineShapes​(Array x,
                                                               Array y)
        Create polyline shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Polyline shapes
      • createPolylineShapes

        public static List<PolylineZShape> createPolylineShapes​(Array x,
                                                                Array y,
                                                                Array z,
                                                                Array m)
        Create polylineZ shapes
        参数:
        x - X coordinates
        y - Y coordinates
        z - Z coordinates
        m - M coordinates
        返回:
        PolylineZ shapes
      • createPolygonShapes

        public static List<PolygonShape> createPolygonShapes​(List<Number> x,
                                                             List<Number> y)
        Create polygon shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Polygon shapes
      • createPolygonShapes

        public static List<PolygonShape> createPolygonShapes​(Array x,
                                                             Array y)
        Create polygon shapes
        参数:
        x - X coordinates
        y - Y coordinates
        返回:
        Polygon shapes
      • createPolygonShape

        public static PolygonShape createPolygonShape​(List<Number> x_p,
                                                      List<Number> y_p)
        Create polygon shape
        参数:
        x_p - X coordinate list
        y_p - Y coordinate list
        返回:
        Polygon shape
      • createPolygonShape

        public static PolygonShape createPolygonShape​(List<List<Number>> xy)
        Create polygon shape
        参数:
        xy - X/Y coordinates
        返回:
        Polygon shape
      • createPolygon

        public static PolygonShape createPolygon​(Array xa,
                                                 Array ya)
        Create a polygon
        参数:
        xa - X coordinate array
        ya - Y coordinate array
        返回:
        PolygonShape
      • createPolygonShape

        public static PolygonShape createPolygonShape​(Array xy)
        Create a polygon
        参数:
        xa - X coordinate array
        ya - Y coordinate array
        返回:
        PolygonShape
      • createCircleShape

        public static CircleShape createCircleShape​(float x,
                                                    float y,
                                                    float radius)
        Add a circle
        参数:
        x - Center x
        y - Center y
        radius -
        返回:
        Graphic