public String toString() {
      String str =
          "[Zone]\n"
              + "Name: "
              + iName
              + "\n"
              + "OffsetMillis: "
              + iOffsetMillis
              + "\n"
              + "Rules: "
              + iRules
              + "\n"
              + "Format: "
              + iFormat
              + "\n"
              + "UntilYear: "
              + iUntilYear
              + "\n"
              + iUntilDateTimeOfYear;

      if (iNext == null) {
        return str;
      }

      return str + "...\n" + iNext.toString();
    }
Beispiel #2
0
  private void analyse(double x, double y) {
    StringBuffer buf = new StringBuffer();

    List<Zone> zones = getShot().getZones(x, y);

    if (zones.size() > 0) {
      for (Zone zone : zones) {
        buf.append(zone.toString() + "\n");
      }
    }

    lblInfo.setText(buf.toString());
  }