|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.symbology.milstd2525.MilStd2525GraphicFactory
public class MilStd2525GraphicFactory
Graphic factory to create tactical graphics for the MIL-STD-2525 symbol set.
| Field Summary | |
|---|---|
protected Map<String,Class> |
classMap
Map to associate MIL-STD-2525C function codes with implementation classes. |
| Constructor Summary | |
|---|---|
MilStd2525GraphicFactory()
Create a new factory. |
|
| Method Summary | |
|---|---|
TacticalCircle |
createCircle(String sidc,
Position center,
double radius,
AVList modifiers)
Create a circular graphic. |
MilStd2525TacticalGraphic |
createGraphic(String sidc,
Iterable<? extends Position> positions,
AVList modifiers)
Create a tactical graphic positioned by more than one control point. |
TacticalPoint |
createPoint(String sidc,
Position position,
AVList params)
Create a tactical graphic positioned by a single control point. |
TacticalQuad |
createQuad(String sidc,
Iterable<? extends Position> positions,
AVList modifiers)
Create a graphic with four sides. |
TacticalRoute |
createRoute(String sidc,
Iterable<? extends TacticalPoint> controlPoints,
AVList modifiers)
Create a route graphic. |
protected Class |
getClassForCode(SymbolCode symbolCode)
Get the implementation class that implements a particular graphic. |
boolean |
isSupported(String sidc)
Determines if this factory can create a graphic for a given symbol identifier. |
protected void |
mapClass(Class clazz,
List<String> ids)
Associate an implementation class with one or more symbol identifiers. |
protected void |
populateClassMap()
Populate the map that maps function IDs to implementation classes. |
void |
setImplementationClass(String sidc,
Class clazz)
Specifies the class that the factory will instantiate for a given symbol identifier. |
protected void |
setModifiers(TacticalGraphic graphic,
AVList props)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,Class> classMap
| Constructor Detail |
|---|
public MilStd2525GraphicFactory()
| Method Detail |
|---|
public TacticalCircle createCircle(String sidc,
Position center,
double radius,
AVList modifiers)
createCircle in interface TacticalGraphicFactorysidc - 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.
public MilStd2525TacticalGraphic createGraphic(String sidc,
Iterable<? extends Position> positions,
AVList modifiers)
createCircle)
are provided for convenience, and may be used to specific categories of graphics.
createGraphic in interface TacticalGraphicFactorysidc - MIL-STD-2525 symbol identification code (SIDC).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.
public TacticalPoint createPoint(String sidc,
Position position,
AVList params)
createPoint in interface TacticalGraphicFactorysidc - MIL-STD-2525 symbol identification code (SIDC).position - Control point to use to place the graphic.params - Modifiers to apply to the graphic.
null if no graphic can
be created for the given symbol identifier.
public TacticalQuad createQuad(String sidc,
Iterable<? extends Position> positions,
AVList modifiers)
createQuad in interface TacticalGraphicFactorysidc - 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.
public TacticalRoute createRoute(String sidc,
Iterable<? extends TacticalPoint> controlPoints,
AVList modifiers)
createRoute in interface TacticalGraphicFactorysidc - 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.protected Class getClassForCode(SymbolCode symbolCode)
symbolCode - Parsed SIDC that identifies the graphic.
null if no implementation class is found.public boolean isSupported(String sidc)
isSupported in interface TacticalGraphicFactorysidc - An identifier for a symbol within the symbol set.
protected void mapClass(Class clazz,
List<String> ids)
clazz - Class that implements one or more tactical graphics.ids - Masked symbol IDs of the graphics implemented by clazz.protected void populateClassMap()
public void setImplementationClass(String sidc,
Class clazz)
sidc - Masked symbol identifier.clazz - Implementation class. This class must have a constructor that accepts a string argument.SymbolCode.toMaskedString()
protected void setModifiers(TacticalGraphic graphic,
AVList props)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||