Package org.arakhne.afc.nodefx.drawers
Class Rectangle2afpDrawer
- java.lang.Object
-
- org.arakhne.afc.nodefx.drawers.Rectangle2afpDrawer
-
- All Implemented Interfaces:
Drawer<Rectangle2afp>
public class Rectangle2afpDrawer extends Object implements Drawer<Rectangle2afp>
Drawer of a 2D rectangle.- 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 Rectangle2afpDrawer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(ZoomableGraphicsContext gc, Rectangle2afp element)
Draw the given document primitives.Class<? extends Rectangle2afp>
getPrimitiveType()
Replies the type of the primitives that could be drawn by this drawer.
-
-
-
Method Detail
-
getPrimitiveType
public Class<? extends Rectangle2afp> getPrimitiveType()
Description copied from interface:Drawer
Replies the type of the primitives that could be drawn by this drawer.- Specified by:
getPrimitiveType
in interfaceDrawer<Rectangle2afp>
- Returns:
- the type of the primitives.
-
draw
public void draw(ZoomableGraphicsContext gc, Rectangle2afp element)
Description copied from interface:Drawer
Draw the given document primitives.- Specified by:
draw
in interfaceDrawer<Rectangle2afp>
- Parameters:
gc
- the graphics context that must be used for drawing.element
- the primitive to draw.
-
-