Class ShapeUtil



  • public class ShapeUtil
    extends java.lang.Object
    • Constructor Detail

      • ShapeUtil

        public ShapeUtil​()
    • 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 coordinates
        y - 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 coordinates
        y - 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 coordinates
        y - Y coordinates
        z - Z coordinates
        m - 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 coordinates
        y - 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 coordinates
        y - 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 coordinates
        y - Y coordinates
        z - Z coordinates
        m - 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 coordinates
        y - 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 coordinates
        y - 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 list
        y_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 x
        y - Center y
        radius -
        Returns:
        Graphic