@Override
    void paint(Graphics2D g, int x, int y, int width, int height) {
      if (mySet != null) {
        Iterator<ErrorStripe> iterator = mySet.iterator();
        if (iterator.hasNext()) {
          int thickness = myAlignment != null ? myMin + myGap : height;
          if (thickness < height) {
            int count = Math.min(height / thickness, mySet.size());
            y += getOffset(height, thickness * count);
            do {
              g.setColor(iterator.next().getColor());
              g.fillRect(x, y, width, thickness - myGap);
              y += thickness;
            }
            while (--count > 0 && iterator.hasNext());
          }
          else {
            g.setColor(iterator.next().getColor());
            g.fillRect(x, y, width, thickness - myGap);
          }
        }
      }
    }
@Override
    void paint(Graphics2D g, int x, int y, int width, int height)