public class PNGExporter extends Object implements VectorExporter, ByteExporter, LongTask
| Constructor and Description |
|---|
PNGExporter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
boolean |
execute()
Run the export process.
|
int |
getHeight() |
int |
getMargin() |
int |
getWidth() |
Workspace |
getWorkspace()
Returns the workspace from where data are exported
|
boolean |
isTransparentBackground() |
void |
setHeight(int height) |
void |
setMargin(int margin) |
void |
setOutputStream(OutputStream stream)
Set the stream where to export.
|
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setTransparentBackground(boolean transparentBackground) |
void |
setWidth(int width) |
void |
setWorkspace(Workspace workspace)
Sets the worksapce from where to export data
|
public boolean execute()
Exporterpublic int getHeight()
public void setHeight(int height)
public int getWidth()
public void setWidth(int width)
public int getMargin()
public void setMargin(int margin)
public boolean isTransparentBackground()
public void setTransparentBackground(boolean transparentBackground)
public void setWorkspace(Workspace workspace)
ExportersetWorkspace in interface Exporterworkspace - the workspace to exportpublic Workspace getWorkspace()
ExportergetWorkspace in interface Exporterpublic void setOutputStream(OutputStream stream)
ByteExportersetOutputStream in interface ByteExporterstream - the stream the exporter is to writepublic boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.