Package javajs.export
Class PDFCreator
java.lang.Object
javajs.export.PDFCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImageResource
(Object newImage, int width, int height, int[] buffer, boolean isRGB) void
boolean
void
void
doCircle
(int x, int y, int r, boolean doFill) void
doPolygon
(int[] axPoints, int[] ayPoints, int nPoints, boolean doFill) void
doRect
(int x, int y, int width, int height, boolean doFill) void
drawImage
(Object image, int destX0, int destY0, int destX1, int destY1, int srcX0, int srcY0, int srcX1, int srcY1) void
drawStringRotated
(String s, int x, int y, int angle) void
fill()
void
getRotation
(int angle) void
lineto
(int x, int y) void
moveto
(int x, int y) void
newDocument
(int paperWidth, int paperHeight, boolean isLandscape) void
setColor
(float[] rgb, boolean isFill) void
void
setLineWidth
(float width) void
void
stroke()
void
translateScale
(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)
-