SaveOptions

Inheritance: java.lang.Object

public abstract class 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. An instance of the SaveOptions class or any derived class is passed to the stream Save or string Save overloads for the user to define custom options when saving a document.

Methods

Method Description
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.
getSaveFormat() Specifies the format in which the document will be saved if this save options object is used.
getWarningCallback() warning callback.
hashCode()
notify()
notifyAll()
setDefaultFont(String value) For the description of this property, please see getDefaultFont()
setSaveFormat(int value) For the description of this property, please see getSaveFormat()
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:

Parameter Type Description
saveFormat int The 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:

Parameter Type Description
arg0 java.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

getSaveFormat()

public int getSaveFormat()

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

Returns: int

getWarningCallback()

public IWarningCallback getWarningCallback()

warning callback.

Returns: IWarningCallback

hashCode()

public native int hashCode()

Returns: int

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:

Parameter Type Description
value java.lang.String

setSaveFormat(int value)

public void setSaveFormat(int value)

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

Parameters:

Parameter Type Description
value int

setWarningCallback(IWarningCallback value)

public void setWarningCallback(IWarningCallback value)

Parameters:

Parameter Type Description
value IWarningCallback

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int