|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TacticalGraphicFactory
A factory to create TacticalGraphics. Each implementation of this interface handles the graphics for a
specific symbol set. Each graphic within that set is identified by a string identifier.
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| Method Summary | |
|---|---|
TacticalCircle |
createCircle(String symbolIdentifier,
Position center,
double radius,
AVList modifiers)
Create a circular graphic. |
TacticalGraphic |
createGraphic(String symbolIdentifier,
Iterable<? extends Position> positions,
AVList modifiers)
Create a tactical graphic positioned by more than one control point. |
TacticalPoint |
createPoint(String symbolIdentifier,
Position position,
AVList modifiers)
Create a tactical graphic positioned by a single control point. |
TacticalQuad |
createQuad(String symbolIdentifier,
Iterable<? extends Position> positions,
AVList modifiers)
Create a graphic with four sides. |
TacticalRoute |
createRoute(String symbolIdentifier,
Iterable<? extends TacticalPoint> controlPoints,
AVList modifiers)
Create a route graphic. |
boolean |
isSupported(String symbolIdentifier)
Determines if this factory can create a graphic for a given symbol identifier. |
| Method Detail |
|---|
TacticalCircle createCircle(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.
IllegalArgumentException - if symbolIdentifier does not describe a circular graphic.
TacticalGraphic createGraphic(String symbolIdentifier,
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(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(String symbolIdentifier,
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.
IllegalArgumentException - if symbolIdentifier does not describe a quad graphic.
TacticalRoute createRoute(String symbolIdentifier,
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.
IllegalArgumentException - if symbolIdentifier does not describe a route graphic.boolean isSupported(String symbolIdentifier)
symbolIdentifier - An identifier for a symbol within the symbol set.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||