Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfGraphics2D [javadoc | source]
java.lang.Object
   java.awt.Graphics
      java.awt.Graphics2D
         com.lowagie.text.pdf.PdfGraphics2D

Direct Known Subclasses:
    PdfPrinterGraphics2D

Nested Class Summary:
public static class  PdfGraphics2D.HyperLinkKey   
Field Summary
protected  boolean underline     
protected  PdfGState[] fillGState     
protected  PdfGState[] strokeGState     
protected  int currentFillGState     
protected  int currentStrokeGState     
public static final  int AFM_DIVISOR     
Constructor:
 PdfGraphics2D(PdfContentByte cb,
    float width,
    float height,
    FontMapper fontMapper,
    boolean onlyShapes,
    boolean convertImagesToJPEG,
    float quality) 
    Constructor for PDFGraphics2D.
Method from com.lowagie.text.pdf.PdfGraphics2D Summary:
addRenderingHints,   asPoints,   clearRect,   clip,   clipRect,   copyArea,   create,   dispose,   doAttributes,   draw,   drawArc,   drawGlyphVector,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawLine,   drawOval,   drawPolygon,   drawPolyline,   drawRect,   drawRenderableImage,   drawRenderedImage,   drawRoundRect,   drawString,   drawString,   drawString,   drawString,   fill,   fillArc,   fillOval,   fillPolygon,   fillRect,   fillRoundRect,   getBackground,   getClip,   getClipBounds,   getColor,   getComposite,   getContent,   getDeviceConfiguration,   getFont,   getFontMetrics,   getFontRenderContext,   getPaint,   getRenderingHint,   getRenderingHints,   getStroke,   getTransform,   hit,   rotate,   rotate,   scale,   setBackground,   setClip,   setClip,   setColor,   setComposite,   setFont,   setPaint,   setPaintMode,   setRenderingHint,   setRenderingHints,   setStroke,   setTransform,   setXORMode,   shear,   transform,   translate,   translate
Methods from java.awt.Graphics2D:
addRenderingHints,   clip,   draw,   draw3DRect,   drawGlyphVector,   drawImage,   drawImage,   drawRenderableImage,   drawRenderedImage,   drawString,   drawString,   drawString,   drawString,   fill,   fill3DRect,   getBackground,   getComposite,   getDeviceConfiguration,   getFontRenderContext,   getPaint,   getRenderingHint,   getRenderingHints,   getStroke,   getTransform,   hit,   rotate,   rotate,   scale,   setBackground,   setComposite,   setPaint,   setRenderingHint,   setRenderingHints,   setStroke,   setTransform,   shear,   transform,   translate,   translate
Methods from java.awt.Graphics:
clearRect,   clipRect,   copyArea,   create,   create,   dispose,   draw3DRect,   drawArc,   drawBytes,   drawChars,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawImage,   drawLine,   drawOval,   drawPolygon,   drawPolygon,   drawPolyline,   drawRect,   drawRoundRect,   drawString,   drawString,   fill3DRect,   fillArc,   fillOval,   fillPolygon,   fillPolygon,   fillRect,   fillRoundRect,   finalize,   getClip,   getClipBounds,   getClipBounds,   getClipRect,   getColor,   getFont,   getFontMetrics,   getFontMetrics,   hitClip,   setClip,   setClip,   setColor,   setFont,   setPaintMode,   setXORMode,   toString,   translate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfGraphics2D Detail:
 public  void addRenderingHints(Map hints) 
 public static double asPoints(double d,
    int i) 
    Calculates position and/or stroke thickness depending on the font size
 public  void clearRect(int x,
    int y,
    int width,
    int height) 
 public  void clip(Shape s) 
 public  void clipRect(int x,
    int y,
    int width,
    int height) 
 public  void copyArea(int x,
    int y,
    int width,
    int height,
    int dx,
    int dy) 
 public Graphics create() 
 public  void dispose() 
 protected  void doAttributes(AttributedCharacterIterator iter) 
    This routine goes through the attributes and sets the font before calling the actual string drawing routine
 public  void draw(Shape s) 
 public  void drawArc(int x,
    int y,
    int width,
    int height,
    int startAngle,
    int arcAngle) 
 public  void drawGlyphVector(GlyphVector g,
    float x,
    float y) 
 public boolean drawImage(Image img,
    AffineTransform xform,
    ImageObserver obs) 
 public  void drawImage(BufferedImage img,
    BufferedImageOp op,
    int x,
    int y) 
 public boolean drawImage(Image img,
    int x,
    int y,
    ImageObserver observer) 
 public boolean drawImage(Image img,
    int x,
    int y,
    Color bgcolor,
    ImageObserver observer) 
 public boolean drawImage(Image img,
    int x,
    int y,
    int width,
    int height,
    ImageObserver observer) 
 public boolean drawImage(Image img,
    int x,
    int y,
    int width,
    int height,
    Color bgcolor,
    ImageObserver observer) 
 public boolean drawImage(Image img,
    int dx1,
    int dy1,
    int dx2,
    int dy2,
    int sx1,
    int sy1,
    int sx2,
    int sy2,
    ImageObserver observer) 
 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) 
 public  void drawLine(int x1,
    int y1,
    int x2,
    int y2) 
 public  void drawOval(int x,
    int y,
    int width,
    int height) 
 public  void drawPolygon(int[] xPoints,
    int[] yPoints,
    int nPoints) 
 public  void drawPolyline(int[] x,
    int[] y,
    int nPoints) 
 public  void drawRect(int x,
    int y,
    int width,
    int height) 
 public  void drawRenderableImage(RenderableImage img,
    AffineTransform xform) 
 public  void drawRenderedImage(RenderedImage img,
    AffineTransform xform) 
 public  void drawRoundRect(int x,
    int y,
    int width,
    int height,
    int arcWidth,
    int arcHeight) 
 public  void drawString(String s,
    int x,
    int y) 
 public  void drawString(String s,
    float x,
    float y) 
 public  void drawString(AttributedCharacterIterator iterator,
    int x,
    int y) 
 public  void drawString(AttributedCharacterIterator iter,
    float x,
    float y) 
 public  void fill(Shape s) 
 public  void fillArc(int x,
    int y,
    int width,
    int height,
    int startAngle,
    int arcAngle) 
 public  void fillOval(int x,
    int y,
    int width,
    int height) 
 public  void fillPolygon(int[] xPoints,
    int[] yPoints,
    int nPoints) 
 public  void fillRect(int x,
    int y,
    int width,
    int height) 
 public  void fillRoundRect(int x,
    int y,
    int width,
    int height,
    int arcWidth,
    int arcHeight) 
 public Color getBackground() 
 public Shape getClip() 
 public Rectangle getClipBounds() 
 public Color getColor() 
 public Composite getComposite() 
 public PdfContentByte getContent() 
 public GraphicsConfiguration getDeviceConfiguration() 
 public Font getFont() 
 public FontMetrics getFontMetrics(Font f) 
 public FontRenderContext getFontRenderContext() 
 public Paint getPaint() 
    Method contributed by Alexej Suchov
 public Object getRenderingHint(Key arg0) 
 public RenderingHints getRenderingHints() 
 public Stroke getStroke() 
 public AffineTransform getTransform() 
 public boolean hit(Rectangle rect,
    Shape s,
    boolean onStroke) 
 public  void rotate(double theta) 
 public  void rotate(double theta,
    double x,
    double y) 
 public  void scale(double sx,
    double sy) 
 public  void setBackground(Color color) 
 public  void setClip(Shape s) 
 public  void setClip(int x,
    int y,
    int width,
    int height) 
 public  void setColor(Color color) 
 public  void setComposite(Composite comp) 
    Method contributed by Alexej Suchov
 public  void setFont(Font f) 
    Sets the current font.
 public  void setPaint(Paint paint) 
    Method contributed by Alexej Suchov
 public  void setPaintMode() 
 public  void setRenderingHint(Key arg0,
    Object arg1) 
    Sets a rendering hint
 public  void setRenderingHints(Map hints) 
 public  void setStroke(Stroke s) 
 public  void setTransform(AffineTransform t) 
 public  void setXORMode(Color c1) 
 public  void shear(double shx,
    double shy) 
 public  void transform(AffineTransform tx) 
 public  void translate(int x,
    int y) 
 public  void translate(double tx,
    double ty)