Beispiel #1
0
  @Override
  public boolean matches(Format format) {
    if (!super.matches(format)) {
      FormatTraceUtils.traceMatches(this, format, false);
      return false;
    }

    if (!(format instanceof GIFFormat)) {
      final boolean result = true;
      FormatTraceUtils.traceMatches(this, format, result);
      return result;
    }

    final GIFFormat oCast = (GIFFormat) format;

    final boolean result = true;

    FormatTraceUtils.traceMatches(this, format, result);

    return result;
  }
Beispiel #2
0
  @Override
  public Format intersects(Format other) {
    final Format result = super.intersects(other);

    if (other instanceof GIFFormat) {
      final GIFFormat resultCast = (GIFFormat) result;

      final GIFFormat oCast = (GIFFormat) other;
      if (getClass().isAssignableFrom(other.getClass())) {
        // "other" was cloned.
      } else if (other.getClass().isAssignableFrom(getClass())) { // this was cloned
      }
    }

    FormatTraceUtils.traceIntersects(this, other, result);

    return result;
  }