public final class PaintPolygons extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, @version $Revision: 4006 $, by $Author: averbraeck $,
initial version 10 apr. 2015
| Modifier and Type | Field and Description |
|---|---|
static OTSPoint3D |
NEWPATH
Dummy coordinate that forces the drawing operation to start a new path.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
paintMultiPolygon(Graphics2D graphics,
Color color,
nl.tudelft.simulation.language.d3.DirectedPoint referencePoint,
OTSLine3D line,
boolean fill)
Paint (fill) a polygon or a series of polygons.
|
public static final OTSPoint3D NEWPATH
public static void paintMultiPolygon(Graphics2D graphics, Color color, nl.tudelft.simulation.language.d3.DirectedPoint referencePoint, OTSLine3D line, boolean fill)
graphics - Graphics2D; the graphics environmentcolor - Color; the color to usereferencePoint - DirectedPoint; the reference pointline - array of pointsfill - fill or just contourCopyright © 2014–2018 Delft University of Technology. All rights reserved.