com.aspose.diagram
Class ForeignData

java.lang.Object
    extended by com.aspose.diagram.ForeignData

public class ForeignData 
extends java.lang.Object

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


Property Getters/Setters Summary
doublegetCompressionLevel()
voidsetCompressionLevel(double)
           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.
intgetCompressionType()
voidsetCompressionType(int)
           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. The value of the property is CompressionType integer constant.
doublegetExtentX()
voidsetExtentX(double)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.
doublegetExtentY()
voidsetExtentY(double)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.
intgetForeignType()
voidsetForeignType(int)
           Data type. The value of the property is ForeignType integer constant.
byte[]getImageData()
voidsetImageData(byte[])
           Represents image of ole object as byte array.
intgetMappingMode()
voidsetMappingMode(int)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.
byte[]getObjectData()
voidsetObjectData(byte[])
           Represents embedded ole object data as byte array.
doublegetObjectHeight()
voidsetObjectHeight(double)
           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.
java.lang.StringgetObjectSourceFullName()
voidsetObjectSourceFullName(java.lang.String)
           Returns the source full name of the source file for the linked OLE object.
intgetObjectType()
voidsetObjectType(int)
           If the ForeignType attribute is "Object", the ForeignData element must also have an ObjectType attribute. The value of the property is ObjectType integer constant.
doublegetObjectWidth()
voidsetObjectWidth(double)
           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.
intgetShowAsIcon()
voidsetShowAsIcon(int)
           This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL integer constant.
byte[]getValue()
voidsetValue(byte[])
           Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
 
Method Summary
java.lang.ObjectdeepClone()
           Creates deep copy of this instance.
 

Property Getters/Setters Detail

getImageData/setImageData

public byte[] getImageData() / public void setImageData(byte[] value)
Represents image of ole object as byte array.

getObjectData/setObjectData

public byte[] getObjectData() / public void setObjectData(byte[] value)
Represents embedded ole object data as byte array.

getForeignType/setForeignType

public int getForeignType() / public void setForeignType(int value)
Data type. The value of the property is ForeignType integer constant.

getObjectType/setObjectType

public int getObjectType() / public void setObjectType(int value)
If the ForeignType attribute is "Object", the ForeignData element must also have an ObjectType attribute. The value of the property is ObjectType integer constant.

getShowAsIcon/setShowAsIcon

public int getShowAsIcon() / public void setShowAsIcon(int value)
This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL integer constant.

getObjectWidth/setObjectWidth

public double getObjectWidth() / public void setObjectWidth(double value)
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.

getObjectHeight/setObjectHeight

public double getObjectHeight() / public void setObjectHeight(double value)
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.

getMappingMode/setMappingMode

public int getMappingMode() / public void setMappingMode(int value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.

getExtentX/setExtentX

public double getExtentX() / public void setExtentX(double value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.

getExtentY/setExtentY

public double getExtentY() / public void setExtentY(double value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.

getCompressionType/setCompressionType

public int getCompressionType() / public void setCompressionType(int value)
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. The value of the property is CompressionType integer constant.

getCompressionLevel/setCompressionLevel

public double getCompressionLevel() / public void setCompressionLevel(double value)
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.

getValue/setValue

public byte[] getValue() / public void setValue(byte[] value)
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

getObjectSourceFullName/setObjectSourceFullName

public java.lang.String getObjectSourceFullName() / public void setObjectSourceFullName(java.lang.String value)
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..

Method Detail

deepClone

public java.lang.Object deepClone()
                throws java.lang.Exception
Creates deep copy of this instance.
Returns:

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.