Class SVGWriter
java.lang.Object
org.locationtech.jtstest.util.io.SVGWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringstringOfChar(char ch, int count) Returns aStringof repeated characters.Converts aGeometryto its Well-known Text representation.voidConverts aGeometryto its Well-known Text representation.writeFormatted(Geometry geometry) Same aswrite, but with newlines and spaces to make the well-known text more readable.voidwriteFormatted(Geometry geometry, Writer writer) Same aswrite, but with newlines and spaces to make the well-known text more readable.
-
Constructor Details
-
SVGWriter
public SVGWriter()Creates a new SVGWriter with default settings
-
-
Method Details
-
stringOfChar
Returns aStringof repeated characters.- Parameters:
ch- the character to repeatcount- the number of times to repeat the character- Returns:
- a
Stringof characters
-
write
-
write
Converts aGeometryto its Well-known Text representation.- Parameters:
geometry- aGeometryto process- Throws:
IOException
-
writeFormatted
-
writeFormatted
Same aswrite, but with newlines and spaces to make the well-known text more readable.- Parameters:
geometry- aGeometryto process- Throws:
IOException
-