| 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 |
| Method from com.lowagie.text.Graphic Detail: |
public void drawBorder(float lineWidth,
Color color,
float llx,
float lly,
float urx,
float ury) {
setLineWidth(lineWidth);
setColorStroke(color);
rectangle(llx, lly, urx - llx, ury - lly);
stroke();
resetRGBColorStroke();
}
|
public void drawHorizontalLine(float lineWidth,
Color color,
float x1,
float x2,
float y) {
setLineWidth(lineWidth);
setColorStroke(color);
moveTo(x1, y);
lineTo(x2, y);
stroke();
resetRGBColorStroke();
}
|
public ArrayList getChunks() {
return new ArrayList();
}
Gets all the chunks in this element. |
public boolean process(ElementListener listener) {
try {
return listener.add(this);
}
catch(DocumentException de) {
return false;
}
}
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) {
if (attributes == null) return;
String attribute;
Object[] o;
for (Iterator i = attributes.keySet().iterator(); i.hasNext(); ) {
attribute = (String) i.next();
o = (Object[]) attributes.get(attribute);
if (HORIZONTAL_LINE.equals(attribute)) {
float p = ((Float)o[1]).floatValue();
float w;
if (p < 0)
w = -p;
else
w = (urx - llx) * p / 100.0f;
int align = ((Integer)o[3]).intValue();
float s;
switch (align) {
case Element.ALIGN_LEFT:
s = 0;
break;
case Element.ALIGN_RIGHT:
s = urx - llx - w;
break;
default:
s = (urx - llx - w) / 2;
}
drawHorizontalLine(((Float)o[0]).floatValue(), (Color)o[2], s + llx, s + w + llx, y);
}
if (BORDER.equals(attribute)) {
float extra = ((Float)o[1]).floatValue();
drawBorder(((Float)o[0]).floatValue(), (Color)o[2], llx - extra, lly - extra, urx + extra, ury + extra);
}
}
}
Processes the attributes of this object. |
public void setBorder(float linewidth,
float extraSpace) {
if (attributes == null) attributes = new HashMap();
attributes.put(BORDER, new Object[]{new Float(linewidth), new Float(extraSpace), new Color(0, 0, 0)});
}
Orders this graphic to draw a horizontal line. |
public void setBorder(float linewidth,
float extraSpace,
Color color) {
if (attributes == null) attributes = new HashMap();
attributes.put(BORDER, new Object[]{new Float(linewidth), new Float(extraSpace), color});
}
Orders this graphic to draw a horizontal line. |
public void setHorizontalLine(float linewidth,
float percentage) {
if (attributes == null) attributes = new HashMap();
attributes.put(HORIZONTAL_LINE, new Object[]{new Float(linewidth), new Float(percentage), Color.black, new Integer(Element.ALIGN_CENTER)});
}
Orders this graphic to draw a horizontal, centered line. |
public void setHorizontalLine(float linewidth,
float percentage,
int align) {
if (attributes == null) attributes = new HashMap();
attributes.put(HORIZONTAL_LINE, new Object[]{new Float(linewidth), new Float(percentage), Color.black, new Integer(align)});
}
Orders this graphic to draw a horizontal line with some alignment. |
public void setHorizontalLine(float linewidth,
float percentage,
Color color) {
if (attributes == null) attributes = new HashMap();
attributes.put(HORIZONTAL_LINE, new Object[]{new Float(linewidth), new Float(percentage), color, new Integer(Element.ALIGN_CENTER)});
}
Orders this graphic to draw a horizontal, centered line. |
public void setHorizontalLine(float linewidth,
float percentage,
Color color,
int align) {
if (attributes == null) attributes = new HashMap();
attributes.put(HORIZONTAL_LINE, new Object[]{new Float(linewidth), new Float(percentage), color, new Integer(align)});
}
Orders this graphic to draw a horizontal, centered line. |
public int type() {
return Element.GRAPHIC;
}
Gets the type of the text element. |