Class PDFCreator
java.lang.Object
javajs.export.PDFCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImageResource(Object newImage, int width, int height, int[] buffer, boolean isRGB) voidbooleanvoidvoiddoCircle(int x, int y, int r, boolean doFill) voiddoPolygon(int[] axPoints, int[] ayPoints, int nPoints, boolean doFill) voiddoRect(int x, int y, int width, int height, boolean doFill) voiddrawImage(Object image, int destX0, int destY0, int destX1, int destY1, int srcX0, int srcY0, int srcX1, int srcY1) voiddrawStringRotated(String s, int x, int y, int angle) voidfill()voidgetRotation(int angle) voidlineto(int x, int y) voidmoveto(int x, int y) voidnewDocument(int paperWidth, int paperHeight, boolean isLandscape) voidsetColor(float[] rgb, boolean isFill) voidvoidsetLineWidth(float width) voidvoidstroke()voidtranslateScale(float x, float y, float scale)
-
Constructor Details
-
PDFCreator
public PDFCreator()
-
-
Method Details
-
setOutputStream
-
newDocument
public void newDocument(int paperWidth, int paperHeight, boolean isLandscape) -
moveto
public void moveto(int x, int y) -
lineto
public void lineto(int x, int y) -
addInfo
-
addImageResource
-
g
-
closeDocument
- Throws:
IOException
-
canDoLineTo
public boolean canDoLineTo() -
fill
public void fill() -
stroke
public void stroke() -
doCircle
public void doCircle(int x, int y, int r, boolean doFill) -
doPolygon
public void doPolygon(int[] axPoints, int[] ayPoints, int nPoints, boolean doFill) -
doRect
public void doRect(int x, int y, int width, int height, boolean doFill) -
drawImage
public void drawImage(Object image, int destX0, int destY0, int destX1, int destY1, int srcX0, int srcY0, int srcX1, int srcY1) -
drawStringRotated
-
getRotation
-
setColor
public void setColor(float[] rgb, boolean isFill) -
setFont
-
setLineWidth
public void setLineWidth(float width) -
translateScale
public void translateScale(float x, float y, float scale)
-