pdfpen-ag凯发旗舰厅



com.spire.pdf.graphics
class pdfpen

java.lang.object
  extended by com.spire.pdf.graphics.pdfpen

public class pdfpen
extends java.lang.object

a class defining settings for drawing operations.


constructor summary
pdfpen(pdfbrush brush)
          initializes a new instance of the class.
pdfpen(pdfbrush brush, double width)
          initializes a new instance of the class.
pdfpen(pdfbrush brush, float width)
          initializes a new instance of the class.
pdfpen(pdfcomplexcolor color)
          initializes a new instance of the class.
pdfpen(pdfrgbcolor color)
          initializes a new instance of the class.
pdfpen(pdfrgbcolor color, boolean immutable)
           
pdfpen(pdfrgbcolor color, double width)
          initializes a new instance of the class.
pdfpen(pdfrgbcolor color, float width)
          initializes a new instance of the class.
 
method summary
 pdfbrush getbrush()
          gets the brush, which specifies the pen behaviour.
 pdfrgbcolor getcolor()
          gets the color of the pen.
 float getdashoffset()
          gets the dash offset of the pen.
 float[] getdashpattern()
          gets the dash pattern of the pen.
 pdfdashstyle getdashstyle()
          gets the dash style of the pen.
  getlinecap()
          gets the line cap of the pen.
  getlinejoin()
          gets the line join style of the pen.
 float getmiterlimit()
          gets the miter limit.
 float getwidth()
          gets the width of the pen.
 void setbrush(pdfbrush value)
          sets the brush, which specifies the pen behaviour.
 void setcolor(pdfrgbcolor value)
          sets the color of the pen.
 void setdashoffset(float value)
          sets the dash offset of the pen.
 void setdashpattern(float[] value)
          sets the dash pattern of the pen.
 void setdashstyle(pdfdashstyle value)
          sets the dash style of the pen.
 void setlinecap( value)
          sets the line cap of the pen.
 void setlinejoin( value)
          sets the line join style of the pen.
 void setmiterlimit(float value)
          sets the miter limit.
 void setwidth(float value)
          sets the width of the pen.
 
constructor detail

pdfpen

public pdfpen(pdfrgbcolor color)
initializes a new instance of the class.
parameters:
color - the color.

pdfpen

public pdfpen(pdfrgbcolor color,
              float width)
initializes a new instance of the class.
parameters:
color - color of the pen.
width - width of the pen's line.

pdfpen

public pdfpen(pdfrgbcolor color,
              double width)
initializes a new instance of the class.
parameters:
color - color of the pen.
width - width of the pen's line.

pdfpen

public pdfpen(pdfbrush brush)
initializes a new instance of the class.
parameters:
brush - the brush.

pdfpen

public pdfpen(pdfbrush brush,
              float width)
initializes a new instance of the class.
parameters:
brush - the brush.
width - width of the pen's line.

pdfpen

public pdfpen(pdfbrush brush,
              double width)
initializes a new instance of the class.
parameters:
brush - the brush.
width - width of the pen's line.

pdfpen

public pdfpen(pdfrgbcolor color,
              boolean immutable)

pdfpen

public pdfpen(pdfcomplexcolor color)
initializes a new instance of the class.
parameters:
color -
method detail

getbrush

public pdfbrush getbrush()
gets the brush, which specifies the pen behaviour. if the brush is set, the color values are ignored, except for pdfsolidbrush.

setbrush

public void setbrush(pdfbrush value)
sets the brush, which specifies the pen behaviour. if the brush is set, the color values are ignored, except for pdfsolidbrush.

getcolor

public pdfrgbcolor getcolor()
gets the color of the pen.

setcolor

public void setcolor(pdfrgbcolor value)
sets the color of the pen.

getdashoffset

public float getdashoffset()
gets the dash offset of the pen.

setdashoffset

public void setdashoffset(float value)
sets the dash offset of the pen.

getdashpattern

public float[] getdashpattern()
gets the dash pattern of the pen.

setdashpattern

public void setdashpattern(float[] value)
sets the dash pattern of the pen.

getdashstyle

public pdfdashstyle getdashstyle()
gets the dash style of the pen.

setdashstyle

public void setdashstyle(pdfdashstyle value)
sets the dash style of the pen.

getlinecap

public  getlinecap()
gets the line cap of the pen.

setlinecap

public void setlinecap( value)
sets the line cap of the pen.

getlinejoin

public  getlinejoin()
gets the line join style of the pen.

setlinejoin

public void setlinejoin( value)
sets the line join style of the pen.

getwidth

public float getwidth()
gets the width of the pen.

setwidth

public void setwidth(float value)
sets the width of the pen.

getmiterlimit

public float getmiterlimit()
gets the miter limit.

setmiterlimit

public void setmiterlimit(float value)
sets the miter limit.


网站地图