public class ImageExporter
extends java.lang.Object
| Constructor and Description |
|---|
ImageExporter()
Initializes a new instance of the
ImageExporter class. |
| Modifier and Type | Method and Description |
|---|---|
void |
export(Worksheet worksheet,
java.lang.String filePath)
Exports the specified worksheet as an image.
|
void |
exportObject(InteractiveObject obj,
java.lang.String filePath)
Exports the specified object as an image.
|
void |
exportObject(InteractiveObject obj,
java.lang.String filePath,
java.awt.Dimension size)
Exports the specified object as an image.
|
java.awt.Rectangle |
getCellRange()
Gets the range of cells to export, or null, to export the entire sheet.
|
boolean |
getEnableGridLines()
Gets a value indicating whether to export the grid lines.
|
boolean |
getEnableObjects()
Gets a value indicating whether to export drawing objects.
|
java.awt.Rectangle |
getExportedRange()
Gets the range of cells that was actually exported by the most recent call to Export.
|
java.lang.String |
getImageFormat()
Gets the format of the created image.
|
java.awt.Dimension |
getMaxImageSize()
Gets the maximum size of the created image.
|
void |
setCellRange(java.awt.Rectangle value)
Sets the range of cells to export, or null, to export the entire sheet.
|
void |
setEnableGridLines(boolean value)
Sets a value indicating whether to export the grid lines.
|
void |
setEnableObjects(boolean value)
Sets a value indicating whether to export drawing objects.
|
void |
setImageFormat(java.lang.String value)
Sets the format of the created image.
|
void |
setMaxImageSize(java.awt.Dimension value)
Sets the maximum size of the created image.
|
public ImageExporter()
ImageExporter class.public void export(Worksheet worksheet, java.lang.String filePath)
worksheet - The worksheet to export.filePath - The name of the file where the image should be stored.public void exportObject(InteractiveObject obj, java.lang.String filePath)
obj - The object to export.filePath - The name of the file where the image should be stored.public void exportObject(InteractiveObject obj, java.lang.String filePath, java.awt.Dimension size)
obj - The object to export.filePath - The name of the file where the image should be stored.size - The desired size of the created image. The object is stretched to the specified size.public java.awt.Rectangle getExportedRange()
export(com.mindfusion.spreadsheet.Worksheet, java.lang.String) has never been called.public java.lang.String getImageFormat()
public void setImageFormat(java.lang.String value)
public java.awt.Rectangle getCellRange()
public void setCellRange(java.awt.Rectangle value)
public java.awt.Dimension getMaxImageSize()
public void setMaxImageSize(java.awt.Dimension value)
public boolean getEnableGridLines()
public void setEnableGridLines(boolean value)
public boolean getEnableObjects()
public void setEnableObjects(boolean value)