Class MilStdSymbol

    • Field Detail

      • TextScaleSensitive_No

        public static final int TextScaleSensitive_No
        Text is not affected by scale changes
        See Also:
        Constant Field Values
      • TextScaleSensitive_OnSlightZoomIn

        public static final int TextScaleSensitive_OnSlightZoomIn
        Text is affected only by significant scale changes
        See Also:
        Constant Field Values
      • TextScaleSensitive_OnZoomIn

        public static final int TextScaleSensitive_OnZoomIn
        Text is affected by zoom in scale changes
        See Also:
        Constant Field Values
      • TextScaleSensitive_OnZoomInOut

        public static final int TextScaleSensitive_OnZoomInOut
        Text is affected by any scale changes
        See Also:
        Constant Field Values
      • SymbolScaleSensitive_No

        public static final int SymbolScaleSensitive_No
        Symbol is not affected by scale changes
        See Also:
        Constant Field Values
      • SymbolScaleSensitive_ArrowHeads

        public static final int SymbolScaleSensitive_ArrowHeads
        Symbol has arrow heads that are affected by scale change
        See Also:
        Constant Field Values
      • SymbolScaleSensitive_DecoratedLines

        public static final int SymbolScaleSensitive_DecoratedLines
        Symbol has lines details that are affected by scale change (like FLOT)
        See Also:
        Constant Field Values
      • SymbolScaleSensitive_PatternFills

        public static final int SymbolScaleSensitive_PatternFills
        Symbol has pattern fills that are affected by scale if you're not using the fill pattern image ShapeInfo.getTexturePaint() or ShapeInfo.getPatternFillImage()
        See Also:
        Constant Field Values
    • Constructor Detail

      • MilStdSymbol

        public MilStdSymbol​(java.lang.String symbolID,
                            java.lang.String uniqueID,
                            java.util.ArrayList<java.awt.geom.Point2D> Coordinates,
                            java.util.Map<java.lang.String,​java.lang.String> modifiers)
        Creates a new MilStdSymbol.
        Parameters:
        symbolID - code, 20-30 digits long that represents the symbol
        uniqueID - for the client's use
        modifiers - use keys from Modifiers.
        Coordinates - modifiers
      • MilStdSymbol

        public MilStdSymbol​(java.lang.String symbolID,
                            java.lang.String uniqueID,
                            java.util.ArrayList<java.awt.geom.Point2D> Coordinates,
                            java.util.Map<java.lang.String,​java.lang.String> modifiers,
                            java.lang.Boolean keepUnitRatio)
        Parameters:
        symbolID - code, 20-30 digits long that represents the symbol
        uniqueID - for the client's use
        modifiers - use keys from Modifiers.
        Coordinates - ArrayList of Point2D coordinates for the symbol
        keepUnitRatio - - default TRUE modifiers
    • Method Detail

      • getFillStyle

        public java.awt.TexturePaint getFillStyle()
      • setFillStyle

        public void setFillStyle​(java.awt.TexturePaint value)
      • getUseFillPattern

        public boolean getUseFillPattern()
      • setUseFillPattern

        public void setUseFillPattern​(boolean value)
      • getPatternFillType

        public int getPatternFillType()
        Deprecated.
      • setPatternFillType

        public void setPatternFillType​(int value)
        Deprecated.
        0=Solid, 2=ForwardHatch, 3=BackwardHatch, 4=verticalHatch, 5=horizonalHatch, 8=CrossHatch Only affects Basic Shapes. Will not apply to MilStd Symbology so as to not confuse some symbols with others.
        Parameters:
        value - Integer
      • getAltitudeMode

        public java.lang.String getAltitudeMode()
      • setAltitudeMode

        public void setAltitudeMode​(java.lang.String value)
      • setAltitudeUnit

        public void setAltitudeUnit​(DistanceUnit unit)
      • setDistanceUnit

        public void setDistanceUnit​(DistanceUnit unit)
      • getUseDashArray

        public boolean getUseDashArray()
      • setUseDashArray

        public void setUseDashArray​(boolean value)
      • getHideOptionalLabels

        public boolean getHideOptionalLabels()
      • setHideOptionalLabels

        public void setHideOptionalLabels​(boolean value)
      • setUseLineInterpolation

        public void setUseLineInterpolation​(boolean value)
      • getUseLineInterpolation

        public boolean getUseLineInterpolation()
      • setUnitSize

        public void setUnitSize​(int pixelSize)
      • getUnitSize

        public int getUnitSize()
      • setKeepUnitRatio

        public void setKeepUnitRatio​(boolean value)
      • getKeepUnitRatio

        public boolean getKeepUnitRatio()
      • setDrawAffiliationModifierAsLabel

        public void setDrawAffiliationModifierAsLabel​(boolean value)
        Deprecated.
        Determines how to draw the Affiliation Modifier. True to draw as modifier label in the "E/F" location. False to draw at the top right corner of the symbol
        Parameters:
        value - Boolean
      • getDrawAffiliationModifierAsLabel

        public boolean getDrawAffiliationModifierAsLabel()
        Deprecated.
        True to draw as modifier label in the "E/F" location. False to draw at the top right corner of the symbol
        Returns:
        Boolean
      • getModifierMap

        public java.util.Map<java.lang.String,​java.lang.String> getModifierMap()
        Returns the modifier map for the symbol
        Returns:
        Map
      • setModifierMap

        public void setModifierMap​(java.util.Map<java.lang.String,​java.lang.String> modifiers)
        sets the modifier map for the symbol
        Parameters:
        modifiers - Map
      • getModifier

        public java.lang.String getModifier​(java.lang.String modifier)
        Get a modifier value
        Parameters:
        modifier - Modifiers
        Returns:
        String
      • setModifier

        public void setModifier​(java.lang.String modifier,
                                java.lang.String value)
        Set a modifier value
        Parameters:
        modifier - Modifiers
        value - String
      • getModifier

        public java.lang.String getModifier​(java.lang.String modifier,
                                            int index)
        Gets modifier value based on modifier constant and index in array
        Parameters:
        modifier - Modifiers
        index - Integer array location, only applicable to AM, AN and X
        Returns:
        String
      • getModifier_AM_AN_X

        public java.lang.Double getModifier_AM_AN_X​(java.lang.String modifier,
                                                    int index)
        Get modifier value for AM, AN or X
        Parameters:
        modifier - Modifiers
        index - Integer array location
        Returns:
        Double
      • setModifier

        public void setModifier​(java.lang.String modifier,
                                java.lang.String value,
                                int index)
        Modifiers must be added in order. No setting index 2 without first setting index 0 and 1. If setting out of order is attempted, the value will just be added to the end of the list.
        Parameters:
        modifier - Modifiers
        value - String
        index - Integer
      • setModifier_AM_AN_X

        public void setModifier_AM_AN_X​(java.lang.String modifier,
                                        java.lang.Double value,
                                        int index)
      • getModifiers_AM_AN_X

        public java.util.ArrayList<java.lang.Double> getModifiers_AM_AN_X​(java.lang.String modifier)
      • setModifiers_AM_AN_X

        public void setModifiers_AM_AN_X​(java.lang.String modifier,
                                         java.util.ArrayList<java.lang.Double> modifiers)
      • setFillColor

        public void setFillColor​(java.awt.Color value)
        Parameters:
        value - Color
      • getFillColor

        public java.awt.Color getFillColor()
        Returns:
        Color
      • setTextColor

        public void setTextColor​(java.awt.Color value)
        Parameters:
        value - Color
      • getTextColor

        public java.awt.Color getTextColor()
        Returns:
        Color
      • setTextBackgroundColor

        public void setTextBackgroundColor​(java.awt.Color value)
        Parameters:
        value - Color
      • getTextBackgroundColor

        public java.awt.Color getTextBackgroundColor()
        Returns:
        Color
      • setLineWidth

        public void setLineWidth​(int value)
        Parameters:
        value - Integer
      • getLineWidth

        public int getLineWidth()
        Returns:
        Integer
      • setLineColor

        public void setLineColor​(java.awt.Color value)
        If value is null or SymbolUtilities.isGreenProtectionGraphic() is true then value is ignored
        Parameters:
        value - Color
      • getLineColor

        public java.awt.Color getLineColor()
        Returns:
        Color
      • setOutlineColor

        public void setOutlineColor​(java.awt.Color value)
        if null, renderer will use white or black for the outline based on the color of the symbol. Otherwise, it will used the passed color value.
        Parameters:
        value - Color
      • getOutlineColor

        public java.awt.Color getOutlineColor()
      • setTag

        public void setTag​(java.lang.Object value)
        Deprecated.
        Extra value for client. defaults to null. Not used for rendering by JavaRenderer
        Parameters:
        value - Object
      • getTag

        public java.lang.Object getTag()
        Deprecated.
        Extra value for client. defaults to null. Not used for rendering by JavaRenderer
        Returns:
        Object
      • setCoordinates

        public void setCoordinates​(java.util.ArrayList<java.awt.geom.Point2D> value)
        Parameters:
        value - ArrayList
      • getCoordinates

        public java.util.ArrayList<java.awt.geom.Point2D> getCoordinates()
        Returns:
        ArrayList
      • setModifierShapes

        public void setModifierShapes​(java.util.ArrayList<ShapeInfo> value)
        Shapes that represent the symbol modifiers
        Parameters:
        value - ArrayList<Shape>
      • getModifierShapes

        public java.util.ArrayList<ShapeInfo> getModifierShapes()
        Shapes that represent the symbol modifiers
        Returns:
        ArrayList
      • setSymbolShapes

        public void setSymbolShapes​(java.util.ArrayList<ShapeInfo> value)
        the java shapes that make up the symbol
        Parameters:
        value - ArrayList<ShapeInfo>
      • getSymbolShapes

        public java.util.ArrayList<ShapeInfo> getSymbolShapes()
        the java shapes that make up the symbol
        Returns:
        ArrayList
      • getSymbolID

        public java.lang.String getSymbolID()
        The Symbol Id of the MilStdSymbol.
        Returns:
        String
      • getUUID

        public java.lang.String getUUID()
        Unique ID of the Symbol. For client use.
        Returns:
        String
      • setUUID

        public void setUUID​(java.lang.String ID)
        Unique ID of the Symbol. For client use.
        Parameters:
        ID - String
      • setSymbolID

        public void setSymbolID​(java.lang.String value)
        Sets the Symbol ID for the symbol. Should be a 20-30 digit string from the milstd.
        Parameters:
        value - String
      • set_WasClipped

        public void set_WasClipped​(boolean value)
        Deprecated.
        Parameters:
        value -
      • get_WasClipped

        public boolean get_WasClipped()
        Deprecated.
        Returns:
        boolean
      • setWasClipped

        public void setWasClipped​(boolean value)
      • getWasClipped

        public boolean getWasClipped()
      • isTextScaleSensitive

        public int isTextScaleSensitive()
        Determines if the symbol has integral or modifier/amplifier text that would be impacted if the maps is zoomed in or out after initial draw.
        Returns:
        0=not sensitive, 1=slightly little zoom in sensitive, 2=zoom in sensitive, 3=zoom in/out sensitive
      • isSymbolScaleSensitive

        public int isSymbolScaleSensitive()
        Checks if the symbol has features that make it scale aware and would require a refresh on zooming in or out.
        Returns:
        0=No,1=arrowheads,2=decoratedLines,3=patternFills
      • getPatternScale

        public double getPatternScale()