public static void paintTag(Graphics2D g2, float width, float height, boolean hasFocus, Outline type) {
    if (type == Outline.focus && !hasFocus) {
      return;
    }
    else {
      type.setGraphicsColor(g2, hasFocus);
    }

    float bw = BW.getFloat();
    Path2D border = new Path2D.Float(Path2D.WIND_EVEN_ODD);
    border.append(new RoundRectangle2D.Float(0, 0, width, height, height, height), false);
    float inner = height - bw * 2;
    border.append(new RoundRectangle2D.Float(bw, bw, width - bw * 2, inner, inner, inner), false);
    g2.fill(border);
  }
public static void paintTag(Graphics2D g2, float width, float height, boolean hasFocus, Outline type)