Interface DrawCommandFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Turns a space and a style into a concrete
DrawCommand.
The seam that lets one DrawBuilder serve every primitive: the
geometry is captured when the builder is created and the presentation is
applied when it is submitted, so there is one fluent chain rather than six
near-identical ones.
-
Method Summary
Modifier and TypeMethodDescriptionBuild the command this factory was created for.
-
Method Details
-
create
Build the command this factory was created for.The return type narrowed from
DrawCommandtoDrawCommand.Primitive. A lambda is unaffected, since its return type is inferred; an explicitimplements DrawCommandFactorywhosecreatewas declared to returnDrawCommandno longer overrides this and must narrow. The narrowing is what makes a batch unable to carry a highlight — seeDrawCommand.Highlight.
-