Package org.apache.poi.xslf.util
Class DummyGraphics2d
- java.lang.Object
-
- java.awt.Graphics
-
- java.awt.Graphics2D
-
- org.apache.poi.xslf.util.DummyGraphics2d
-
public class DummyGraphics2d extends Graphics2D
-
-
Constructor Summary
Constructors Constructor Description DummyGraphics2d()DummyGraphics2d(PrintStream log)DummyGraphics2d(PrintStream log, Graphics2D g2D)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRenderingHints(Map<?,?> hints)voidclearRect(int x, int y, int width, int height)voidclip(Shape s)voidclipRect(int x, int y, int width, int height)voidcopyArea(int x, int y, int width, int height, int dx, int dy)Graphicscreate()Graphicscreate(int x, int y, int width, int height)voiddispose()voiddraw(Shape s)voiddraw3DRect(int x, int y, int width, int height, boolean raised)voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle)voiddrawBytes(byte[] data, int offset, int length, int x, int y)voiddrawChars(char[] data, int offset, int length, int x, int y)voiddrawGlyphVector(GlyphVector g, float x, float y)voiddrawImage(BufferedImage img, BufferedImageOp op, int x, int y)booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)booleandrawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)booleandrawImage(Image img, int x, int y, int width, int height, ImageObserver observer)booleandrawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)booleandrawImage(Image img, int x, int y, ImageObserver observer)booleandrawImage(Image img, AffineTransform xform, ImageObserver obs)voiddrawLine(int x1, int y1, int x2, int y2)voiddrawOval(int x, int y, int width, int height)voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints)voiddrawPolygon(Polygon p)voiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints)voiddrawRect(int x, int y, int width, int height)voiddrawRenderableImage(RenderableImage img, AffineTransform xform)voiddrawRenderedImage(RenderedImage img, AffineTransform xform)voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)voiddrawString(String s, float x, float y)voiddrawString(String str, int x, int y)voiddrawString(AttributedCharacterIterator iterator, float x, float y)voiddrawString(AttributedCharacterIterator iterator, int x, int y)voidfill(Shape s)voidfill3DRect(int x, int y, int width, int height, boolean raised)voidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle)voidfillOval(int x, int y, int width, int height)voidfillPolygon(int[] xPoints, int[] yPoints, int nPoints)voidfillPolygon(Polygon p)voidfillRect(int x, int y, int width, int height)voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)ColorgetBackground()ShapegetClip()RectanglegetClipBounds()RectanglegetClipBounds(Rectangle r)ColorgetColor()CompositegetComposite()GraphicsConfigurationgetDeviceConfiguration()FontgetFont()FontMetricsgetFontMetrics()FontMetricsgetFontMetrics(Font f)FontRenderContextgetFontRenderContext()PaintgetPaint()ObjectgetRenderingHint(RenderingHints.Key hintKey)RenderingHintsgetRenderingHints()StrokegetStroke()AffineTransformgetTransform()booleanhit(Rectangle rect, Shape s, boolean onStroke)booleanhitClip(int x, int y, int width, int height)voidrotate(double theta)voidrotate(double theta, double x, double y)voidscale(double sx, double sy)voidsetBackground(Color color)voidsetClip(int x, int y, int width, int height)voidsetClip(Shape clip)voidsetColor(Color c)voidsetComposite(Composite comp)voidsetFont(Font font)voidsetPaint(Paint paint)voidsetPaintMode()voidsetRenderingHint(RenderingHints.Key hintKey, Object hintValue)voidsetRenderingHints(Map<?,?> hints)voidsetStroke(Stroke s)voidsetTransform(AffineTransform Tx)voidsetXORMode(Color c1)voidshear(double shx, double shy)StringtoString()voidtransform(AffineTransform Tx)voidtranslate(double tx, double ty)voidtranslate(int x, int y)-
Methods inherited from class java.awt.Graphics
finalize, getClipRect
-
-
-
-
Constructor Detail
-
DummyGraphics2d
public DummyGraphics2d()
-
DummyGraphics2d
public DummyGraphics2d(PrintStream log)
-
DummyGraphics2d
public DummyGraphics2d(PrintStream log, Graphics2D g2D)
-
-
Method Detail
-
addRenderingHints
public void addRenderingHints(Map<?,?> hints)
- Specified by:
addRenderingHintsin classGraphics2D
-
clip
public void clip(Shape s)
- Specified by:
clipin classGraphics2D
-
draw
public void draw(Shape s)
- Specified by:
drawin classGraphics2D
-
drawGlyphVector
public void drawGlyphVector(GlyphVector g, float x, float y)
- Specified by:
drawGlyphVectorin classGraphics2D
-
drawImage
public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
- Specified by:
drawImagein classGraphics2D
-
drawImage
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
- Specified by:
drawImagein classGraphics2D
-
drawRenderableImage
public void drawRenderableImage(RenderableImage img, AffineTransform xform)
- Specified by:
drawRenderableImagein classGraphics2D
-
drawRenderedImage
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
- Specified by:
drawRenderedImagein classGraphics2D
-
drawString
public void drawString(String s, float x, float y)
- Specified by:
drawStringin classGraphics2D
-
fill
public void fill(Shape s)
- Specified by:
fillin classGraphics2D
-
getBackground
public Color getBackground()
- Specified by:
getBackgroundin classGraphics2D
-
getComposite
public Composite getComposite()
- Specified by:
getCompositein classGraphics2D
-
getDeviceConfiguration
public GraphicsConfiguration getDeviceConfiguration()
- Specified by:
getDeviceConfigurationin classGraphics2D
-
getFontRenderContext
public FontRenderContext getFontRenderContext()
- Specified by:
getFontRenderContextin classGraphics2D
-
getPaint
public Paint getPaint()
- Specified by:
getPaintin classGraphics2D
-
getRenderingHint
public Object getRenderingHint(RenderingHints.Key hintKey)
- Specified by:
getRenderingHintin classGraphics2D
-
getRenderingHints
public RenderingHints getRenderingHints()
- Specified by:
getRenderingHintsin classGraphics2D
-
getStroke
public Stroke getStroke()
- Specified by:
getStrokein classGraphics2D
-
getTransform
public AffineTransform getTransform()
- Specified by:
getTransformin classGraphics2D
-
hit
public boolean hit(Rectangle rect, Shape s, boolean onStroke)
- Specified by:
hitin classGraphics2D
-
rotate
public void rotate(double theta)
- Specified by:
rotatein classGraphics2D
-
rotate
public void rotate(double theta, double x, double y)- Specified by:
rotatein classGraphics2D
-
scale
public void scale(double sx, double sy)- Specified by:
scalein classGraphics2D
-
setBackground
public void setBackground(Color color)
- Specified by:
setBackgroundin classGraphics2D
-
setComposite
public void setComposite(Composite comp)
- Specified by:
setCompositein classGraphics2D
-
setPaint
public void setPaint(Paint paint)
- Specified by:
setPaintin classGraphics2D
-
setRenderingHint
public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
- Specified by:
setRenderingHintin classGraphics2D
-
setRenderingHints
public void setRenderingHints(Map<?,?> hints)
- Specified by:
setRenderingHintsin classGraphics2D
-
setStroke
public void setStroke(Stroke s)
- Specified by:
setStrokein classGraphics2D
-
setTransform
public void setTransform(AffineTransform Tx)
- Specified by:
setTransformin classGraphics2D
-
shear
public void shear(double shx, double shy)- Specified by:
shearin classGraphics2D
-
transform
public void transform(AffineTransform Tx)
- Specified by:
transformin classGraphics2D
-
translate
public void translate(double tx, double ty)- Specified by:
translatein classGraphics2D
-
clearRect
public void clearRect(int x, int y, int width, int height)
-
clipRect
public void clipRect(int x, int y, int width, int height)
-
copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy)
-
create
public Graphics create(int x, int y, int width, int height)
-
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised)- Overrides:
draw3DRectin classGraphics2D
-
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
-
drawBytes
public void drawBytes(byte[] data, int offset, int length, int x, int y)
-
drawChars
public void drawChars(char[] data, int offset, int length, int x, int y)
-
drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
-
drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
-
drawImage
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
-
drawImage
public boolean drawImage(Image img, int x, int y, ImageObserver observer)
-
drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
-
drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
-
drawLine
public void drawLine(int x1, int y1, int x2, int y2)
-
drawOval
public void drawOval(int x, int y, int width, int height)
-
drawPolygon
public void drawPolygon(Polygon p)
- Overrides:
drawPolygonin classGraphics
-
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)- Specified by:
drawPolygonin classGraphics
-
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)- Specified by:
drawPolylinein classGraphics
-
drawRect
public void drawRect(int x, int y, int width, int height)
-
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)- Specified by:
drawRoundRectin classGraphics
-
drawString
public void drawString(AttributedCharacterIterator iterator, float x, float y)
- Specified by:
drawStringin classGraphics2D
-
drawString
public void drawString(AttributedCharacterIterator iterator, int x, int y)
- Specified by:
drawStringin classGraphics2D
-
drawString
public void drawString(String str, int x, int y)
- Specified by:
drawStringin classGraphics2D
-
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised)- Overrides:
fill3DRectin classGraphics2D
-
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
-
fillOval
public void fillOval(int x, int y, int width, int height)
-
fillPolygon
public void fillPolygon(Polygon p)
- Overrides:
fillPolygonin classGraphics
-
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)- Specified by:
fillPolygonin classGraphics
-
fillRect
public void fillRect(int x, int y, int width, int height)
-
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)- Specified by:
fillRoundRectin classGraphics
-
getClipBounds
public Rectangle getClipBounds()
- Specified by:
getClipBoundsin classGraphics
-
getClipBounds
public Rectangle getClipBounds(Rectangle r)
- Overrides:
getClipBoundsin classGraphics
-
getFontMetrics
public FontMetrics getFontMetrics()
- Overrides:
getFontMetricsin classGraphics
-
getFontMetrics
public FontMetrics getFontMetrics(Font f)
- Specified by:
getFontMetricsin classGraphics
-
hitClip
public boolean hitClip(int x, int y, int width, int height)
-
setClip
public void setClip(int x, int y, int width, int height)
-
setPaintMode
public void setPaintMode()
- Specified by:
setPaintModein classGraphics
-
setXORMode
public void setXORMode(Color c1)
- Specified by:
setXORModein classGraphics
-
translate
public void translate(int x, int y)- Specified by:
translatein classGraphics2D
-
-