|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.export.PdfExporter
public class PdfExporter
Exports JDiagram diagrams to Adobe Portable Document Format (PDF) files.
Constructor Summary | |
---|---|
PdfExporter()
Initializes a new instance of the PdfExporter class. |
Method Summary | |
---|---|
void |
export(Diagram diagram,
java.lang.String filePath)
Creates a PDF file representing the specified JDiagram diagram. |
AutoScale |
getAutoScale()
Gets a value indicating whether the diagram should be scaled to fit one or more pages of the PDF document. |
int |
getHyperLinkStyle()
|
float |
getMarginBottom()
|
float |
getMarginLeft()
Gets the left margin for the PDF pages, measured in Inches. |
float |
getMarginRight()
|
float |
getMarginTop()
|
PageOrientation |
getPageOrientation()
Gets the orientation of the PDF pages. |
PageSizesEnum |
getPageSize()
Gets the size of the PDF pages. |
float |
getScale()
Gets the scale of the PDF output relatively to the original on-screen size of the diagram. |
boolean |
isAutoOrientation()
|
void |
setAutoOrientation(boolean autoOrientation)
|
void |
setAutoScale(AutoScale autoScale)
Sets a value indicating whether the diagram should be scaled to fit one or more pages of the PDF document. |
void |
setHyperLinkStyle(int value)
|
void |
setMarginBottom(float marginBottom)
Sets the value of bottom margin of the destination pdf document |
void |
setMarginLeft(float marginLeft)
Sets the left margin for the PDF pages. |
void |
setMarginRight(float marginRigth)
Sets the value of right margin of the destination pdf document |
void |
setMarginTop(float marginTop)
Sets the value of top margin of the destination pdf document |
void |
setPageOrientation(PageOrientation pageOrientation)
Sets the orientation of the PDF pages. |
void |
setPageSize(PageSizesEnum pageSize)
Sets the size of the PDF pages. |
void |
setScale(float scale)
Sets the scale of the PDF output relatively to the original on-screen size of the diagram. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdfExporter()
PdfExporter
class.
Method Detail |
---|
public void export(Diagram diagram, java.lang.String filePath)
diagram
- A reference to the Diagram
that will be exported.filePath
- The full path to the PDF file.public AutoScale getAutoScale()
AutoScale
enumeration. The default is None.public void setAutoScale(AutoScale autoScale)
autoScale
- A member of the AutoScale
enumeration. The default is None.public float getScale()
public void setScale(float scale)
scale
- A float value specifying the scale as percent of the original size. The default is 100.public PageSizesEnum getPageSize()
PageSizesEnum
member. The default value is DiagramSize.public void setPageSize(PageSizesEnum pageSize)
pageSize
- A PageSizesEnum
member. The default value is DiagramSize.public boolean isAutoOrientation()
public void setAutoOrientation(boolean autoOrientation)
autoOrientation
- TRUE if orientation of the page in destination PDF to be estimated from
the proportion of the w/h of the source diagrampublic PageOrientation getPageOrientation()
public void setPageOrientation(PageOrientation pageOrientation)
Orientation
- of the page of the destination PDF documentspublic float getMarginLeft()
public void setMarginLeft(float marginLeft)
marginLeft
- value of margin measured in Inches.public float getMarginTop()
public void setMarginTop(float marginTop)
marginTop
- value of margin measured in Inchespublic float getMarginRight()
public void setMarginRight(float marginRigth)
marginRigth
- value of margin measured in Inchespublic float getMarginBottom()
public void setMarginBottom(float marginBottom)
marginBottom
- value of margin measured in Inchespublic int getHyperLinkStyle()
public void setHyperLinkStyle(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |