/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 * 
 * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved.
 * 
 * The contents of this file are subject to the terms of the GNU
 * General Public License Version 3 only ("GPL").  
 * You may not use this file except in compliance with the License. 
 * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html
 * See the License for the specific language governing permissions and limitations under the License.
 * 
 * When distributing the software, include this License Header Notice in each file.
 * 
 */

package org.jopendocument.util;

import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.RenderingHints.Key;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ImageObserver;
import java.awt.image.RenderedImage;
import java.awt.image.renderable.RenderableImage;
import java.text.AttributedCharacterIterator;
import java.util.Map;

public final class DummyGraphics2D extends Graphics2D {

    public final void addRenderingHints(Map<?, ?> hints) {
    }

    public final void clip(Shape s) {
    }

    public final void draw(Shape s) {
    }

    public final void drawGlyphVector(GlyphVector g, float x, float y) {
    }

    public final boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) {
        return true;
    }

    public final void drawImage(BufferedImage img, BufferedImageOp op, int x, int y) {
    }

    public final void drawRenderableImage(RenderableImage img, AffineTransform xform) {
    }

    public final void drawRenderedImage(RenderedImage img, AffineTransform xform) {
    }

    public final void drawString(String str, int x, int y) {
    }

    public final void drawString(String str, float x, float y) {
    }

    public final void drawString(AttributedCharacterIterator iterator, int x, int y) {
    }

    public final void drawString(AttributedCharacterIterator iterator, float x, float y) {
    }

    public final void fill(Shape s) {
    }

    public final Color getBackground() {
        return null;
    }

    public final Composite getComposite() {
        return null;
    }

    public final GraphicsConfiguration getDeviceConfiguration() {
        return null;
    }

    public final FontRenderContext getFontRenderContext() {
        return null;
    }

    public final Paint getPaint() {
        return null;
    }

    public final Object getRenderingHint(Key hintKey) {
        return null;
    }

    public final RenderingHints getRenderingHints() {
        return null;
    }

    public final Stroke getStroke() {
        return null;
    }

    public final AffineTransform getTransform() {
        return null;
    }

    public final boolean hit(Rectangle rect, Shape s, boolean onStroke) {
        return false;
    }

    public final void rotate(double theta) {
    }

    public final void rotate(double theta, double x, double y) {
    }

    public final void scale(double sx, double sy) {
    }

    public final void setBackground(Color color) {
    }

    public final void setComposite(Composite comp) {
    }

    public final void setPaint(Paint paint) {
    }

    public final void setRenderingHint(Key hintKey, Object hintValue) {
    }

    public final void setRenderingHints(Map<?, ?> hints) {
    }

    public final void setStroke(Stroke s) {
    }

    public final void setTransform(AffineTransform Tx) {
    }

    public final void shear(double shx, double shy) {
    }

    public final void transform(AffineTransform Tx) {
    }

    public final void translate(int x, int y) {
    }

    public final void translate(double tx, double ty) {
    }

    public final void clearRect(int x, int y, int width, int height) {
    }

    public final void clipRect(int x, int y, int width, int height) {
    }

    public final void copyArea(int x, int y, int width, int height, int dx, int dy) {
    }

    public final Graphics create() {
        return this;
    }

    public final void dispose() {
    }

    public final void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
    }

    public final boolean drawImage(Image img, int x, int y, ImageObserver observer) {
        return false;
    }

    public final boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) {
        return false;
    }

    public final boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) {
        return false;
    }

    public final boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) {
        return false;
    }

    public final boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) {
        return false;
    }

    public final boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) {
        return false;
    }

    public final void drawLine(int x1, int y1, int x2, int y2) {
    }

    public final void drawOval(int x, int y, int width, int height) {
    }

    public final void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) {
    }

    public final void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) {
    }

    public final void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
    }

    public final void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
    }

    public final void fillOval(int x, int y, int width, int height) {
    }

    public final void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) {
    }

    public final void fillRect(int x, int y, int width, int height) {
    }

    public final void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
    }

    public final Shape getClip() {
        return null;
    }

    public final Rectangle getClipBounds() {
        return null;
    }

    public final Color getColor() {
        return null;
    }

    public final Font getFont() {
        return null;
    }

    public final FontMetrics getFontMetrics(Font f) {
        return new DummyFontMetrics(f);
    }

    public final void setClip(Shape clip) {
    }

    public final void setClip(int x, int y, int width, int height) {
    }

    public final void setColor(Color c) {
    }

    public final void setFont(Font font) {
    }

    public final void setPaintMode() {
    }

    public final void setXORMode(Color c1) {
    }

}
