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 ShapePoints
decode(String encodedShapePoints)
Build aShapePoints
from its JSON string.String
encode()
Create a JSON string from aShapePoints
.List<Point>
getPoints()
void
setPoints(List<Point> points)
-
-
-
Method Detail
-
decode
public static ShapePoints decode(String encodedShapePoints)
Build aShapePoints
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 aShapePoints
.- Returns:
- its JSON string or null if the parameter is null
-
-