Class ShapePoints
- java.lang.Object
-
- net.sf.jasperreports.customizers.shape.ShapePoints
-
public class ShapePoints extends Object
Specifies a list of points representing a shape.- Author:
- Marco Orlandin (dejawho2@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description ShapePoints()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShapePointsdecode(String encodedShapePoints)Build aShapePointsfrom its JSON string.Stringencode()Create a JSON string from aShapePoints.List<Point>getPoints()voidsetPoints(List<Point> points)
-
-
-
Method Detail
-
decode
public static ShapePoints decode(String encodedShapePoints)
Build aShapePointsfrom its JSON string.- Parameters:
encodedShapePoints- the JSON string of the class- Returns:
- a
ShapePointsor null if the JSON is invalid
-
encode
public String encode()
Create a JSON string from aShapePoints.- Returns:
- its JSON string or null if the parameter is null
-
-