Package org.arakhne.afc.nodefx.drawers
Class Segment2afpDrawer
- java.lang.Object
-
- org.arakhne.afc.nodefx.drawers.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 Summary
Constructors Constructor Description Segment2afpDrawer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(ZoomableGraphicsContext gc, Segment2afp element)
Draw the given document primitives.Class<? extends Segment2afp>
getPrimitiveType()
Replies the type of the primitives that could be drawn by this drawer.
-
-
-
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 interfaceDrawer<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 interfaceDrawer<Segment2afp>
- Parameters:
gc
- the graphics context that must be used for drawing.element
- the primitive to draw.
-
-