Class Segment2afpDrawer

  • All Implemented Interfaces:
    Drawer<Segment2afp>

    public class Segment2afpDrawer
    extends Object
    implements Drawer<Segment2afp>
    Drawer of a 2D segment.
    Since:
    15.0
    Version:
    17.0 2020-01-04 14:41:52
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.advanced
    Maven Artifact Id:
    nodefx
    • Constructor Detail

      • Segment2afpDrawer

        public Segment2afpDrawer()
    • Method Detail

      • getPrimitiveType

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

        public void draw​(ZoomableGraphicsContext gc,
                         Segment2afp element)
        Description copied from interface: Drawer
        Draw the given document primitives.
        Specified by:
        draw in interface Drawer<Segment2afp>
        Parameters:
        gc - the graphics context that must be used for drawing.
        element - the primitive to draw.