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

All Implemented Interfaces:
    Element

A Graphic element can contain several geometric figures (curves, lines,...).

If you want to use this Element, please read the Sections 8.4 and 8.5 of the PDF Reference Manual version 1.3 first.

Field Summary
public static final  String HORIZONTAL_LINE    This is a type of Graphic. 
public static final  String BORDER    This is a type of Graphic. 
Fields inherited from com.lowagie.text.pdf.PdfContentByte:
ALIGN_CENTER,  ALIGN_LEFT,  ALIGN_RIGHT,  LINE_CAP_BUTT,  LINE_CAP_ROUND,  LINE_CAP_PROJECTING_SQUARE,  LINE_JOIN_MITER,  LINE_JOIN_ROUND,  LINE_JOIN_BEVEL,  TEXT_RENDER_MODE_FILL,  TEXT_RENDER_MODE_STROKE,  TEXT_RENDER_MODE_FILL_STROKE,  TEXT_RENDER_MODE_INVISIBLE,  TEXT_RENDER_MODE_FILL_CLIP,  TEXT_RENDER_MODE_STROKE_CLIP,  TEXT_RENDER_MODE_FILL_STROKE_CLIP,  TEXT_RENDER_MODE_CLIP,  content,  writer,  pdf,  state,  stateList,  layerDepth,  separator
Constructor:
 public Graphic() 
Method from com.lowagie.text.Graphic Summary:
drawBorder,   drawHorizontalLine,   getChunks,   process,   processAttributes,   setBorder,   setBorder,   setHorizontalLine,   setHorizontalLine,   setHorizontalLine,   setHorizontalLine,   type
Methods from com.lowagie.text.pdf.PdfContentByte:
add,   addAnnotation,   addImage,   addImage,   addImage,   addImage,   addOutline,   addPSXObject,   addTemplate,   addTemplate,   addTemplateReference,   arc,   beginLayer,   beginMarkedContentSequence,   beginMarkedContentSequence,   beginMarkedContentSequence,   beginText,   bezierArc,   checkNoPattern,   checkWriter,   circle,   clip,   closePath,   closePathEoFillStroke,   closePathFillStroke,   closePathStroke,   concatCTM,   createAppearance,   createAppearance,   createGraphics,   createGraphics,   createGraphics,   createGraphics,   createGraphicsShapes,   createGraphicsShapes,   createPattern,   createPattern,   createPattern,   createPattern,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphicsShapes,   createPrinterGraphicsShapes,   createTemplate,   createTemplate,   curveFromTo,   curveTo,   curveTo,   drawButton,   drawRadioField,   drawTextField,   ellipse,   endLayer,   endMarkedContentSequence,   endText,   eoClip,   eoFill,   eoFillStroke,   escapeString,   escapeString,   fill,   fillStroke,   getCharacterSpacing,   getDuplicate,   getEffectiveStringWidth,   getHorizontalScaling,   getInternalBuffer,   getKernArray,   getLeading,   getPageResources,   getPdfDocument,   getPdfWriter,   getRootOutline,   getWordSpacing,   getXTLM,   getYTLM,   lineTo,   localDestination,   localGoto,   moveText,   moveTextWithLeading,   moveTo,   newPath,   newlineShowText,   newlineShowText,   newlineText,   outputColorNumbers,   paintShading,   paintShading,   rectangle,   rectangle,   remoteGoto,   remoteGoto,   reset,   resetCMYKColorFill,   resetCMYKColorStroke,   resetGrayFill,   resetGrayStroke,   resetRGBColorFill,   resetRGBColorStroke,   restoreState,   roundRectangle,   saveState,   setAction,   setCMYKColorFill,   setCMYKColorFillF,   setCMYKColorStroke,   setCMYKColorStrokeF,   setCharacterSpacing,   setColorFill,   setColorFill,   setColorStroke,   setColorStroke,   setDefaultColorspace,   setFlatness,   setFontAndSize,   setGState,   setGrayFill,   setGrayStroke,   setHorizontalScaling,   setLeading,   setLineCap,   setLineDash,   setLineDash,   setLineDash,   setLineDash,   setLineJoin,   setLineWidth,   setLiteral,   setLiteral,   setLiteral,   setMiterLimit,   setPatternFill,   setPatternFill,   setPatternFill,   setPatternStroke,   setPatternStroke,   setPatternStroke,   setRGBColorFill,   setRGBColorFillF,   setRGBColorStroke,   setRGBColorStrokeF,   setShadingFill,   setShadingStroke,   setTextMatrix,   setTextMatrix,   setTextRenderingMode,   setTextRise,   setWordSpacing,   showText,   showText,   showTextAligned,   showTextAlignedKerned,   showTextKerned,   size,   stroke,   toPdf,   toString,   transform,   variableRectangle
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.Graphic Detail:
 public  void drawBorder(float lineWidth,
    Color color,
    float llx,
    float lly,
    float urx,
    float ury) 
    Draws a border
 public  void drawHorizontalLine(float lineWidth,
    Color color,
    float x1,
    float x2,
    float y) 
    draws a horizontal line.
 public ArrayList getChunks() 
    Gets all the chunks in this element.
 public boolean process(ElementListener listener) 
    Processes the element by adding it (or the different parts) to an ElementListener.
 public  void processAttributes(float llx,
    float lly,
    float urx,
    float ury,
    float y) 
    Processes the attributes of this object.
 public  void setBorder(float linewidth,
    float extraSpace) 
    Orders this graphic to draw a horizontal line.
 public  void setBorder(float linewidth,
    float extraSpace,
    Color color) 
    Orders this graphic to draw a horizontal line.
 public  void setHorizontalLine(float linewidth,
    float percentage) 
    Orders this graphic to draw a horizontal, centered line.
 public  void setHorizontalLine(float linewidth,
    float percentage,
    int align) 
    Orders this graphic to draw a horizontal line with some alignment.
 public  void setHorizontalLine(float linewidth,
    float percentage,
    Color color) 
    Orders this graphic to draw a horizontal, centered line.
 public  void setHorizontalLine(float linewidth,
    float percentage,
    Color color,
    int align) 
    Orders this graphic to draw a horizontal, centered line.
 public int type() 
    Gets the type of the text element.