Package com.luciad.symbology.military
Class MilitarySymbologyNode
java.lang.Object
com.luciad.symbology.military.MilitarySymbologyNode
- All Implemented Interfaces:
AutoCloseable
Representation of a military symbol.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes how a military symbol is represented. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 voidfinalize()List<@NotNull MilitarySymbologyNode> Returns the child nodes of this node.getCode()Returns the identifier uniquely defining the symbol, ornullif the node does not represent a symbol.Returns the maximum number of points that a shape representing this node should have.longReturns the minimum number of points that a shape representing this node should have.getName()Returns the descriptive name for this symbol.Returns the parent of this node, or anullvalue if this node is a root node.Returns the current type of symbol, can either be a shape or and icon ornullif the node does not represent a symbol.booleanReturns whether this node is a folder-only node, i.e.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getName
Returns the descriptive name for this symbol.- Returns:
- the descriptive name for this symbol.
-
getCode
Returns the identifier uniquely defining the symbol, ornullif the node does not represent a symbol.- Returns:
- the identifier uniquely defining the symbol, or
nullif the node does not represent a symbol.
-
getSymbolType
Returns the current type of symbol, can either be a shape or and icon ornullif the node does not represent a symbol.- Returns:
- the current type of symbol, can either be a shape or and icon or
nullif the node does not represent a symbol.
-
isFolderOnly
public boolean isFolderOnly()Returns whether this node is a folder-only node, i.e.if it doesn't represent a symbol.
- Returns:
- whether this node is a folder-only node, i.e. if it doesn't represent a symbol.
-
getParent
Returns the parent of this node, or anullvalue if this node is a root node.- Returns:
- the parent of this node, or a
nullvalue if this node is a root node.
-
getChildren
Returns the child nodes of this node.Empty if this node is a leaf node.
- Returns:
- the child nodes of this node.
-
getMaximumPointCount
Returns the maximum number of points that a shape representing this node should have.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.- Returns:
- the maximum number of points that a shape representing this node should have.
-
getMinimumPointCount
public long getMinimumPointCount()Returns the minimum number of points that a shape representing this node should have.- Returns:
- the minimum number of points that a shape representing this node should have.
-
createTemplate
@Nullable public Geometry createTemplate(@NotNull 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.This can be used as a convenience for programmatically creating geometries. The returned geometry can be a point, polyline or polygon.
- Parameters:
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.- Returns:
- a geometry that can represent the symbol of this node, or
nullif this node does not represent a symbol.
-