Package sec.web.render
Class MultiPointHandler
java.lang.Object
sec.web.render.MultiPointHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int2525C, which includes 2525Bch2 & USAS 13/14 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbitmapToString(Bitmap bitmap) static StringgetModififerKML(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray symbolModifiers, SparseArray symbolAttributes, int format, int symStd) protected static Point2DGE recognizes coordinates in the range of -180 to +180static voidNormalizeGECoordsToGEExtents(double leftLongitude, double rightLongitude, ArrayList<Point2D> pts2d) GE has the unusual distinction of being an application with coordinates outside its own extents.static StringRenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format) static StringRenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd) static IPointConversionRenderSymbol2(String symbolCode, String controlPoints, Double scale, String bbox, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers) Deprecated.to make sure no one else is using it.static StringRenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format) Multipoint Rendering on flat 2D mapsstatic StringRenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd) Multipoint Rendering on flat 2D mapsstatic StringRenderSymbol2DX(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers, int format) Deprecated.static MilStdSymbolRenderSymbolAsMilStdSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int symStd) static BooleanShouldClipSymbol(String symbolID) Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT.static BooleanShouldClipSymbol(String symbolID, boolean useDashArray, boolean useFillPattern) Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT.
-
Field Details
-
Symbology_2525Bch2_USAS_13_14
- See Also:
-
Symbology_2525C
2525C, which includes 2525Bch2 & USAS 13/14- See Also:
-
-
Constructor Details
-
MultiPointHandler
public MultiPointHandler()
-
-
Method Details
-
getModififerKML
public static String getModififerKML(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray symbolModifiers, SparseArray symbolAttributes, int format, int symStd) -
NormalizeGECoordsToGEExtents
public static void NormalizeGECoordsToGEExtents(double leftLongitude, double rightLongitude, ArrayList<Point2D> pts2d) GE has the unusual distinction of being an application with coordinates outside its own extents. It appears to only be a problem when lines cross the IDL- Parameters:
pts2d- the client points
-
NormalizeCoordToGECoord
GE recognizes coordinates in the range of -180 to +180- Parameters:
pt2d-- Returns:
-
ShouldClipSymbol
Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT. These complicated lines should be clipped when possible.- Parameters:
symbolID-- Returns:
-
ShouldClipSymbol
public static Boolean ShouldClipSymbol(String symbolID, boolean useDashArray, boolean useFillPattern) Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT. These complicated lines should be clipped when possible.- Parameters:
symbolID-useDashArray- default true, some symbols don't need to be clipped if using dash array MilStdAttributeuseFillPattern- default true, some symbols don't need to be clipped if using fill pattern MilStdAttribute- Returns:
-
RenderSymbol
public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format) - Parameters:
id-name-description-symbolCode-controlPoints-scale-bbox-symbolModifiers-symbolAttributes-format-- Returns:
-
RenderSymbol
public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd) - Parameters:
id-name-description-symbolCode-controlPoints-scale-bbox-symbolModifiers- SparseArray, keyed using constants from ModifiersTG. Pass in comma delimited String for modifiers with multiple values like AM, AN & X symbolAttributes- SparseArray, keyed using constants from MilStdAttributes. pass in double[] for AM, AN and X; Strings for the rest. format-symStd- 0=2525Bch2, 1=2525C- Returns:
-
RenderSymbolAsMilStdSymbol
public static MilStdSymbol RenderSymbolAsMilStdSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int symStd) - Parameters:
id-name-description-symbolCode-controlPoints-scale-bbox-symbolModifiers-symbolAttributes-symStd-- Returns:
-
RenderSymbol2D
public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format) Multipoint Rendering on flat 2D maps- Parameters:
id- A unique ID for the symbol. only used in KML currentlyname-description-symbolCode-controlPoints-pixelWidth- pixel dimensions of the viewable map areapixelHeight- pixel dimensions of the viewable map areabbox- The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"symbolModifiers- Modifier with multiple values should be comma delimitedsymbolAttributes-format- An enumeration: 0 for KML, 1 for JSON.- Returns:
- A JSON or KML string representation of the graphic.
-
RenderSymbol2D
public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd) Multipoint Rendering on flat 2D maps- Parameters:
id- A unique ID for the symbol. only used in KML currentlyname-description-symbolCode-controlPoints-pixelWidth- pixel dimensions of the viewable map areapixelHeight- pixel dimensions of the viewable map areabbox- The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"symbolModifiers- Modifier with multiple values should be comma delimitedsymbolAttributes-format- An enumeration: 0 for KML, 1 for JSON.symStd- An enumeration: 0 for 2525Bch2, 1 for 2525C.- Returns:
- A JSON or KML string representation of the graphic.
-
RenderSymbol2DX
public static String RenderSymbol2DX(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers, int format) Deprecated.For Mike Deutch testing- Parameters:
id-name-description-symbolCode-controlPoints-pixelWidth-pixelHeight-bbox-symbolModifiers-shapes-modifiers-format-- Returns:
-
RenderSymbol2
public static IPointConversion RenderSymbol2(String symbolCode, String controlPoints, Double scale, String bbox, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers) Deprecated.to make sure no one else is using it.FOR DEUTCH USE ONLY- Parameters:
symbolCode-controlPoints-scale-bbox-shapes-
-
bitmapToString
-