Пример #1
0
  /** Overrides <code>Graphics.create</code> to return a DebugGraphics object. */
  public Graphics create() {
    DebugGraphics debugGraphics;

    debugGraphics = new DebugGraphics();
    debugGraphics.graphics = graphics.create();
    debugGraphics.debugOptions = debugOptions;
    debugGraphics.buffer = buffer;

    return debugGraphics;
  }
Пример #2
0
  /** Overrides <code>Graphics.create</code> to return a DebugGraphics object. */
  public Graphics create(int x, int y, int width, int height) {
    DebugGraphics debugGraphics;

    debugGraphics = new DebugGraphics();
    debugGraphics.graphics = graphics.create(x, y, width, height);
    debugGraphics.debugOptions = debugOptions;
    debugGraphics.buffer = buffer;
    debugGraphics.xOffset = xOffset + x;
    debugGraphics.yOffset = yOffset + y;

    return debugGraphics;
  }