- java.lang.Object
-
- org.arakhne.afc.nodefx.DeferredDrawer<T>
-
- Type Parameters:
T
- the type of the primitives to draw.
- All Implemented Interfaces:
Drawer<T>
public final class DeferredDrawer<T> extends Object implements Drawer<T>
Drawer that defers to another drawer dynamically. This drawer is implemented in order to be used inside the constructors of a Drawer when it needs another drawer.- Since:
- 16.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(ZoomableGraphicsContext gc, T primitive)
Draw the given document primitives.Class<? extends T>
getPrimitiveType()
Replies the type of the primitives that could be drawn by this drawer.static <T> Drawer<T>
of(Class<? extends T> type)
Constructor.
-
-
-
Method Detail
-
of
public static <T> Drawer<T> of(Class<? extends T> type)
Constructor.- Type Parameters:
T
- the type of elements to be drawn.- Parameters:
type
- the type of elements to be drawn.- Returns:
- the drawer.
-
draw
public void draw(ZoomableGraphicsContext gc, T primitive)
Description copied from interface:Drawer
Draw the given document primitives.
-
-