Visualizing MilSym data on a Lightspeed view requires the same two steps as the majority of the formats:
//First create the model
//Create and populate a model with military symbols
//In this example, we use APP6 domain objects
TLcdVectorModel model = new TLcdVectorModel(new TLcdGeodeticReference());
model.setModelDescriptor(new TLcdAPP6AModelDescriptor(null, "APP-6A", "APP-6A", null));
// Create an APP-6A symbol: an unmanned aerial vehicle unit. This symbol has one point
// that indicates its position. When a symbol is created, the minimum number of points
// needed to draw the symbol is created.
// A value for the text modifier "Unique Designation" is also set.
TLcdEditableAPP6AObject object =
new TLcdEditableAPP6AObject("STGAUCVU----USG", ELcdAPP6Standard.APP_6A);
object.move2DPoint(0, 27, 46); // Move the object
object.putTextModifier(ILcdAPP6ACoded.sUniqueDesignation, "Regular");
model.addElement(object, ILcdFireEventMode.NO_EVENT);
//Create a layer for the model using the TLspAPP6ALayerBuilder
ILspLayer layer = TLspAPP6ALayerBuilder.newBuilder()
.model(model)
.build();
//Add the layer to the Lightspeed view (an ILspView)
view.addLayer(layer);