Class JavaRendererUtilities
java.lang.Object
armyc2.c5isr.web.render.utilities.JavaRendererUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAltModeToModifiersString(Map<String, String> attributes, String altMode) static StringARGBtoABGR(String rgbString) Converts ARGB string format to the Google used ABGR string format.createParameterMapFromURL(String SymbolInfo) static Point2DgetEndPointWithAngle(Point2D ptStart, double angle, double distance) static StringgetStackTrace(Throwable thrown) Takes a throwable and puts it's stacktrace into a string.static booleanis3dSymbol(String symbolCode) static booleanDetermines if a String represents a valid numberstatic doublemeasureDistance(double latitude1, double longitude1, double latitude2, double longitude2, String unitOfMeasure) static StringnormalizeSymbolCode(String symbolCode) Deprecated.
-
Field Details
-
HOSTILE_FILL_COLOR
- See Also:
-
FRIENDLY_FILL_COLOR
- See Also:
-
NEUTRAL_FILL_COLOR
- See Also:
-
UNKNOWN_FILL_COLOR
- See Also:
-
-
Constructor Details
-
JavaRendererUtilities
public JavaRendererUtilities()
-
-
Method Details
-
ARGBtoABGR
Converts ARGB string format to the Google used ABGR string format. Google reverses the blue and red positioning.- Parameters:
rgbString- A color string of the format AARRGGBB in hex value.- Returns:
- the reverse of the input string in hex. The format should now be AABBGGRR
-
normalizeSymbolCode
Deprecated.Returns a symbolId with just the identifiable symbol Id pieces. All variable information is returned as '*'. For example, a boundary, "GFGPGLB----KUSX" returns "G*G*GLB---****X";- Parameters:
symbolCode- A 15 character symbol ID.- Returns:
- The normalized SymbolCode.
-
addAltModeToModifiersString
-
createParameterMapFromURL
- Parameters:
SymbolInfo- something like "SymbolID?LineColor=0x000000&FillColor=0xFFFFFF&size=35"
-
is3dSymbol
-
isNumber
Determines if a String represents a valid number- Parameters:
text-- Returns:
- "1.56" == true, "1ab" == false
-
getStackTrace
Takes a throwable and puts it's stacktrace into a string.- Parameters:
thrown-- Returns:
-
getEndPointWithAngle
-
measureDistance
public static double measureDistance(double latitude1, double longitude1, double latitude2, double longitude2, String unitOfMeasure) - Parameters:
latitude1-longitude1-latitude2-longitude2-unitOfMeasure- meters, kilometers, miles, feet, yards, nautical, nautical miles.- Returns:
-