RenderingSaveOptions

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

public abstract class RenderingSaveOptions extends SaveOptions

This is an abstract base class for classes that allow the user to specify additional options when saving a diagram into a particular format.

Methods

MethodDescription
createSaveOptions(int saveFormat)Creates a save options object of a class suitable for the specified save format.
equals(Object arg0)
getClass()
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 .
getExportGuideShapes()Defines whether need exporting the guide shapes or not.
getPageSize()the page size for the generated images.
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.
notify()
notifyAll()
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()
setExportGuideShapes(boolean value)For the description of this property, please see getExportGuideShapes()
setPageSize(PageSize value)For the description of this property, please see getPageSize()
setSaveFormat(int value)For the description of this property, please see getSaveFormat()
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)

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

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

getExportGuideShapes()

public boolean getExportGuideShapes()

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

Returns: boolean

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

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

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

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

setExportGuideShapes(boolean value)

public void setExportGuideShapes(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean

setPageSize(PageSize value)

public void setPageSize(PageSize value)

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

Parameters:

ParameterTypeDescription
valuePageSize

setSaveFormat(int value)

public void setSaveFormat(int value)

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

Parameters:

ParameterTypeDescription
valueint

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