public final class MilitarySymbologyNode extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
MilitarySymbologyNode.SymbolType
Describes how a military symbol is represented.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Geometry |
createTemplate(CoordinateReference crs,
double x,
double y,
double size)
Creates a suitable geometry for this symbology node, at the given location and of the provided size.
|
protected void |
finalize() |
List<MilitarySymbologyNode> |
getChildren()
Returns the child nodes of this node.
|
String |
getCode()
Returns the identifier uniquely defining the symbol, or
null if the node does not represent a symbol. |
Long |
getMaximumPointCount()
Returns the maximum number of points that a shape representing this node should have.
|
long |
getMinimumPointCount()
Returns the minimum number of points that a shape representing this node should have.
|
String |
getName()
Returns the descriptive name for this symbol.
|
MilitarySymbologyNode |
getParent()
Returns the parent of this node, or a
null value if this node is a root node. |
MilitarySymbologyNode.SymbolType |
getSymbolType()
Returns the current type of symbol, can either be a shape or and icon or
null if the node does not represent a symbol. |
boolean |
isFolderOnly() |
public void close()
close
in interface AutoCloseable
@NotNull public String getName()
@NotNull public String getCode()
null
if the node does not represent a symbol.null
if the node does not represent a symbol.@NotNull public MilitarySymbologyNode.SymbolType getSymbolType()
null
if the node does not represent a symbol.null
if the node does not represent a symbol.public boolean isFolderOnly()
@Nullable public MilitarySymbologyNode getParent()
null
value if this node is a root node.null
value if this node is a root node.@NotNull public List<MilitarySymbologyNode> getChildren()
Empty if this node is a leaf node.
@Nullable public Long getMaximumPointCount()
If there is no restriction in the number of points or if the node is represented by an icon or does not represent a symbol at all, this returns null
.
public long getMinimumPointCount()
@Nullable public Geometry createTemplate(@NotNull CoordinateReference crs, double x, double y, double size)
This can be used as a convenience for programmatically creating geometries. The returned geometry can be a point, polyline or polygon.
crs
- the coordinate reference of the geometry.x
- the x-coordinate where the template will be created.y
- the y-coordinate where the template will be created.size
- the approximate size of the final template, in the units of the given coordinate reference system.null
if this node does not represent a symbol.