SVGSaveOptions

Inheritance: java.lang.Object, com.aspose.diagram.SaveOptions, com.aspose.diagram.RenderingSaveOptions

public class SVGSaveOptions extends RenderingSaveOptions

Allows to specify additional options when rendering diagram pages to SVG.

Constructors

ConstructorDescription
SVGSaveOptions()Initializes a new instance of this class that can be used to save a document in the Aspose.Diagram.SaveFileFormat format.

Methods

MethodDescription
createSaveOptions(int saveFormat)Creates a save options object of a class suitable for the specified save format.
equals(Object arg0)
getClass()
getCustomImagePath()The user custom path(URL) saved in generated svg file for the image.
getDefaultFont()When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS.
getEmfRenderSetting()Setting for rendering Emf metafile.
getEnlargePage()Specifies whether enlarge page .
getExportElementAsRectTag()Defines whether need exporting rectangle elements as rect tag or not.
getExportGuideShapes()Defines whether need exporting the guide shapes or not.
getExportHiddenPage()Defines whether need exporting the hidden page or not.
getPageIndex()the 0-based index of the page to render.
getPageSize()the page size for the generated images.
getQuality()a value determining the quality of the generated images to apply only when saving pages to the Jpeg format.
getSVGFitToViewPort()if this property is true, the generated svg will fit to view port.
getSaveFormat()Specifies the format in which the document will be saved if this save options object is used.
getShapes()shapes to render.
getWarningCallback()warning callback.
hashCode()
isExportComments()Defines whether need exporting the comments or not.
isExportScaleInMatrix()Defines whether need export scale in matrix or not.
isSavingCustomLinePattern()Defines whether Saving custom line pattern.
isSavingImageSeparately()Defines whether Saving Image Separately.
notify()
notifyAll()
setCustomImagePath(String value)For the description of this property, please see getCustomImagePath()
setDefaultFont(String value)For the description of this property, please see getDefaultFont()
setEmfRenderSetting(int value)For the description of this property, please see getEmfRenderSetting()
setEnlargePage(boolean value)For the description of this property, please see getEnlargePage()
setExportComments(boolean value)For the description of this property, please see isExportComments()
setExportElementAsRectTag(boolean value)For the description of this property, please see getExportElementAsRectTag()
setExportGuideShapes(boolean value)For the description of this property, please see getExportGuideShapes()
setExportHiddenPage(boolean value)For the description of this property, please see getExportHiddenPage()
setExportScaleInMatrix(boolean value)For the description of this property, please see isExportScaleInMatrix()
setPageIndex(int value)For the description of this property, please see getPageIndex()
setPageSize(PageSize value)For the description of this property, please see getPageSize()
setQuality(int value)For the description of this property, please see getQuality()
setSVGFitToViewPort(boolean value)For the description of this property, please see getSVGFitToViewPort()
setSaveFormat(int value)For the description of this property, please see getSaveFormat()
setSavingCustomLinePattern(boolean value)For the description of this property, please see isSavingCustomLinePattern()
setSavingImageSeparately(boolean value)For the description of this property, please see isSavingImageSeparately()
setShapes(ShapeCollection value)For the description of this property, please see getShapes()
setWarningCallback(IWarningCallback value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

SVGSaveOptions()

public SVGSaveOptions()

Initializes a new instance of this class that can be used to save a document in the Aspose.Diagram.SaveFileFormat format.

createSaveOptions(int saveFormat)

public static SaveOptions createSaveOptions(int saveFormat)

Creates a save options object of a class suitable for the specified save format.

Parameters:

ParameterTypeDescription
saveFormatintThe Aspose.Diagram.SaveFileFormat for which to create a save options object.

Returns: SaveOptions - An object of a class that derives from SaveOptions.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCustomImagePath()

public String getCustomImagePath()

The user custom path(URL) saved in generated svg file for the image. If not defined by user, Current directory will be used.

Returns: java.lang.String

getDefaultFont()

public String getDefaultFont()

When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS. Set the DefaultFont such as MingLiu or MS Gothic to show these characters.

Returns: java.lang.String

getEmfRenderSetting()

public int getEmfRenderSetting()

Setting for rendering Emf metafile. EMF metafiles identified as “EMF+ Dual” can contain both EMF+ records and EMF records. Either type of record can be used to render the image, only EMF+ records, or only EMF records. When EmfPlusPrefer is set, then EMF+ records will be parsed , otherwise only EMF records will be parsed. Default value is EmfOnly"/>.

Returns: int

getEnlargePage()

public boolean getEnlargePage()

Specifies whether enlarge page . If true - enlarge page. If false - not enlarge page. The default value is true.

Returns: boolean

getExportElementAsRectTag()

public boolean getExportElementAsRectTag()

Defines whether need exporting rectangle elements as rect tag or not. Default value is false.

Returns: boolean

getExportGuideShapes()

public boolean getExportGuideShapes()

Defines whether need exporting the guide shapes or not. Default value is true.

Returns: boolean

getExportHiddenPage()

public boolean getExportHiddenPage()

Defines whether need exporting the hidden page or not. Default value is true.

Returns: boolean

getPageIndex()

public int getPageIndex()

the 0-based index of the page to render. Default is 0.

Returns: int

getPageSize()

public PageSize getPageSize()

the page size for the generated images. Can be PageSize or null. The default value is null. If PageSize is null then page size for generated image is obtained from source diagram.

Returns: PageSize

getQuality()

public int getQuality()

a value determining the quality of the generated images to apply only when saving pages to the Jpeg format. The default value is 100 Has effect only when saving to JPEG. The value must be between 0 and 100. The default value is 100.

Returns: int

getSVGFitToViewPort()

public boolean getSVGFitToViewPort()

if this property is true, the generated svg will fit to view port.

Returns: boolean

getSaveFormat()

public int getSaveFormat()

Specifies the format in which the document will be saved if this save options object is used.

Returns: int

getShapes()

public ShapeCollection getShapes()

shapes to render. Default count is 0.

Returns: ShapeCollection

getWarningCallback()

public IWarningCallback getWarningCallback()

warning callback.

Returns: IWarningCallback

hashCode()

public native int hashCode()

Returns: int

isExportComments()

public boolean isExportComments()

Defines whether need exporting the comments or not. Default value is false.

Returns: boolean

isExportScaleInMatrix()

public boolean isExportScaleInMatrix()

Defines whether need export scale in matrix or not. Default value is true.

Returns: boolean

isSavingCustomLinePattern()

public boolean isSavingCustomLinePattern()

Defines whether Saving custom line pattern.

Returns: boolean

isSavingImageSeparately()

public boolean isSavingImageSeparately()

Defines whether Saving Image Separately.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setCustomImagePath(String value)

public void setCustomImagePath(String value)

For the description of this property, please see getCustomImagePath()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setDefaultFont(String value)

public void setDefaultFont(String value)

For the description of this property, please see getDefaultFont()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setEmfRenderSetting(int value)

public void setEmfRenderSetting(int value)

For the description of this property, please see getEmfRenderSetting()

Parameters:

ParameterTypeDescription
valueint

setEnlargePage(boolean value)

public void setEnlargePage(boolean value)

For the description of this property, please see getEnlargePage()

Parameters:

ParameterTypeDescription
valueboolean

setExportComments(boolean value)

public void setExportComments(boolean value)

For the description of this property, please see isExportComments()

Parameters:

ParameterTypeDescription
valueboolean

setExportElementAsRectTag(boolean value)

public void setExportElementAsRectTag(boolean value)

For the description of this property, please see getExportElementAsRectTag()

Parameters:

ParameterTypeDescription
valueboolean

setExportGuideShapes(boolean value)

public void setExportGuideShapes(boolean value)

For the description of this property, please see getExportGuideShapes()

Parameters:

ParameterTypeDescription
valueboolean

setExportHiddenPage(boolean value)

public void setExportHiddenPage(boolean value)

For the description of this property, please see getExportHiddenPage()

Parameters:

ParameterTypeDescription
valueboolean

setExportScaleInMatrix(boolean value)

public void setExportScaleInMatrix(boolean value)

For the description of this property, please see isExportScaleInMatrix()

Parameters:

ParameterTypeDescription
valueboolean

setPageIndex(int value)

public void setPageIndex(int value)

For the description of this property, please see getPageIndex()

Parameters:

ParameterTypeDescription
valueint

setPageSize(PageSize value)

public void setPageSize(PageSize value)

For the description of this property, please see getPageSize()

Parameters:

ParameterTypeDescription
valuePageSize

setQuality(int value)

public void setQuality(int value)

For the description of this property, please see getQuality()

Parameters:

ParameterTypeDescription
valueint

setSVGFitToViewPort(boolean value)

public void setSVGFitToViewPort(boolean value)

For the description of this property, please see getSVGFitToViewPort()

Parameters:

ParameterTypeDescription
valueboolean

setSaveFormat(int value)

public void setSaveFormat(int value)

For the description of this property, please see getSaveFormat()

Parameters:

ParameterTypeDescription
valueint

setSavingCustomLinePattern(boolean value)

public void setSavingCustomLinePattern(boolean value)

For the description of this property, please see isSavingCustomLinePattern()

Parameters:

ParameterTypeDescription
valueboolean

setSavingImageSeparately(boolean value)

public void setSavingImageSeparately(boolean value)

For the description of this property, please see isSavingImageSeparately()

Parameters:

ParameterTypeDescription
valueboolean

setShapes(ShapeCollection value)

public void setShapes(ShapeCollection value)

For the description of this property, please see getShapes()

Parameters:

ParameterTypeDescription
valueShapeCollection

setWarningCallback(IWarningCallback value)

public void setWarningCallback(IWarningCallback value)

Parameters:

ParameterTypeDescription
valueIWarningCallback

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int