public static final class MilitarySymbologyCanvas.DrawCommand extends Object implements AutoCloseable
MilitarySymbologyCanvas
.Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
MilitarySymbologyCanvas.DrawCommand |
geometry(Geometry geometry)
The geometry on which to draw the military symbol.
|
MilitarySymbologyCanvas.DrawCommand |
style(MilitarySymbolStyle style)
Configures the style the style to apply.
|
void |
submit()
Submits this draw command.
|
MilitarySymbologyCanvas.DrawCommand |
symbol(MilitarySymbol symbol)
Configures the symbol the symbol to draw.
|
public void close()
close
in interface AutoCloseable
@NotNull public MilitarySymbologyCanvas.DrawCommand symbol(@NotNull MilitarySymbol symbol) throws NullPointerException
This property is mandatory.
symbol
- the symbol to draw.DrawCommand
.NullPointerException
- when the symbol is null
.@NotNull public MilitarySymbologyCanvas.DrawCommand geometry(@NotNull Geometry geometry) throws NullPointerException
This property is mandatory.
geometry
- the geometry on which to draw the military symbol.DrawCommand
.NullPointerException
- when the geometry is null
.@NotNull public MilitarySymbologyCanvas.DrawCommand style(@Nullable MilitarySymbolStyle style) throws NullPointerException
If not set, the default symbol style is used.
style
- the style to apply.DrawCommand
.NullPointerException
- when the style is null
.public void submit() throws IllegalStateException
Nothing will be painted if the draw command is not submitted.
IllegalStateException
- when not all mandatory parameters have been set.