/** * Checks if a tactical graphic has the passed modifier. * @param symbolID - symbolID of Tactical Graphic * @param tgModifier - ModifiersTG.AN_AZIMUTH * @return */ public static boolean canSymbolHaveModifier(String symbolID, String tgModifier) { return canSymbolHaveModifier(symbolID, tgModifier, RendererSettings.getInstance().getSymbologyStandard()); }
/** * * @param SymbolID * @return * @deprecated */ public UnitFontLookupInfo getLookupInfo(String SymbolID) { return getLookupInfo(SymbolID, RendererSettings.getInstance().getSymbologyStandard()); }
/** * Creates an outline of a text shape for better readability * @param originalText * @return */ public static ShapeInfo createTextOutline(ShapeInfo originalText) { return createTextOutline(originalText, RendererSettings.getInstance().getTextOutlineWidth()); }
public static int getFrameCode(String SymbolID, int FillCode) { return getFrameCode(SymbolID, FillCode,RendererSettings.getInstance().getSymbologyStandard()); }
public static Boolean hasModifier(String symbolID, String modifier) { return hasModifier(symbolID, modifier, RendererSettings.getInstance().getSymbologyStandard()); }
public static Boolean hasAMmodifierWidth(String symbolID) { return hasAMmodifierWidth(symbolID, RendererSettings.getInstance().getSymbologyStandard()); }
public static Boolean hasANmodifier(String symbolID) { return hasANmodifier(symbolID, RendererSettings.getInstance().getSymbologyStandard()); }
public static Boolean hasAMmodifierRadius(String symbolID) { return hasAMmodifierRadius(symbolID, RendererSettings.getInstance().getSymbologyStandard()); }
/** * Creates an outline of a text shape for better readability. Width is only 1 * but it is faster because instead of tracing an outline, we duplicate the * text 4x and shift each one in a different direction. Assumes text layout * is being used in the shape info. * @param originalText * @return */ public static ArrayList<ShapeInfo> createTextOutlineQuick(ShapeInfo originalText) { int thickness = RendererSettings.getInstance().getTextOutlineWidth(); return createTextOutlineQuick(originalText, thickness); }
/** * Determines in the symbol is a multipoint symbol. This includes circular & * rectangular symbols that may have only 1 actual point but has AM, AN, * width or height defined that's lets the renderer derive the remaining * point. * * @param symbolID * @param symStd * Like RendererSettings.Symbology_2525C * @return */ public Boolean isMultiPointSymbol(String symbolID, int symStd) { return SymbolDefTable.getInstance().isMultiPoint(SymbolUtilities.getBasicSymbolID(symbolID), symStd); }
/** * Not meant to be changed on the fly. Let's user choose between 2525Bch2 * and 2525C. 2525Bch2 = 0, 2525C = 1. * * @param symStd */ public void setDefaultSymbologyStandard(int symStd) { RendererSettings.getInstance().setSymbologyStandard(symStd); }
/** * Get a Map of the supported Unit or Force Element symbols * @return a Map of UnitDefs keyed by symbol code. */ public Map<String, UnitDef> getSupportedFETypes(int symStd) { return UnitDefTable.getInstance().GetAllUnitDefs(symStd); }
public void setUnitSymbolSize(int size) { synchronized(_UnitFontMutex) { _UnitFont = SinglePointFont.getInstance().getUnitFont(size); } }
/** * Defaults to Level.INFO * @param message * @param showMessageBox */ public static void LogMessage(String message, Boolean showMessageBox) { LogMessage(message, Level.INFO, showMessageBox); }
public static synchronized UnitDefTable getInstance() { if(_instance == null) _instance = new UnitDefTable(); return _instance; }
public static synchronized TacticalGraphicLookup getInstance() { if(_instance == null) { _instance = new TacticalGraphicLookup(); } return _instance; }
/** * @name init * * @desc Simply calls xmlLoaded * * @return None */ private void init() { xmlLoaded(); }
public static synchronized SymbolDefTable getInstance() { if(_instance == null) _instance = new SymbolDefTable(); return _instance; }
public static synchronized UnitFontLookup getInstance() { if(_instance == null) { _instance = new UnitFontLookup(); } return _instance; }
public static synchronized RendererSettings getInstance() { if(_instance == null) _instance = new RendererSettings(); return _instance; }