Class ShapePoints


  • public class ShapePoints
    extends Object
    Specifies a list of points representing a shape.
    Author:
    Marco Orlandin (dejawho2@users.sourceforge.net)
    • Constructor Detail

      • ShapePoints

        public ShapePoints()
    • Method Detail

      • setPoints

        public void setPoints​(List<Point> points)
      • decode

        public static ShapePoints decode​(String encodedShapePoints)
        Build a ShapePoints from its JSON string.
        Parameters:
        encodedShapePoints - the JSON string of the class
        Returns:
        a ShapePoints or null if the JSON is invalid
      • encode

        public String encode()
        Create a JSON string from a ShapePoints.
        Returns:
        its JSON string or null if the parameter is null