Exemplo n.º 1
0
 @Override
 public void exportXML(
     final StringBuilder sb_body, final String indent, final XMLOptions options) {
   sb_body.append(indent).append("<t2_dissector\n");
   final String in = indent + "\t";
   super.exportXML(sb_body, in, options);
   final String[] RGB = Utils.getHexRGBColor(color);
   sb_body
       .append(in)
       .append("style=\"fill:none;stroke-opacity:")
       .append(alpha)
       .append(";stroke:#")
       .append(RGB[0])
       .append(RGB[1])
       .append(RGB[2])
       .append(";stroke-width:1.0px;\"\n");
   sb_body.append(indent).append(">\n");
   for (final Item item : al_items) {
     item.exportXML(sb_body, in);
   }
   super.restXML(sb_body, in, options);
   sb_body.append(indent).append("</t2_dissector>\n");
 }
Exemplo n.º 2
0
 @Override
 protected boolean layerRemoved(final Layer la) {
   super.layerRemoved(la);
   for (final Item item : al_items) item.layerRemoved(la.getId());
   return true;
 }