public class DiagramPreviewOptions extends PreviewOptions
Provides options to sets requirements and stream delegates for preview generation of Diagram document.
PreviewOptions.PreviewFormats
Modifier and Type | Field and Description |
---|---|
static float |
DefaultResolution
Default resolution in dots per inch.
|
Constructor and Description |
---|
DiagramPreviewOptions(ICreatePageStream createPageStream)
Initializes a new instance of the
class causing the output stream to be closed. |
DiagramPreviewOptions(ICreatePageStream createPageStream,
IReleasePageStream releasePageStream)
Initializes a new instance of
class causing the output stream to be returned
to the client for further use. |
Modifier and Type | Method and Description |
---|---|
boolean |
getHighQualityRendering()
Gets or sets the flag for high quality rendering.
|
float |
getResolution()
Gets or sets the resolution for the generated images, in dots per inch.
|
void |
setHighQualityRendering(boolean value)
Gets or sets the flag for high quality rendering.
|
void |
setResolution(float value)
Gets or sets the resolution for the generated images, in dots per inch.
|
getCreatePageStream, getHeight, getPageNumbers, getPreviewFormat, getReleasePageStream, getWidth, setCreatePageStream, setHeight, setPageNumbers, setPreviewFormat, setReleasePageStream, setWidth
public static final float DefaultResolution
Default resolution in dots per inch.
public DiagramPreviewOptions(ICreatePageStream createPageStream)
DiagramPreviewOptions
class causing the output stream to be closed.createPageStream
- Creates a stream for a specific page preview.public DiagramPreviewOptions(ICreatePageStream createPageStream, IReleasePageStream releasePageStream)
DiagramPreviewOptions
class causing the output stream to be returned
to the client for further use.createPageStream
- Creates a stream for a specific page preview.releasePageStream
- Notifies that the page preview generation is done and gets the output stream.public final float getResolution()
Gets or sets the resolution for the generated images, in dots per inch.
public final void setResolution(float value)
Gets or sets the resolution for the generated images, in dots per inch.
public final boolean getHighQualityRendering()
Gets or sets the flag for high quality rendering.
false
.
public final void setHighQualityRendering(boolean value)
Gets or sets the flag for high quality rendering.
false
.