DrawingAttributes innerda = new DrawingAttributes();
innerda.setLinePaint(Color.white);
innerda.setStroke(new BasicStroke(1));
OpenMapAppPartCollection collection = OpenMapAppPartCollection.getInstance();
IconPartList parts = new IconPartList();
if (paint instanceof Color) {
Color color = (Color) paint;
Paint opaqueColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), 255);
DrawingAttributes opaqueDA = new DrawingAttributes();
opaqueDA.setLinePaint(opaqueColor);
opaqueDA.setStroke(new BasicStroke(3));
parts.add(collection.get("LR_TRI", opaqueDA));
parts.add(collection.get("UL_TRI", da));
parts.add(collection.get("LR_TRI", innerda));
parts.add(collection.get("UL_TRI", innerda));
} else {
parts.add(collection.get("BIG_BOX", da));
parts.add(collection.get("BIG_BOX", innerda));
}
return OMIconFactory.getIcon(icon_width, icon_height, parts);
}