org.jopendocument.util
Class DummyGraphics2D

java.lang.Object
  extended by java.awt.Graphics
      extended by java.awt.Graphics2D
          extended by org.jopendocument.util.DummyGraphics2D

public final class DummyGraphics2D
extends Graphics2D


Constructor Summary
DummyGraphics2D()
           
 
Method Summary
 void addRenderingHints(Map<?,?> hints)
           
 void clearRect(int x, int y, int width, int height)
           
 void clip(Shape s)
           
 void clipRect(int x, int y, int width, int height)
           
 void copyArea(int x, int y, int width, int height, int dx, int dy)
           
 Graphics create()
           
 void dispose()
           
 void draw(Shape s)
           
 void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
           
 void drawGlyphVector(GlyphVector g, float x, float y)
           
 void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
           
 boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
           
 boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
           
 boolean drawImage(Image img, int x, int y, ImageObserver observer)
           
 boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
           
 boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
           
 boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
           
 boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
           
 void drawLine(int x1, int y1, int x2, int y2)
           
 void drawOval(int x, int y, int width, int height)
           
 void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
           
 void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
           
 void drawRenderableImage(RenderableImage img, AffineTransform xform)
           
 void drawRenderedImage(RenderedImage img, AffineTransform xform)
           
 void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
           
 void drawString(AttributedCharacterIterator iterator, float x, float y)
           
 void drawString(AttributedCharacterIterator iterator, int x, int y)
           
 void drawString(String str, float x, float y)
           
 void drawString(String str, int x, int y)
           
 void fill(Shape s)
           
 void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
           
 void fillOval(int x, int y, int width, int height)
           
 void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
           
 void fillRect(int x, int y, int width, int height)
           
 void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
           
 Color getBackground()
           
 Shape getClip()
           
 Rectangle getClipBounds()
           
 Color getColor()
           
 Composite getComposite()
           
 GraphicsConfiguration getDeviceConfiguration()
           
 Font getFont()
           
 FontMetrics getFontMetrics(Font f)
           
 FontRenderContext getFontRenderContext()
           
 Paint getPaint()
           
 Object getRenderingHint(RenderingHints.Key hintKey)
           
 RenderingHints getRenderingHints()
           
 Stroke getStroke()
           
 AffineTransform getTransform()
           
 boolean hit(Rectangle rect, Shape s, boolean onStroke)
           
 void rotate(double theta)
           
 void rotate(double theta, double x, double y)
           
 void scale(double sx, double sy)
           
 void setBackground(Color color)
           
 void setClip(int x, int y, int width, int height)
           
 void setClip(Shape clip)
           
 void setColor(Color c)
           
 void setComposite(Composite comp)
           
 void setFont(Font font)
           
 void setPaint(Paint paint)
           
 void setPaintMode()
           
 void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
           
 void setRenderingHints(Map<?,?> hints)
           
 void setStroke(Stroke s)
           
 void setTransform(AffineTransform Tx)
           
 void setXORMode(Color c1)
           
 void shear(double shx, double shy)
           
 void transform(AffineTransform Tx)
           
 void translate(double tx, double ty)
           
 void translate(int x, int y)
           
 
Methods inherited from class java.awt.Graphics2D
draw3DRect, fill3DRect
 
Methods inherited from class java.awt.Graphics
create, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyGraphics2D

public DummyGraphics2D()
Method Detail

addRenderingHints

public final void addRenderingHints(Map<?,?> hints)
Specified by:
addRenderingHints in class Graphics2D

clip

public final void clip(Shape s)
Specified by:
clip in class Graphics2D

draw

public final void draw(Shape s)
Specified by:
draw in class Graphics2D

drawGlyphVector

public final void drawGlyphVector(GlyphVector g,
                                  float x,
                                  float y)
Specified by:
drawGlyphVector in class Graphics2D

drawImage

public final boolean drawImage(Image img,
                               AffineTransform xform,
                               ImageObserver obs)
Specified by:
drawImage in class Graphics2D

drawImage

public final void drawImage(BufferedImage img,
                            BufferedImageOp op,
                            int x,
                            int y)
Specified by:
drawImage in class Graphics2D

drawRenderableImage

public final void drawRenderableImage(RenderableImage img,
                                      AffineTransform xform)
Specified by:
drawRenderableImage in class Graphics2D

drawRenderedImage

public final void drawRenderedImage(RenderedImage img,
                                    AffineTransform xform)
Specified by:
drawRenderedImage in class Graphics2D

drawString

public final void drawString(String str,
                             int x,
                             int y)
Specified by:
drawString in class Graphics2D

drawString

public final void drawString(String str,
                             float x,
                             float y)
Specified by:
drawString in class Graphics2D

drawString

public final void drawString(AttributedCharacterIterator iterator,
                             int x,
                             int y)
Specified by:
drawString in class Graphics2D

drawString

public final void drawString(AttributedCharacterIterator iterator,
                             float x,
                             float y)
Specified by:
drawString in class Graphics2D

fill

public final void fill(Shape s)
Specified by:
fill in class Graphics2D

getBackground

public final Color getBackground()
Specified by:
getBackground in class Graphics2D

getComposite

public final Composite getComposite()
Specified by:
getComposite in class Graphics2D

getDeviceConfiguration

public final GraphicsConfiguration getDeviceConfiguration()
Specified by:
getDeviceConfiguration in class Graphics2D

getFontRenderContext

public final FontRenderContext getFontRenderContext()
Specified by:
getFontRenderContext in class Graphics2D

getPaint

public final Paint getPaint()
Specified by:
getPaint in class Graphics2D

getRenderingHint

public final Object getRenderingHint(RenderingHints.Key hintKey)
Specified by:
getRenderingHint in class Graphics2D

getRenderingHints

public final RenderingHints getRenderingHints()
Specified by:
getRenderingHints in class Graphics2D

getStroke

public final Stroke getStroke()
Specified by:
getStroke in class Graphics2D

getTransform

public final AffineTransform getTransform()
Specified by:
getTransform in class Graphics2D

hit

public final boolean hit(Rectangle rect,
                         Shape s,
                         boolean onStroke)
Specified by:
hit in class Graphics2D

rotate

public final void rotate(double theta)
Specified by:
rotate in class Graphics2D

rotate

public final void rotate(double theta,
                         double x,
                         double y)
Specified by:
rotate in class Graphics2D

scale

public final void scale(double sx,
                        double sy)
Specified by:
scale in class Graphics2D

setBackground

public final void setBackground(Color color)
Specified by:
setBackground in class Graphics2D

setComposite

public final void setComposite(Composite comp)
Specified by:
setComposite in class Graphics2D

setPaint

public final void setPaint(Paint paint)
Specified by:
setPaint in class Graphics2D

setRenderingHint

public final void setRenderingHint(RenderingHints.Key hintKey,
                                   Object hintValue)
Specified by:
setRenderingHint in class Graphics2D

setRenderingHints

public final void setRenderingHints(Map<?,?> hints)
Specified by:
setRenderingHints in class Graphics2D

setStroke

public final void setStroke(Stroke s)
Specified by:
setStroke in class Graphics2D

setTransform

public final void setTransform(AffineTransform Tx)
Specified by:
setTransform in class Graphics2D

shear

public final void shear(double shx,
                        double shy)
Specified by:
shear in class Graphics2D

transform

public final void transform(AffineTransform Tx)
Specified by:
transform in class Graphics2D

translate

public final void translate(int x,
                            int y)
Specified by:
translate in class Graphics2D

translate

public final void translate(double tx,
                            double ty)
Specified by:
translate in class Graphics2D

clearRect

public final void clearRect(int x,
                            int y,
                            int width,
                            int height)
Specified by:
clearRect in class Graphics

clipRect

public final void clipRect(int x,
                           int y,
                           int width,
                           int height)
Specified by:
clipRect in class Graphics

copyArea

public final void copyArea(int x,
                           int y,
                           int width,
                           int height,
                           int dx,
                           int dy)
Specified by:
copyArea in class Graphics

create

public final Graphics create()
Specified by:
create in class Graphics

dispose

public final void dispose()
Specified by:
dispose in class Graphics

drawArc

public final void drawArc(int x,
                          int y,
                          int width,
                          int height,
                          int startAngle,
                          int arcAngle)
Specified by:
drawArc in class Graphics

drawImage

public final boolean drawImage(Image img,
                               int x,
                               int y,
                               ImageObserver observer)
Specified by:
drawImage in class Graphics

drawImage

public final boolean drawImage(Image img,
                               int x,
                               int y,
                               Color bgcolor,
                               ImageObserver observer)
Specified by:
drawImage in class Graphics

drawImage

public final boolean drawImage(Image img,
                               int x,
                               int y,
                               int width,
                               int height,
                               ImageObserver observer)
Specified by:
drawImage in class Graphics

drawImage

public final boolean drawImage(Image img,
                               int x,
                               int y,
                               int width,
                               int height,
                               Color bgcolor,
                               ImageObserver observer)
Specified by:
drawImage in class Graphics

drawImage

public final boolean drawImage(Image img,
                               int dx1,
                               int dy1,
                               int dx2,
                               int dy2,
                               int sx1,
                               int sy1,
                               int sx2,
                               int sy2,
                               ImageObserver observer)
Specified by:
drawImage in class Graphics

drawImage

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)
Specified by:
drawImage in class Graphics

drawLine

public final void drawLine(int x1,
                           int y1,
                           int x2,
                           int y2)
Specified by:
drawLine in class Graphics

drawOval

public final void drawOval(int x,
                           int y,
                           int width,
                           int height)
Specified by:
drawOval in class Graphics

drawPolygon

public final void drawPolygon(int[] xPoints,
                              int[] yPoints,
                              int nPoints)
Specified by:
drawPolygon in class Graphics

drawPolyline

public final void drawPolyline(int[] xPoints,
                               int[] yPoints,
                               int nPoints)
Specified by:
drawPolyline in class Graphics

drawRoundRect

public final void drawRoundRect(int x,
                                int y,
                                int width,
                                int height,
                                int arcWidth,
                                int arcHeight)
Specified by:
drawRoundRect in class Graphics

fillArc

public final void fillArc(int x,
                          int y,
                          int width,
                          int height,
                          int startAngle,
                          int arcAngle)
Specified by:
fillArc in class Graphics

fillOval

public final void fillOval(int x,
                           int y,
                           int width,
                           int height)
Specified by:
fillOval in class Graphics

fillPolygon

public final void fillPolygon(int[] xPoints,
                              int[] yPoints,
                              int nPoints)
Specified by:
fillPolygon in class Graphics

fillRect

public final void fillRect(int x,
                           int y,
                           int width,
                           int height)
Specified by:
fillRect in class Graphics

fillRoundRect

public final void fillRoundRect(int x,
                                int y,
                                int width,
                                int height,
                                int arcWidth,
                                int arcHeight)
Specified by:
fillRoundRect in class Graphics

getClip

public final Shape getClip()
Specified by:
getClip in class Graphics

getClipBounds

public final Rectangle getClipBounds()
Specified by:
getClipBounds in class Graphics

getColor

public final Color getColor()
Specified by:
getColor in class Graphics

getFont

public final Font getFont()
Specified by:
getFont in class Graphics

getFontMetrics

public final FontMetrics getFontMetrics(Font f)
Specified by:
getFontMetrics in class Graphics

setClip

public final void setClip(Shape clip)
Specified by:
setClip in class Graphics

setClip

public final void setClip(int x,
                          int y,
                          int width,
                          int height)
Specified by:
setClip in class Graphics

setColor

public final void setColor(Color c)
Specified by:
setColor in class Graphics

setFont

public final void setFont(Font font)
Specified by:
setFont in class Graphics

setPaintMode

public final void setPaintMode()
Specified by:
setPaintMode in class Graphics

setXORMode

public final void setXORMode(Color c1)
Specified by:
setXORMode in class Graphics


Copyright © 2010 jOpenDocument All Rights Reserved.