public class MilStd2525IconRetriever extends AbstractIconRetriever
IconRetrieverUsage
example.
createIcon
accepts the following parameters:
Key | Type | Description |
---|---|---|
SymbologyConstants.SHOW_ICON | Boolean | Determines if the symbol will be created with an icon. |
SymbologyConstants.SHOW_FRAME | Boolean | Determines if the symbol will be created with a frame. |
SymbologyConstants.SHOW_FILL | Boolean | Determines if the symbol will be created with a fill color. |
AVKey.COLOR | java.awt.Color | Fill color applied to the symbol. If the symbol is drawn with a frame, then this color will be used to fill the frame. If the symbol is not drawn with a frame, then the fill will be applied to the icon itself. The fill color has no effect if Show Fill is False. |
Modifier and Type | Field and Description |
---|---|
protected static int |
CIRCLE_LINE_WIDTH
Line width used to stroke circle when fill is turned off.
|
protected static int |
CIRCLE_RADIUS
Radius (in pixels) of circle that is drawn to the represent the symbol when both frame and icon are off.
|
protected static Color |
DEFAULT_FRAME_COLOR |
protected static Color |
DEFAULT_ICON_COLOR |
protected static String |
DEFAULT_IMAGE_FORMAT |
protected static Set<String> |
emsEquipment |
protected static Color |
FILL_COLOR_LIGHT_BLUE |
protected static Color |
FILL_COLOR_LIGHT_GREEN |
protected static Color |
FILL_COLOR_LIGHT_PURPLE |
protected static Color |
FILL_COLOR_LIGHT_RED |
protected static Color |
FILL_COLOR_LIGHT_YELLOW |
protected static Map<String,Color> |
fillColorMap |
protected static String |
FILLS_PATH |
protected static Color |
FRAME_COLOR_BLUE |
protected static Color |
FRAME_COLOR_GREEN |
protected static Color |
FRAME_COLOR_PURPLE |
protected static Color |
FRAME_COLOR_RED |
protected static Color |
FRAME_COLOR_YELLOW |
protected static Map<String,Color> |
frameColorMap |
protected static String |
FRAMES_PATH |
protected static Color |
ICON_COLOR_DARK_GREEN |
protected static Color |
ICON_COLOR_GREEN |
protected static Color |
ICON_COLOR_ORANGE |
protected static Color |
ICON_COLOR_RED |
protected static Color |
ICON_COLOR_YELLOW |
protected static Map<String,Color> |
iconColorMap |
protected static String |
ICONS_PATH |
protected static Map<String,String> |
schemePathMap |
protected static String |
TACTICAL_SYMBOLS_PATH |
protected static Set<String> |
unfilledIconMap |
protected static Set<String> |
unframedIconMap |
protected static String |
UNKNOWN_PATH |
retrieverPath
Constructor and Description |
---|
MilStd2525IconRetriever(String retrieverPath)
Create a new retriever that will retrieve icons from the specified location.
|
drawImage, equals, getRetrieverPath, hashCode, multiply, readImage, replaceColor
protected static final int CIRCLE_LINE_WIDTH
protected static final int CIRCLE_RADIUS
protected static final Color DEFAULT_FRAME_COLOR
protected static final Color DEFAULT_ICON_COLOR
protected static final String DEFAULT_IMAGE_FORMAT
protected static final Color FILL_COLOR_LIGHT_BLUE
protected static final Color FILL_COLOR_LIGHT_GREEN
protected static final Color FILL_COLOR_LIGHT_PURPLE
protected static final Color FILL_COLOR_LIGHT_RED
protected static final Color FILL_COLOR_LIGHT_YELLOW
protected static final String FILLS_PATH
protected static final Color FRAME_COLOR_BLUE
protected static final Color FRAME_COLOR_GREEN
protected static final Color FRAME_COLOR_PURPLE
protected static final Color FRAME_COLOR_RED
protected static final Color FRAME_COLOR_YELLOW
protected static final String FRAMES_PATH
protected static final Color ICON_COLOR_DARK_GREEN
protected static final Color ICON_COLOR_GREEN
protected static final Color ICON_COLOR_ORANGE
protected static final Color ICON_COLOR_RED
protected static final Color ICON_COLOR_YELLOW
protected static final String ICONS_PATH
protected static final String TACTICAL_SYMBOLS_PATH
protected static final String UNKNOWN_PATH
public MilStd2525IconRetriever(String retrieverPath)
retrieverPath
- File path or URL to the symbol directory, for example "http://myserver.com/milstd2525/".protected String composeFillPath(SymbolCode symbolCode)
protected String composeFramePath(SymbolCode symbolCode)
protected String composeIconPath(SymbolCode symbolCode, AVList params)
public BufferedImage createIcon(String sidc, AVList params)
sidc
- SIDC identifier for the symbol.params
- Parameters that affect icon retrieval. See Parameters in class
documentation.protected BufferedImage drawCircle(SymbolCode symbolCode, AVList params, BufferedImage dest)
protected BufferedImage drawFill(SymbolCode symbolCode, AVList params, BufferedImage dest)
protected BufferedImage drawFrame(SymbolCode symbolCode, AVList params, BufferedImage dest)
protected BufferedImage drawIcon(SymbolCode symbolCode, AVList params, BufferedImage dest)
protected BufferedImage drawIconComponent(String path, Color color, BufferedImage dest)
protected Color getColorFromParams(AVList params)
params
- Parameter list.protected Color getFillColor(SymbolCode symbolCode, AVList params)
protected Color getFrameColor(SymbolCode symbolCode, AVList params)
protected String getGroundFunctionId(SymbolCode symbolCode)
protected Color getIconColor(SymbolCode symbolCode, AVList params)
protected String getMaskedFillCode(SymbolCode symbolCode)
protected String getMaskedFrameCode(SymbolCode symbolCode)
protected String getMaskedIconCode(SymbolCode symbolCode, AVList params)
protected String getMaskedUnknownIconCode(SymbolCode symbolCode, AVList params)
protected String getSimpleStandardIdentity(SymbolCode symbolCode)
protected String getSimpleStatus(SymbolCode symbolCode)
protected boolean isDashedFrame(SymbolCode symbolCode)
protected boolean mustDrawFill(SymbolCode symbolCode, AVList params)
protected boolean mustDrawFrame(SymbolCode symbolCode, AVList params)
protected boolean mustDrawIcon(SymbolCode symbolCode, AVList params)
protected SymbolCode transformToWarfightingScheme(SymbolCode symbolCode)