VisioRenderingOptions
Inheritance: java.lang.Object
public class VisioRenderingOptions
Contains options for rendering Visio documents.
The VisioRenderingOptions class provides options for processing and rendering Visio files in the GroupDocs.Viewer component. It encapsulates settings and parameters that can be used to control the rendering process and output format for Visio documents. For details, see the documentation.
Example usage:
PngViewOptions pngViewOptions = new PngViewOptions();
VisioRenderingOptions visioRenderingOptions = pngViewOptions.getVisioRenderingOptions();
visioRenderingOptions.setRenderFiguresOnly(true);
try (Viewer viewer = new Viewer(visioDocument)) {
viewer.view(pngViewOptions);
// Use the viewer object for further operations
}
Constructors
Constructor | Description |
---|---|
VisioRenderingOptions() | Initializes a new instance of the VisioRenderingOptions class. |
Methods
Method | Description |
---|---|
isRenderFiguresOnly() | Render only Visio figures, excluding the diagram. |
setRenderFiguresOnly(boolean renderFiguresOnly) | Sets the flag to render only Visio figures, excluding the diagram. |
getFigureWidth() | Retrieves the width of the figure. |
setFigureWidth(int figureWidth) | Sets the width of the figure. |
VisioRenderingOptions()
public VisioRenderingOptions()
Initializes a new instance of the VisioRenderingOptions class.
isRenderFiguresOnly()
public boolean isRenderFiguresOnly()
Render only Visio figures, excluding the diagram.
For details, see the documentation.
Returns: boolean - true if only Visio figures should be rendered, false otherwise.
setRenderFiguresOnly(boolean renderFiguresOnly)
public void setRenderFiguresOnly(boolean renderFiguresOnly)
Sets the flag to render only Visio figures, excluding the diagram.
For details, see the documentation.
Parameters:
Parameter | Type | Description |
---|---|---|
renderFiguresOnly | boolean | true to render only Visio figures, false to include the diagram. |
getFigureWidth()
public int getFigureWidth()
Retrieves the width of the figure. The height will be calculated automatically.
Returns: int - the width of the figure.
setFigureWidth(int figureWidth)
public void setFigureWidth(int figureWidth)
Sets the width of the figure. The height will be calculated automatically.
Note: Default value is 100.
Parameters:
Parameter | Type | Description |
---|---|---|
figureWidth | int | The width of the figure. |