public class Diagram
Constructor Summary |
---|
Diagram()
|
Diagram(java.lang.Stringfilename, intformat)
Public |
Diagram(java.lang.Stringfilename, LoadOptions options)
Public |
Property Getters/Setters Summary | ||
---|---|---|
Page | getActivePage() | |
Specifies the active page
|
||
long | getBuildnum() | |
void | setBuildnum(longvalue) | |
The build number of the Visio instance used to create the document. | ||
ColorEntryCollection | getColors() | |
Contains the document's color table. Each document contains a single color table,
which lists the 24 standard colors that are available for application to objects
such as shapes, text, and layers in the document.
|
||
DataConnectionCollection | getDataConnections() | |
Contains the DataConnection elements for the document.
|
||
DataRecordSetCollection | getDataRecordSets() | |
The collection of DataRecordset objects associated with a Document object.
|
||
int | getDocLangID() | |
void | setDocLangID(intvalue) | |
The unique ID of the user-interface language the user has specified in Microsoft Office 2010 Language Preferences. | ||
DocumentProperties | getDocumentProps() | |
Contains document property elements such as the document's title, author, and so on.
|
||
DocumentSettings | getDocumentSettings() | |
Contains elements that specify document settings.
|
||
DocumentSheet | getDocumentSheet() | |
Specifies a document's ShapeSheet structure.
|
||
byte[] | getEmailRoutingData() | |
void | setEmailRoutingData(byte[]value) | |
Contains a MIME (Multipurpose Internet Mail Extensions) encoded MAPI e-mail routing slip for the document. | ||
EventItemCollection | getEventItems() | |
Contains an EventItem element for each event to which an object should respond.
|
||
void | setFontDirs(java.lang.String[] value) | |
Indicates the Fonts folder path
|
||
FontCollection | getFonts() | |
Contains a collection of Font elements
|
||
HeaderFooter | getHeaderFooter() | |
Contains elements for a document's header and footer.
|
||
java.lang.String | getKey() | |
void | setKey(java.lang.Stringvalue) | |
Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio. | ||
MasterCollection | getMasters() | |
Collection Master objects.
|
||
int | getMetric() | |
void | setMetric(intvalue) | |
Whether to use metric units in the drawing. Set this attribute to True (1) to use metric units; set it to False (0) to use English units. The value of the property is BOOL integer constant. | ||
PageCollection | getPages() | |
Collection Page objects.
|
||
java.lang.String | getRibbonX() | |
void | setRibbonX(java.lang.Stringvalue) | |
The Ribbon XML string that is passed to the document to customize the ribbon user interface. | ||
SolutionXMLCollection | getSolutionXMLs() | |
XML value.
|
||
long | getStart() | |
void | setStart(longvalue) | |
Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio. | ||
StyleSheetCollection | getStyleSheets() | |
Collection StyleSheet objects.
|
||
java.lang.String | getUserCustomUI() | |
void | setUserCustomUI(java.lang.Stringvalue) | |
The Ribbon XML string that is passed to the document to customize the Quick Access toolbar or the ribbon. | ||
Validation | getValidation() | |
Stores information about diagram validation for the document.
|
||
Aspose.Diagram.Vba.VbaProject | getVbaProject() | |
Gets the VbaProject |
||
byte[] | getVbProjectData() | |
void | setVbProjectData(byte[]value) | |
Contains the Microsoft Visual Basic for Applications project data in MIME (Multipurpose Internet Mail Extensions) encoded format. | ||
java.lang.String | getVersion() | |
void | setVersion(java.lang.Stringvalue) | |
The version number of the Visio instance. Microsoft Visio 2010 = 14. | ||
WindowCollection | getWindows() | |
Contains the Window elements for a document.
|
Method Summary | ||
---|---|---|
int | addMaster(Diagram srcDiagram, java.lang.String masterName) | |
Adds master to diagram from source diagram by master's Name or NameU.
|
||
int | addMaster(java.lang.String templateFilePath, int masterID) | |
Adds master to diagram from template file by master's ID.
|
||
int | addMaster(java.lang.String templateFilePath, java.lang.String masterName) | |
Adds master to diagram from template file by master's Name or NameU.
|
||
long | addShape(Shape newShape, java.lang.String masterName, int pageNumber) | |
Adds shape created by master to specific page.
|
||
long | addShape(double pinX, double pinY, double width, double height, java.lang.String masterName, int pageNumber) | |
Adds shape created by master on page with defined PinX,PinY,Width and Height.
|
||
long | addShape(double pinX, double pinY, java.lang.String masterName, int pageNumber) | |
Adds shape created by master on page with defined PinX and PinY.
|
||
void | combine(Diagram secondDiagram) | |
Combines another Diagram object.
|
||
void | copyTheme(Diagram source) | |
Copies Theme from a source Diagram.
|
||
void | dispose() | |
Performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
|
||
static void | export(java.lang.String inputVsd, java.lang.String outputVdw) | |
Exports the diagram from vsd to vdw format. Not implemented yet.
|
||
java.lang.String | getDefaultFontDir() | |
Get the Default Fonts folder path
|
||
StyleSheetCollection | getUnusedStyles() | |
Get unused Styles
|
||
boolean | hasHiddenInfo() | |
Indicates whether this diagram has hidden information.
|
||
void | print(java.lang.String printerName) | |
Print the whole document to the specified printer,using the standard (no User Interface) print controller.
|
||
void | print(java.lang.String printerName, java.lang.String documentName) | |
Prints the document,using the standard (no User Interface) print controller and a document name.
|
||
void | removeHiddenInformation(int item) | |
Remove unused information
|
||
void | removeMacro() | |
Removes VBA/macro from this diagram.
|
||
void | save(java.lang.String filename, int format) | |
Saves the diagram data to the file.
|
public Diagram()
public Diagram(java.lang.String filename) throws java.lang.Exception
filename
- The file name.public Diagram(java.lang.String filename, int format) throws java.lang.Exception
filename
- The file name.format
- A public Diagram(java.lang.String filename, LoadOptions options) throws java.lang.Exception
filename
- The file name.options
- The data public long getStart() / public void setStart(long value)
public void setFontDirs(java.lang.String[] value)
public java.lang.String getKey() / public void setKey(java.lang.String value)
public int getMetric() / public void setMetric(int value)
public long getBuildnum() / public void setBuildnum(long value)
public java.lang.String getVersion() / public void setVersion(java.lang.String value)
public int getDocLangID() / public void setDocLangID(int value)
public StyleSheetCollection getStyleSheets()
public MasterCollection getMasters()
public PageCollection getPages()
public DocumentProperties getDocumentProps()
public DocumentSettings getDocumentSettings()
public ColorEntryCollection getColors()
public FontCollection getFonts()
public DocumentSheet getDocumentSheet()
public Page getActivePage()
public WindowCollection getWindows()
public EventItemCollection getEventItems()
public HeaderFooter getHeaderFooter()
public byte[] getVbProjectData() / public void setVbProjectData(byte[] value)
public byte[] getEmailRoutingData() / public void setEmailRoutingData(byte[] value)
public DataConnectionCollection getDataConnections()
public DataRecordSetCollection getDataRecordSets()
public java.lang.String getRibbonX() / public void setRibbonX(java.lang.String value)
public java.lang.String getUserCustomUI() / public void setUserCustomUI(java.lang.String value)
public Validation getValidation()
public SolutionXMLCollection getSolutionXMLs()
public Aspose.Diagram.Vba.VbaProject getVbaProject()
public void save(java.lang.String filename, int format) throws java.lang.Exception
filename
- The file name.format
- A public static void export(java.lang.String inputVsd, java.lang.String outputVdw) throws java.lang.Exception
inputVsd
- *.vsd file name.outputVdw
- *.vdw file name.public void dispose()
public void copyTheme(Diagram source)
source
- source diagram.public void combine(Diagram secondDiagram) throws java.lang.Exception
secondDiagram
- Another Diagram object.public int addMaster(Diagram srcDiagram, java.lang.String masterName) throws java.lang.Exception
srcDiagram
- source diagram.masterName
- Master's Name or NameU.public int addMaster(java.lang.String templateFilePath, java.lang.String masterName) throws java.lang.Exception
templateFilePath
- Path to template file(can be vdx, vst or vsd format).masterName
- Master's Name or NameU.public int addMaster(java.lang.String templateFilePath, int masterID) throws java.lang.Exception
templateFilePath
- Path to template file(can be vdx, vst or vsd format).masterID
- The unique ID of the master within masters collection in template.public boolean hasHiddenInfo()
public void removeHiddenInformation(int item)
item
- RemoveHiddenInfoItem.public StyleSheetCollection getUnusedStyles()
public long addShape(Shape newShape, java.lang.String masterName, int pageNumber) throws java.lang.Exception
newShape
- New shape objectmasterName
- Master's name.pageNumber
- Index of page.public long addShape(double pinX, double pinY, java.lang.String masterName, int pageNumber) throws java.lang.Exception
pinX
- Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the page.pinY
- Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the page.masterName
- Master's name.pageNumber
- Index of page.public long addShape(double pinX, double pinY, double width, double height, java.lang.String masterName, int pageNumber) throws java.lang.Exception
pinX
- Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the page.pinY
- Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the page.width
- Specifies the width of the shape in inches.height
- Specifies the height of the shape in inches.masterName
- Master's name.pageNumber
- Index of page.public void print(java.lang.String printerName) throws java.lang.Exception
printerName
- The name of the printer.Can be Nullpublic void print(java.lang.String printerName, java.lang.String documentName) throws java.lang.Exception
printerName
- The name of the printer.Can be NulldocumentName
- The document name to display (for example, in a print status dialog box or printer queue) while printing the document. public java.lang.String getDefaultFontDir()
public void removeMacro()