All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.gov.nasa.worldwind.symbology.milstd2525.graphics.areas.SpecialInterestArea Maven / Gradle / Ivy

Go to download

World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.

There is a newer version: 2.0.0-986
Show newest version
/*
 * Copyright (C) 2012 United States Government as represented by the Administrator of the
 * National Aeronautics and Space Administration.
 * All Rights Reserved.
 */

package gov.nasa.worldwind.symbology.milstd2525.graphics.areas;

import gov.nasa.worldwind.symbology.milstd2525.graphics.TacGrpSidc;

import java.util.*;

/**
 * Implementation of General Command/Special area graphics. This class implements the following graphics:
 * 

*

  • Area of Operations (2.X.2.6.2.1)
  • Named Area of Interest (2.X.2.6.2.4)
  • Targeted Area of * Interest (2.X.2.6.2.5)
* * @author pabercrombie * @version $Id: SpecialInterestArea.java 1171 2013-02-11 21:45:02Z dcollins $ */ public class SpecialInterestArea extends BasicArea { /** * Indicates the graphics supported by this class. * * @return List of masked SIDC strings that identify graphics that this class supports. */ public static List getSupportedGraphics() { return Arrays.asList( TacGrpSidc.C2GM_SPL_ARA_AOO, TacGrpSidc.C2GM_SPL_ARA_NAI, TacGrpSidc.C2GM_SPL_ARA_TAI); } /** * Create a new area graphic. * * @param sidc Symbol code the identifies the graphic. */ public SpecialInterestArea(String sidc) { super(sidc); this.setShowHostileIndicator(false); } @Override protected String getGraphicLabel() { String code = this.maskedSymbolCode; if (TacGrpSidc.C2GM_SPL_ARA_AOO.equalsIgnoreCase(code)) return "AO"; else if (TacGrpSidc.C2GM_SPL_ARA_NAI.equalsIgnoreCase(code)) return "NAI"; else if (TacGrpSidc.C2GM_SPL_ARA_TAI.equalsIgnoreCase(code)) return "TAI"; return ""; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy