Class RoadPolylineDrawer

    • Field Detail

      • ROAD_COLOR

        public static final int ROAD_COLOR
        Default color for roads' interior.
      • SELECTED_ROAD_COLOR

        public static final int SELECTED_ROAD_COLOR
        Default color for selected roads' interior.
    • Constructor Detail

      • RoadPolylineDrawer

        public RoadPolylineDrawer()
    • Method Detail

      • getPrimitiveType

        @Pure
        public Class<? extends RoadPolyline> getPrimitiveType()
        Description copied from interface: Drawer
        Replies the type of the primitives that could be drawn by this drawer.
        Returns:
        the type of the primitives.
      • draw

        public void draw​(ZoomableGraphicsContext gc,
                         RoadPolyline element)
        Description copied from interface: Drawer
        Draw the given document primitives.
        Parameters:
        gc - the graphics context that must be used for drawing.
        element - the primitive to draw.
      • setupRoadBorders

        protected void setupRoadBorders​(ZoomableGraphicsContext gc,
                                        RoadPolyline element)
        Setup for drawing the road borders.
        Parameters:
        gc - the graphics context.
        element - the element to draw.
      • setupRoadInterior

        protected void setupRoadInterior​(ZoomableGraphicsContext gc,
                                         RoadPolyline element)
        Setup for drawing the road interior.
        Parameters:
        gc - the graphics context.
        element - the element to draw.
      • setupRoadDetails

        protected void setupRoadDetails​(ZoomableGraphicsContext gc,
                                        RoadPolyline element)
        Setup for drawing the road details.
        Parameters:
        gc - the graphics context.
        element - the element to draw.