Package org.opentrafficsim.draw.core
Class PaintPolygons
- java.lang.Object
-
- org.opentrafficsim.draw.core.PaintPolygons
-
public final class PaintPolygons extends Object
Paint a (series of) filled polygon(s) defined as a Path2D.DoubleCopyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2018-10-10 23:23:48 +0200 (Wed, 10 Oct 2018) $, @version $Revision: 4693 $, by $Author: averbraeck $, initial version 10 apr. 2015
BSD-style license. See OpenTrafficSim License.- Author:
- Peter Knoppers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidpaintMultiPolygon(Graphics2D graphics, Color color, OrientedPoint3d referencePoint, List<Polygon3d> polygons, boolean fill)Paint (fill) a series of polygons.static voidpaintPolygon(Graphics2D graphics, Color color, OrientedPoint3d referencePoint, Polygon3d polygon, boolean fill)Paint (fill) one polygon.
-
-
-
Method Detail
-
paintMultiPolygon
public static void paintMultiPolygon(Graphics2D graphics, Color color, OrientedPoint3d referencePoint, List<Polygon3d> polygons, boolean fill)
Paint (fill) a series of polygons.- Parameters:
graphics- Graphics2D; the graphics environmentcolor- Color; the color to usereferencePoint- OrientedPoint3d; the reference pointpolygons- List<Polygon3d>; list of polygonsfill- boolean; fill or just contour
-
paintPolygon
public static void paintPolygon(Graphics2D graphics, Color color, OrientedPoint3d referencePoint, Polygon3d polygon, boolean fill)
Paint (fill) one polygon.- Parameters:
graphics- Graphics2D; the graphics environmentcolor- Color; the color to usereferencePoint- OrientedPoint3d; the reference pointpolygon- Polygon3d; one plygonfill- boolean; fill or just contour
-
-