package org.opentrafficsim.draw.road; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics2D; import java.awt.image.ImageObserver; import java.io.Serializable; import java.rmi.RemoteException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.naming.NamingException; import org.djutils.draw.line.PolyLine2d; import org.djutils.draw.line.PolyLine3d; import org.djutils.draw.line.Polygon3d; import org.djutils.draw.point.Point3d; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.CoordinateSequence; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.geom.GeometryFactory; import org.locationtech.jts.geom.LineString; import org.locationtech.jts.linearref.LengthIndexedLine; import org.locationtech.jts.operation.buffer.BufferParameters; import org.opentrafficsim.draw.core.ClonableRenderable2DInterface; import org.opentrafficsim.draw.core.PaintPolygons; import org.opentrafficsim.road.network.lane.Stripe; import nl.tudelft.simulation.dsol.animation.D2.Renderable2D; import nl.tudelft.simulation.dsol.simulators.SimulatorInterface; /** * Draw road stripes. *
* Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
* All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*/
public enum TYPE
{
/** Single solid line. */
SOLID,
/** Line |¦ allow to go to left, but not to right. */
LEFTONLY,
/** Line ¦| allow to go to right, but not to left. */
RIGHTONLY,
/** Dashes ¦ allow to cross in both directions. */
DASHED,
/** Double solid line ||, don't cross. */
DOUBLE,
/** Block : allow to cross in both directions. */
BLOCK
}
/** {@inheritDoc} */
@Override
public ClonableRenderable2DInterface