Class GeometryPainter
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.render.GeometryPainter
-
public class GeometryPainter extends Object
-
-
Constructor Summary
Constructors Constructor Description GeometryPainter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShapeWriterBADgetConverter(Viewport viewport)static ShapeWritergetConverter(Viewport viewport)static voidpaint(Graphics2D g, Viewport viewport, Geometry geometry, Style style)static voidpaint(Geometry geometry, Viewport viewport, Graphics2D g, Color lineColor, Color fillColor)Paints a geometry onto a graphics context, using a given Viewport.static voidpaint(Geometry geometry, Viewport viewport, Graphics2D g, Color lineColor, Color fillColor, Stroke stroke)
-
-
-
Method Detail
-
paint
public static void paint(Graphics2D g, Viewport viewport, Geometry geometry, Style style) throws Exception
- Throws:
Exception
-
BADgetConverter
public static ShapeWriter BADgetConverter(Viewport viewport)
-
getConverter
public static ShapeWriter getConverter(Viewport viewport)
-
paint
public static void paint(Geometry geometry, Viewport viewport, Graphics2D g, Color lineColor, Color fillColor)
Paints a geometry onto a graphics context, using a given Viewport.- Parameters:
geometry- shape to paintviewport-g- the graphics contextlineColor- line color (null if none)fillColor- fill color (null if none)
-
-