com.aspose.diagram

Class ForeignData

  • java.lang.Object
    • 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()
void
setCompressionLevel(doublevalue)
           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 hundreths of a percent.
intgetCompressionType()
void
           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()
void
setExtentX(doublevalue)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.
doublegetExtentY()
void
setExtentY(doublevalue)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.
intgetForeignType()
void
setForeignType(intvalue)
           Data type. The value of the property is ForeignType integer constant.
byte[]getImageData()
void
setImageData(byte[]value)
           Represents image of ole object as byte array.
intgetMappingMode()
void
setMappingMode(intvalue)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.
byte[]getObjectData()
void
setObjectData(byte[]value)
           Represents embedded ole object data as byte array.
doublegetObjectHeight()
void
setObjectHeight(doublevalue)
           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()
void
setObjectSourceFullName(java.lang.Stringvalue)
           Returns the source full name of the source file for the linked OLE object.
intgetObjectType()
void
setObjectType(intvalue)
           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()
void
setObjectWidth(doublevalue)
           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()
void
setShowAsIcon(intvalue)
           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()
void
setValue(byte[]value)
           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 hundreths 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: