OleDiagramOptions
Inheritance: java.lang.Object, com.groupdocs.merger.domain.options.ImportDocumentOptions
All Implemented Interfaces: com.groupdocs.merger.domain.options.interfaces.IOleDiagramOptions
public class OleDiagramOptions extends ImportDocumentOptions implements IOleDiagramOptions
Provides options for import of the embedded document to Diagram via OLE.
Learn more
- More about adding document to Diagram via OLE: Add document to Diagram via OLE.
Constructors
Constructor | Description |
---|---|
OleDiagramOptions(byte[] objectData, byte[] imageData, String extension, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
OleDiagramOptions(String filePath, byte[] imageData, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
OleDiagramOptions(String filePath, int pageNumber) | Initializes a new instance of the OleDiagramOptions class. |
Methods
Method | Description |
---|---|
getX() | The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
setX(int value) | The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
getY() | The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
setY(int value) | The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page. |
getWidth() | The width of the embedded object shape in inches. |
setWidth(int value) | The width of the embedded object shape in inches. |
getHeight() | The height of the embedded object shape in inches. |
setHeight(int value) | The height of the embedded object shape in inches. |
getImageData() | The image data of the embedded object. |
OleDiagramOptions(byte[] objectData, byte[] imageData, String extension, int pageNumber)
public OleDiagramOptions(byte[] objectData, byte[] imageData, String extension, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
Parameter | Type | Description |
---|---|---|
objectData | byte[] | The data of the embedded object. |
imageData | byte[] | The image data of the embedded object. |
extension | java.lang.String | The extension of the embedded object. |
pageNumber | int | The page number for adding embedded object. |
OleDiagramOptions(String filePath, byte[] imageData, int pageNumber)
public OleDiagramOptions(String filePath, byte[] imageData, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The file path of the embedded object. |
imageData | byte[] | The image data of the embedded object. |
pageNumber | int | The page number for adding embedded object. |
OleDiagramOptions(String filePath, int pageNumber)
public OleDiagramOptions(String filePath, int pageNumber)
Initializes a new instance of the OleDiagramOptions class.
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The file path of the embedded object. |
pageNumber | int | The page number for adding embedded object. |
getX()
public final int getX()
The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Returns: int
setX(int value)
public final void setX(int value)
The X coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getY()
public final int getY()
The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Returns: int
setY(int value)
public final void setY(int value)
The Y coordinate of the embedded object shape’s pin (center of rotation) in relation to the page.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getWidth()
public final int getWidth()
The width of the embedded object shape in inches.
Returns: int
setWidth(int value)
public final void setWidth(int value)
The width of the embedded object shape in inches.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getHeight()
public final int getHeight()
The height of the embedded object shape in inches.
Returns: int
setHeight(int value)
public final void setHeight(int value)
The height of the embedded object shape in inches.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getImageData()
public final byte[] getImageData()
The image data of the embedded object.
Returns: byte[]