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

All Implemented Interfaces:
    Element, DrawInterface

Direct Known Subclasses:
    DottedLineSeparator

Element that draws a solid line from left to right. Can be added directly to a document or column. Can also be used to create a separator chunk.
Field Summary
protected  float lineWidth    The thickness of the line. 
protected  float percentage    The width of the line as a percentage of the available page width. 
protected  Color lineColor    The color of the line. 
protected  int alignment    The alignment of the line. 
Fields inherited from com.lowagie.text.pdf.draw.VerticalPositionMark:
drawInterface,  offset
Constructor:
 public LineSeparator() 
 public LineSeparator(float lineWidth,
    float percentage,
    Color lineColor,
    int align,
    float offset) 
    Creates a new instance of the LineSeparator class.
    Parameters:
    lineWidth - the thickness of the line
    percentage - the width of the line as a percentage of the available page width
    lineColor - the color of the line
    align - the alignment
    offset - the offset of the line relative to the current baseline (negative = under the baseline)
Method from com.lowagie.text.pdf.draw.LineSeparator Summary:
draw,   drawLine,   getAlignment,   getLineColor,   getLineWidth,   getPercentage,   setAlignment,   setLineColor,   setLineWidth,   setPercentage
Methods from com.lowagie.text.pdf.draw.VerticalPositionMark:
draw,   getChunks,   getDrawInterface,   getOffset,   isContent,   isNestable,   process,   setDrawInterface,   setOffset,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.draw.LineSeparator Detail:
 public  void draw(PdfContentByte canvas,
    float llx,
    float lly,
    float urx,
    float ury,
    float y) 
 public  void drawLine(PdfContentByte canvas,
    float leftX,
    float rightX,
    float y) 
    Draws a horizontal line.
 public int getAlignment() 
    Getter for the alignment of the line.
 public Color getLineColor() 
    Getter for the color of the line that will be drawn.
 public float getLineWidth() 
    Getter for the line width.
 public float getPercentage() 
    Setter for the width as a percentage of the available width.
 public  void setAlignment(int align) 
    Setter for the alignment of the line.
 public  void setLineColor(Color color) 
    Setter for the color of the line that will be drawn.
 public  void setLineWidth(float lineWidth) 
    Setter for the line width.
 public  void setPercentage(float percentage) 
    Setter for the width as a percentage of the available width.