APIdia Launch Partner
Top Description Constructors Methods
sun.java2d.pipe

public Class NullPipe

extends Object
implements PixelDrawPipe, PixelFillPipe, ShapeDrawPipe, TextPipe, DrawImagePipe
Class Inheritance
All Implemented Interfaces
sun.java2d.pipe.DrawImagePipe, sun.java2d.pipe.TextPipe, sun.java2d.pipe.ShapeDrawPipe, sun.java2d.pipe.PixelFillPipe, sun.java2d.pipe.PixelDrawPipe
Imports
java.awt.Color, .Image, .Shape, java.awt.geom.AffineTransform, java.awt.image.BufferedImage, .BufferedImageOp, .ImageObserver, java.awt.font.GlyphVector, sun.java2d.SunGraphics2D

This is a class that implements all of the basic pixel rendering methods as NOPs. This class is useful for installing as the pipeline when the clip is determined to be empty or when the composite operation is determined to have no effect (i.e. rule == SRC_OVER, extraAlpha == 0.0).

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.copyImage.

public boolean
copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.copyImage.

public void
public void
drawArc(SunGraphics2D sg, int x, int y, int width, int height, int startAngle, int arcAngle)

Implements sun.java2d.pipe.PixelDrawPipe.drawArc.

public void
drawChars(SunGraphics2D sg, char[] data, int offset, int length, int x, int y)

Implements sun.java2d.pipe.TextPipe.drawChars.

public void
public void
drawLine(SunGraphics2D sg, int x1, int y1, int x2, int y2)

Implements sun.java2d.pipe.PixelDrawPipe.drawLine.

public void
drawOval(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelDrawPipe.drawOval.

public void
drawPolygon(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolygon.

public void
drawPolyline(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolyline.

public void
drawRect(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelDrawPipe.drawRect.

public void
drawRoundRect(SunGraphics2D sg, int x, int y, int width, int height, int arcWidth, int arcHeight)

Implements sun.java2d.pipe.PixelDrawPipe.drawRoundRect.

public void
public void
public void
fillArc(SunGraphics2D sg, int x, int y, int width, int height, int startAngle, int arcAngle)

Implements sun.java2d.pipe.PixelFillPipe.fillArc.

public void
fillOval(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelFillPipe.fillOval.

public void
fillPolygon(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelFillPipe.fillPolygon.

public void
fillRect(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelFillPipe.fillRect.

public void
fillRoundRect(SunGraphics2D sg, int x, int y, int width, int height, int arcWidth, int arcHeight)

Implements sun.java2d.pipe.PixelFillPipe.fillRoundRect.

public boolean
scaleImage(SunGraphics2D sg, Image img, int x, int y, int w, int h, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.scaleImage.

public boolean
scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.scaleImage.

public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NullPipeback to summary
public NullPipe()

Method Detail

copyImageback to summary
public boolean copyImage(SunGraphics2D sg, Image img, int x, int y, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.copyImage.

copyImageback to summary
public boolean copyImage(SunGraphics2D sg, Image img, int dx, int dy, int sx, int sy, int w, int h, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.copyImage.

drawback to summary
public void draw(SunGraphics2D sg, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.draw.

drawArcback to summary
public void drawArc(SunGraphics2D sg, int x, int y, int width, int height, int startAngle, int arcAngle)

Implements sun.java2d.pipe.PixelDrawPipe.drawArc.

drawCharsback to summary
public void drawChars(SunGraphics2D sg, char[] data, int offset, int length, int x, int y)

Implements sun.java2d.pipe.TextPipe.drawChars.

drawGlyphVectorback to summary
public void drawGlyphVector(SunGraphics2D sg, GlyphVector g, float x, float y)

Implements sun.java2d.pipe.TextPipe.drawGlyphVector.

drawLineback to summary
public void drawLine(SunGraphics2D sg, int x1, int y1, int x2, int y2)

Implements sun.java2d.pipe.PixelDrawPipe.drawLine.

drawOvalback to summary
public void drawOval(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelDrawPipe.drawOval.

drawPolygonback to summary
public void drawPolygon(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolygon.

drawPolylineback to summary
public void drawPolyline(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelDrawPipe.drawPolyline.

drawRectback to summary
public void drawRect(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelDrawPipe.drawRect.

drawRoundRectback to summary
public void drawRoundRect(SunGraphics2D sg, int x, int y, int width, int height, int arcWidth, int arcHeight)

Implements sun.java2d.pipe.PixelDrawPipe.drawRoundRect.

drawStringback to summary
public void drawString(SunGraphics2D sg, String s, double x, double y)

Implements sun.java2d.pipe.TextPipe.drawString.

fillback to summary
public void fill(SunGraphics2D sg, Shape s)

Implements sun.java2d.pipe.ShapeDrawPipe.fill.

fillArcback to summary
public void fillArc(SunGraphics2D sg, int x, int y, int width, int height, int startAngle, int arcAngle)

Implements sun.java2d.pipe.PixelFillPipe.fillArc.

fillOvalback to summary
public void fillOval(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelFillPipe.fillOval.

fillPolygonback to summary
public void fillPolygon(SunGraphics2D sg, int[] xPoints, int[] yPoints, int nPoints)

Implements sun.java2d.pipe.PixelFillPipe.fillPolygon.

fillRectback to summary
public void fillRect(SunGraphics2D sg, int x, int y, int width, int height)

Implements sun.java2d.pipe.PixelFillPipe.fillRect.

fillRoundRectback to summary
public void fillRoundRect(SunGraphics2D sg, int x, int y, int width, int height, int arcWidth, int arcHeight)

Implements sun.java2d.pipe.PixelFillPipe.fillRoundRect.

scaleImageback to summary
public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y, int w, int h, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.scaleImage.

scaleImageback to summary
public boolean scaleImage(SunGraphics2D sg, Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgColor, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.scaleImage.

transformImageback to summary
public boolean transformImage(SunGraphics2D sg, Image img, AffineTransform atfm, ImageObserver observer)

Implements sun.java2d.pipe.DrawImagePipe.transformImage.

transformImageback to summary
public void transformImage(SunGraphics2D sg, BufferedImage img, BufferedImageOp op, int x, int y)

Implements sun.java2d.pipe.DrawImagePipe.transformImage.