public interface TacticalGraphicFactory
TacticalGraphic
s. Each implementation of this interface handles the graphics for a
specific symbol set. Each graphic within that set is identified by a string identifier.
The factory exposes creation several methods:
createGraphic
- Creates a graphic
from a list of positions and modifiers. This method is the most general, and can create any type of graphic. The
other creation methods are provided for convenience.createPoint
- Create a graphic positioned by a
single control point.createCircle
- Create a graphic positioned by a center point and a radius.createQuad
- Create a graphic that has
length and width properties.createRoute
- Create a graphic composed of point graphics connected by lines.TacticalGraphic
Modifier and Type | Method and Description |
---|---|
TacticalCircle |
createCircle(java.lang.String symbolIdentifier,
Position center,
double radius,
AVList modifiers)
Create a circular graphic.
|
TacticalGraphic |
createGraphic(java.lang.String symbolIdentifier,
java.lang.Iterable<? extends Position> positions,
AVList modifiers)
Create a tactical graphic positioned by more than one control point.
|
TacticalPoint |
createPoint(java.lang.String symbolIdentifier,
Position position,
AVList modifiers)
Create a tactical graphic positioned by a single control point.
|
TacticalQuad |
createQuad(java.lang.String symbolIdentifier,
java.lang.Iterable<? extends Position> positions,
AVList modifiers)
Create a graphic with four sides.
|
TacticalRoute |
createRoute(java.lang.String symbolIdentifier,
java.lang.Iterable<? extends TacticalPoint> controlPoints,
AVList modifiers)
Create a route graphic.
|
boolean |
isSupported(java.lang.String symbolIdentifier)
Determines if this factory can create a graphic for a given symbol identifier.
|
TacticalCircle createCircle(java.lang.String symbolIdentifier, Position center, double radius, AVList modifiers)
symbolIdentifier
- Identifier for the symbol within its symbol set.center
- The position of the center of the circle.radius
- The radius of the circle, in meters.modifiers
- Modifiers to apply to the graphic.null
if no graphic can be
created for the given symbol identifier.java.lang.IllegalArgumentException
- if symbolIdentifier
does not describe a circular graphic.TacticalGraphic createGraphic(java.lang.String symbolIdentifier, java.lang.Iterable<? extends Position> positions, AVList modifiers)
createCircle
)
are provided for convenience, and may be used to specific categories of graphics.symbolIdentifier
- Identifier for the symbol within its symbol set.positions
- Control points to use to place the graphic. How many points are required depends on the
type of graphic.modifiers
- Modifiers to apply to the graphic.null
if no graphic can
be created for the given symbol identifier.TacticalPoint createPoint(java.lang.String symbolIdentifier, Position position, AVList modifiers)
symbolIdentifier
- Identifier for the symbol within its symbol set.position
- Control point to use to place the graphic.modifiers
- Modifiers to apply to the graphic.null
if no graphic can
be created for the given symbol identifier.TacticalQuad createQuad(java.lang.String symbolIdentifier, java.lang.Iterable<? extends Position> positions, AVList modifiers)
symbolIdentifier
- Identifier for the symbol within its symbol set.positions
- Control points to use to place the graphic. How many points are required depends on the
type of graphic.modifiers
- Modifiers to apply to the graphic.null
if no graphic can be
created for the given symbol identifier.java.lang.IllegalArgumentException
- if symbolIdentifier
does not describe a quad graphic.TacticalRoute createRoute(java.lang.String symbolIdentifier, java.lang.Iterable<? extends TacticalPoint> controlPoints, AVList modifiers)
symbolIdentifier
- Identifier for the symbol within its symbol set.controlPoints
- Graphics to place at the points along the route.modifiers
- Modifiers to apply to the graphic.null
if no graphic can be
created for the given symbol identifier.java.lang.IllegalArgumentException
- if symbolIdentifier
does not describe a route graphic.boolean isSupported(java.lang.String symbolIdentifier)
symbolIdentifier
- An identifier for a symbol within the symbol set.