ForeignData

Inheritance: java.lang.Object

public class ForeignData

Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Methods

MethodDescription
deepClone()Creates deep copy of this instance.
equals(Object arg0)
getClass()
getCompressionLevel()This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file.
getCompressionType()This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file.
getExtentX()This attribute is only meaningful if the foreign data is a metafile.
getExtentY()This attribute is only meaningful if the foreign data is a metafile.
getForeignType()Data type.
getImageData()Represents image of ole object as byte array.
getMappingMode()This attribute is only meaningful if the foreign data is a metafile.
getObjectData()Represents embedded ole object data as byte array.
getObjectHeight()This attribute is only meaningful if the foreign data is an OLE2 embedded object.
getObjectSourceFullName()Returns the source full name of the source file for the linked OLE object.
getObjectType()If the ForeignType attribute is “Object”, the ForeignData element must also have an ObjectType attribute.
getObjectWidth()This attribute is only meaningful if the foreign data is an OLE2 embedded object.
getShowAsIcon()This attribute is only meaningful if the foreign data is an OLE2 embedded object.
getValue()Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
hashCode()
notify()
notifyAll()
setCompressionLevel(double value)For the description of this property, please see getCompressionLevel()
setCompressionType(int value)For the description of this property, please see getCompressionType()
setExtentX(double value)For the description of this property, please see getExtentX()
setExtentY(double value)For the description of this property, please see getExtentY()
setForeignType(int value)For the description of this property, please see getForeignType()
setImageData(byte[] value)For the description of this property, please see getImageData()
setMappingMode(int value)For the description of this property, please see getMappingMode()
setObjectData(byte[] value)For the description of this property, please see getObjectData()
setObjectHeight(double value)For the description of this property, please see getObjectHeight()
setObjectSourceFullName(String value)For the description of this property, please see getObjectSourceFullName()
setObjectType(int value)For the description of this property, please see getObjectType()
setObjectWidth(double value)For the description of this property, please see getObjectWidth()
setShowAsIcon(int value)For the description of this property, please see getShowAsIcon()
setValue(byte[] value)For the description of this property, please see getValue()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

deepClone()

public Object deepClone()

Creates deep copy of this instance.

Returns: java.lang.Object -

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

getCompressionLevel()

public double getCompressionLevel()

This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the level of compression applied to the file. Compression level is measured in hundreds of a percent.

Returns: double

getCompressionType()

public int getCompressionType()

This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the type of compression applied to the file.

Returns: int

getExtentX()

public double getExtentX()

This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.

Returns: double

getExtentY()

public double getExtentY()

This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.

Returns: double

getForeignType()

public int getForeignType()

Data type.

Returns: int

getImageData()

public byte[] getImageData()

Represents image of ole object as byte array.

Returns: byte[]

getMappingMode()

public int getMappingMode()

This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.

Returns: int

getObjectData()

public byte[] getObjectData()

Represents embedded ole object data as byte array.

Returns: byte[]

getObjectHeight()

public double getObjectHeight()

This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the height of the object in page units.

Returns: double

getObjectSourceFullName()

public String getObjectSourceFullName()

Returns the source full name of the source file for the linked OLE object. Only supports setting the source full name when the file type is OleFileType.Unknown. Such as wav file ,avi file..etc..

Returns: java.lang.String

getObjectType()

public int getObjectType()

If the ForeignType attribute is “Object”, the ForeignData element must also have an ObjectType attribute.

Returns: int

getObjectWidth()

public double getObjectWidth()

This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the width of the object in page units.

Returns: double

getShowAsIcon()

public int getShowAsIcon()

This attribute is only meaningful if the foreign data is an OLE2 embedded object.

Returns: int

getValue()

public byte[] getValue()

Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Returns: byte[]

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setCompressionLevel(double value)

public void setCompressionLevel(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setCompressionType(int value)

public void setCompressionType(int value)

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

Parameters:

ParameterTypeDescription
valueint

setExtentX(double value)

public void setExtentX(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setExtentY(double value)

public void setExtentY(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setForeignType(int value)

public void setForeignType(int value)

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

Parameters:

ParameterTypeDescription
valueint

setImageData(byte[] value)

public void setImageData(byte[] value)

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

Parameters:

ParameterTypeDescription
valuebyte[]

setMappingMode(int value)

public void setMappingMode(int value)

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

Parameters:

ParameterTypeDescription
valueint

setObjectData(byte[] value)

public void setObjectData(byte[] value)

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

Parameters:

ParameterTypeDescription
valuebyte[]

setObjectHeight(double value)

public void setObjectHeight(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setObjectSourceFullName(String value)

public void setObjectSourceFullName(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

setObjectType(int value)

public void setObjectType(int value)

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

Parameters:

ParameterTypeDescription
valueint

setObjectWidth(double value)

public void setObjectWidth(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

setShowAsIcon(int value)

public void setShowAsIcon(int value)

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

Parameters:

ParameterTypeDescription
valueint

setValue(byte[] value)

public void setValue(byte[] value)

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

Parameters:

ParameterTypeDescription
valuebyte[]

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