Package com.luciad.symbology.military
Class MilitarySymbologyCanvas.DrawCommand
java.lang.Object
com.luciad.symbology.military.MilitarySymbologyCanvas.DrawCommand
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
MilitarySymbologyCanvas
public static final class MilitarySymbologyCanvas.DrawCommand
extends Object
implements AutoCloseable
Allows to draw a military symbol on the
MilitarySymbologyCanvas
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
The geometry on which to draw the military symbol.style
(MilitarySymbolStyle style) Configures the style the style to apply.void
submit()
Submits this draw command.symbol
(MilitarySymbol symbol) Configures the symbol the symbol to draw.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
symbol
@NotNull public MilitarySymbologyCanvas.DrawCommand symbol(@NotNull MilitarySymbol symbol) throws NullPointerException Configures the symbol the symbol to draw.This property is mandatory.
- Parameters:
symbol
- the symbol to draw.- Returns:
- this
DrawCommand
. - Throws:
NullPointerException
- when the symbol isnull
.
-
geometry
@NotNull public MilitarySymbologyCanvas.DrawCommand geometry(@NotNull Geometry geometry) throws NullPointerException The geometry on which to draw the military symbol.This property is mandatory.
- Parameters:
geometry
- the geometry on which to draw the military symbol.- Returns:
- this
DrawCommand
. - Throws:
NullPointerException
- when the geometry isnull
.
-
style
@NotNull public MilitarySymbologyCanvas.DrawCommand style(@Nullable MilitarySymbolStyle style) throws NullPointerException Configures the style the style to apply.If not set, the default symbol style is used.
- Parameters:
style
- the style to apply.- Returns:
- this
DrawCommand
. - Throws:
NullPointerException
- when the style isnull
.
-
submit
Submits this draw command.Nothing will be painted if the draw command is not submitted.
- Throws:
IllegalStateException
- when not all mandatory parameters have been set.
-