Esempio n. 1
0
 /**
  * Creates a simple line with default widt.
  *
  * @param color The color to use
  * @param isAreaEdge If this is an edge for an area. Edges are drawn at lower Z-Index.
  * @return The line style.
  */
 public static LineElement createSimpleLineStyle(Color color, boolean isAreaEdge) {
   MultiCascade mc = new MultiCascade();
   Cascade c = mc.getOrCreateCascade("default");
   c.put(WIDTH, Keyword.DEFAULT);
   c.put(COLOR, color != null ? color : PaintColors.UNTAGGED.get());
   c.put(OPACITY, 1f);
   if (isAreaEdge) {
     c.put(Z_INDEX, -3f);
   }
   Way w = new Way();
   return createLine(new Environment(w, mc, "default", null));
 }