0N/A/*
2362N/A * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.java2d.pipe;
0N/A
0N/Aimport java.awt.Color;
0N/Aimport java.awt.Image;
0N/Aimport java.awt.Shape;
0N/Aimport java.awt.geom.AffineTransform;
0N/Aimport java.awt.image.BufferedImage;
0N/Aimport java.awt.image.BufferedImageOp;
0N/Aimport java.awt.image.ImageObserver;
0N/Aimport java.awt.font.GlyphVector;
0N/Aimport sun.java2d.SunGraphics2D;
0N/A
0N/A/**
0N/A * This is a class that implements all of the basic pixel rendering
0N/A * methods as NOPs.
0N/A * This class is useful for installing as the pipeline when the
0N/A * clip is determined to be empty or when the composite operation is
0N/A * determined to have no effect (i.e. rule == SRC_OVER, extraAlpha == 0.0).
0N/A */
0N/Apublic class NullPipe
0N/A implements PixelDrawPipe, PixelFillPipe, ShapeDrawPipe, TextPipe,
0N/A DrawImagePipe
0N/A{
0N/A public void drawLine(SunGraphics2D sg,
0N/A int x1, int y1, int x2, int y2) {
0N/A }
0N/A
0N/A public void drawRect(SunGraphics2D sg,
0N/A int x, int y, int width, int height) {
0N/A }
0N/A
0N/A public void fillRect(SunGraphics2D sg,
0N/A int x, int y, int width, int height) {
0N/A }
0N/A
0N/A public void drawRoundRect(SunGraphics2D sg,
0N/A int x, int y, int width, int height,
0N/A int arcWidth, int arcHeight) {
0N/A }
0N/A
0N/A public void fillRoundRect(SunGraphics2D sg,
0N/A int x, int y, int width, int height,
0N/A int arcWidth, int arcHeight) {
0N/A }
0N/A
0N/A public void drawOval(SunGraphics2D sg,
0N/A int x, int y, int width, int height) {
0N/A }
0N/A
0N/A public void fillOval(SunGraphics2D sg,
0N/A int x, int y, int width, int height) {
0N/A }
0N/A
0N/A public void drawArc(SunGraphics2D sg,
0N/A int x, int y, int width, int height,
0N/A int startAngle, int arcAngle) {
0N/A }
0N/A
0N/A public void fillArc(SunGraphics2D sg,
0N/A int x, int y, int width, int height,
0N/A int startAngle, int arcAngle) {
0N/A }
0N/A
0N/A public void drawPolyline(SunGraphics2D sg,
0N/A int xPoints[], int yPoints[],
0N/A int nPoints) {
0N/A }
0N/A
0N/A public void drawPolygon(SunGraphics2D sg,
0N/A int xPoints[], int yPoints[],
0N/A int nPoints) {
0N/A }
0N/A
0N/A public void fillPolygon(SunGraphics2D sg,
0N/A int xPoints[], int yPoints[],
0N/A int nPoints) {
0N/A }
0N/A
0N/A public void draw(SunGraphics2D sg, Shape s) {
0N/A }
0N/A
0N/A public void fill(SunGraphics2D sg, Shape s) {
0N/A }
0N/A
0N/A public void drawString(SunGraphics2D sg, String s, double x, double y) {
0N/A }
0N/A
0N/A public void drawGlyphVector(SunGraphics2D sg, GlyphVector g,
0N/A float x, float y) {
0N/A }
0N/A
0N/A public void drawChars(SunGraphics2D sg,
0N/A char data[], int offset, int length,
0N/A int x, int y) {
0N/A }
0N/A
0N/A public boolean copyImage(SunGraphics2D sg, Image img,
0N/A int x, int y,
0N/A Color bgColor,
0N/A ImageObserver observer) {
0N/A return false;
0N/A }
0N/A public boolean copyImage(SunGraphics2D sg, Image img,
0N/A int dx, int dy, int sx, int sy, int w, int h,
0N/A Color bgColor,
0N/A ImageObserver observer) {
0N/A return false;
0N/A }
0N/A public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y,
0N/A int w, int h,
0N/A Color bgColor,
0N/A ImageObserver observer) {
0N/A return false;
0N/A }
0N/A public boolean scaleImage(SunGraphics2D sg, Image img,
0N/A int dx1, int dy1, int dx2, int dy2,
0N/A int sx1, int sy1, int sx2, int sy2,
0N/A Color bgColor,
0N/A ImageObserver observer) {
0N/A return false;
0N/A }
0N/A public boolean transformImage(SunGraphics2D sg, Image img,
0N/A AffineTransform atfm,
0N/A ImageObserver observer) {
0N/A return false;
0N/A }
0N/A public void transformImage(SunGraphics2D sg, BufferedImage img,
0N/A BufferedImageOp op, int x, int y) {
0N/A }
0N/A}