|
Sparksee 6.1.0
|
Default implementation for ExportManager class. More...
#include <Sparksee.h>


Instance Methods | |
| (id) | - init |
| Creates a new instance. | |
| (BOOL) | - subgraphNodes: |
| Limit the exported nodes to the nodes in the given node set. | |
| (BOOL) | - subgraphEdges: |
| Limit the exported edges to the edges in the given edges set. | |
| (void) | - setTitleWithAttributes: |
| Include additional information including all the node/edge attributes as Title instead of the default title text (just the type name). | |
| (void) | - setTypeColorRGB:color: |
| Set the color for a specific node/edge type. | |
| (void) | - setNodeTypeImage:image: |
| Set an image for all the nodes of a specific node type. | |
| (void) | - setNodeTypeImageAttribute:imageAttr: |
| Set the attribute that stores the image for a specific node type. | |
| (void) | - setTypeLabelAttribute:labelAttr: |
| Set the attribute that stores the label for a specific node/edge type. | |
| (void) | - setNodeTypeShape:shape: |
| Set the shape for all nodes of this type. | |
| (BOOL) | - setMaxTextCharacters: |
| Sets the maximum number of Text Attribute characters to show. | |
| (BOOL) | - setMaxArrayElements: |
| Sets the maximum number of elements of an Array Attribute to show. | |
| (void) | - prepare: |
| Default implementation of the ExportManager class method Prepare. | |
| (void) | - prepareSwigExplicitSTSDefaultExport: |
| Default implementation of the ExportManager class method Prepare. | |
| (void) | - close |
| Default implementation of the ExportManager class method Release. | |
| (void) | - closeSwigExplicitSTSDefaultExport |
| Default implementation of the ExportManager class method Release. | |
| (BOOL) | - getGraph: |
| Default implementation of the ExportManager class method GetGraph. | |
| (BOOL) | - getGraphSwigExplicitSTSDefaultExport: |
| Default implementation of the ExportManager class method GetGraph. | |
| (BOOL) | - getNodeType:nodeExport: |
| Default implementation of the ExportManager class method GetNodeType. | |
| (BOOL) | - getNodeTypeSwigExplicitSTSDefaultExport:nodeExport: |
| Default implementation of the ExportManager class method GetNodeType. | |
| (BOOL) | - getEdgeType:edgeExport: |
| Default implementation of the ExportManager class method GetEdgeType. | |
| (BOOL) | - getEdgeTypeSwigExplicitSTSDefaultExport:edgeExport: |
| Default implementation of the ExportManager class method GetEdgeType. | |
| (BOOL) | - getNode:nodeExport: |
| Default implementation of the ExportManager class method GetNode. | |
| (BOOL) | - getNodeSwigExplicitSTSDefaultExport:nodeExport: |
| Default implementation of the ExportManager class method GetNode. | |
| (BOOL) | - getEdge:edgeExport: |
| Default implementation of the ExportManager class method GetEdge. | |
| (BOOL) | - getEdgeSwigExplicitSTSDefaultExport:edgeExport: |
| Default implementation of the ExportManager class method GetEdge. | |
| (BOOL) | - enableType: |
| Default implementation of the ExportManager class method EnableType. | |
| (BOOL) | - enableTypeSwigExplicitSTSDefaultExport: |
| Default implementation of the ExportManager class method EnableType. | |
| (BOOL) | - exportAll |
| Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions. | |
| (BOOL) | - exportAllSwigExplicitSTSDefaultExport |
| Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions. | |
| (long long) | - nextNode |
| Gets the next node to export or InvalidOID. | |
| (long long) | - nextNodeSwigExplicitSTSDefaultExport |
| Gets the next node to export or InvalidOID. | |
| (long long) | - nextEdge |
| Gets the next edge to export or InvalidOID. | |
| (long long) | - nextEdgeSwigExplicitSTSDefaultExport |
| Gets the next edge to export or InvalidOID. | |
| (void) | - setTypeColor:red:green:blue:alpha: |
| Set Set the color for a specific node/edge type with separated RGBA components. | |
| (BOOL) | - exportAllSwigExplicitSTSExportManager |
| Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions. | |
| (long long) | - nextNodeSwigExplicitSTSExportManager |
| Gets the next node to export or InvalidOID. | |
| (long long) | - nextEdgeSwigExplicitSTSExportManager |
| Gets the next edge to export or InvalidOID. | |
Default implementation for ExportManager class.
It uses the default values from GraphExport, NodeExport and EdgeExport to export all node and edge types.
| - (BOOL) enableType: | (int) | type |
Default implementation of the ExportManager class method EnableType.
This enables all node and edge types to be exported.
| type | [in] The type to enable. |
Implements STSExportManager.
| - (BOOL) enableTypeSwigExplicitSTSDefaultExport: | (int) | type |
Default implementation of the ExportManager class method EnableType.
This enables all node and edge types to be exported.
| type | [in] The type to enable. |
| - (BOOL) exportAll |
Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions.
Or false to use the new Next() method of this class to get the only nodes/edges that should be exported. It will return true to export all the graph unless a subgraph had been selected by calling the SubgraphNodes or SubgraphEdges methods.
Implements STSExportManager.
References exportAll.
Referenced by exportAll.
| - (BOOL) exportAllSwigExplicitSTSDefaultExport |
Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions.
Or false to use the new Next() method of this class to get the only nodes/edges that should be exported. It will return true to export all the graph unless a subgraph had been selected by calling the SubgraphNodes or SubgraphEdges methods.
References exportAllSwigExplicitSTSDefaultExport.
Referenced by exportAllSwigExplicitSTSDefaultExport.
| - (BOOL) exportAllSwigExplicitSTSExportManager |
Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions.
Or false to use the new NextNode() and NextEdge() methods of this class to get the only nodes/edges that should be exported.
References exportAllSwigExplicitSTSExportManager.
Referenced by exportAllSwigExplicitSTSExportManager.
| - (BOOL) getEdge: | (long long) | edge | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
Default implementation of the ExportManager class method GetEdge.
This sets the default EdgeExport values and sets the OID as the label. Also, it exports the edge as directed just if the edge is directed.
| edge | [in] An edge. |
| edgeExport | [out] The EdgeExport that will store the information. |
Implements STSExportManager.
| - (BOOL) getEdgeSwigExplicitSTSDefaultExport: | (long long) | edge | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
Default implementation of the ExportManager class method GetEdge.
This sets the default EdgeExport values and sets the OID as the label. Also, it exports the edge as directed just if the edge is directed.
| edge | [in] An edge. |
| edgeExport | [out] The EdgeExport that will store the information. |
| - (BOOL) getEdgeType: | (int) | type | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
Default implementation of the ExportManager class method GetEdgeType.
This sets de default EdgeExport values.
| type | [in] An edge type. |
| edgeExport | [out] The EdgeExport that will store the information. |
Implements STSExportManager.
| - (BOOL) getEdgeTypeSwigExplicitSTSDefaultExport: | (int) | type | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
Default implementation of the ExportManager class method GetEdgeType.
This sets de default EdgeExport values.
| type | [in] An edge type. |
| edgeExport | [out] The EdgeExport that will store the information. |
| - (BOOL) getGraph: | (STSGraphExport *) | graphExport |
Default implementation of the ExportManager class method GetGraph.
This sets the default GraphExport values including the default background color and the database alias as the label. The default GraphExport label could be empty (because the database did not have an alias) but this method will add " graph" or " subgraph" to the label anyway to easily know if the hole graph was exported or just some nodes/edges.
| graphExport | [out] The GraphExport that will store the information. |
Implements STSExportManager.
| - (BOOL) getGraphSwigExplicitSTSDefaultExport: | (STSGraphExport *) | graphExport |
Default implementation of the ExportManager class method GetGraph.
This sets the default GraphExport values including the default background color and the database alias as the label. The default GraphExport label could be empty (because the database did not have an alias) but this method will add " graph" or " subgraph" to the label anyway to easily know if the hole graph was exported or just some nodes/edges.
| graphExport | [out] The GraphExport that will store the information. |
| - (BOOL) getNode: | (long long) | node | |
| nodeExport: | (STSNodeExport *) | nodeExport |
Default implementation of the ExportManager class method GetNode.
This sets the default NodeExport values and sets the OID as the label.
| node | [in] A node. |
| nodeExport | [out] The NodeExport that will store the information. |
Implements STSExportManager.
| - (BOOL) getNodeSwigExplicitSTSDefaultExport: | (long long) | node | |
| nodeExport: | (STSNodeExport *) | nodeExport |
Default implementation of the ExportManager class method GetNode.
This sets the default NodeExport values and sets the OID as the label.
| node | [in] A node. |
| nodeExport | [out] The NodeExport that will store the information. |
| - (BOOL) getNodeType: | (int) | type | |
| nodeExport: | (STSNodeExport *) | nodeExport |
Default implementation of the ExportManager class method GetNodeType.
This sets de default NodeExport values.
| type | [in] A node type. |
| nodeExport | [out] The NodeExport that will store the information. |
Implements STSExportManager.
| - (BOOL) getNodeTypeSwigExplicitSTSDefaultExport: | (int) | type | |
| nodeExport: | (STSNodeExport *) | nodeExport |
Default implementation of the ExportManager class method GetNodeType.
This sets de default NodeExport values.
| type | [in] A node type. |
| nodeExport | [out] The NodeExport that will store the information. |
| - (long long) nextEdge |
Gets the next edge to export or InvalidOID.
It will return valid edge OIDs to export and InvalidOID when there is not any more edges to export. ExportAll returns false.
Implements STSExportManager.
References nextEdge.
Referenced by nextEdge.
| - (long long) nextEdgeSwigExplicitSTSDefaultExport |
Gets the next edge to export or InvalidOID.
It will return valid edge OIDs to export and InvalidOID when there is not any more edges to export. ExportAll returns false.
References nextEdgeSwigExplicitSTSDefaultExport.
Referenced by nextEdgeSwigExplicitSTSDefaultExport.
| - (long long) nextEdgeSwigExplicitSTSExportManager |
Gets the next edge to export or InvalidOID.
It will return valid edge OIDs to export and InvalidOID when there is not any more edges to export. ExportAll returns false.
References nextEdgeSwigExplicitSTSExportManager.
Referenced by nextEdgeSwigExplicitSTSExportManager.
| - (long long) nextNode |
Gets the next node to export or InvalidOID.
It will return valid node OIDs to export and InvalidOID when there is not any more nodes to export. ExportAll returns false.
Implements STSExportManager.
References nextNode.
Referenced by nextNode.
| - (long long) nextNodeSwigExplicitSTSDefaultExport |
Gets the next node to export or InvalidOID.
It will return valid node OIDs to export and InvalidOID when there is not any more nodes to export. ExportAll returns false.
References nextNodeSwigExplicitSTSDefaultExport.
Referenced by nextNodeSwigExplicitSTSDefaultExport.
| - (long long) nextNodeSwigExplicitSTSExportManager |
Gets the next node to export or InvalidOID.
It will return valid node OIDs to export and InvalidOID when there is not any more nodes to export. ExportAll returns false.
References nextNodeSwigExplicitSTSExportManager.
Referenced by nextNodeSwigExplicitSTSExportManager.
| - (void) prepare: | (STSGraph *) | graph |
Default implementation of the ExportManager class method Prepare.
| graph | null |
Implements STSExportManager.
| - (void) prepareSwigExplicitSTSDefaultExport: | (STSGraph *) | graph |
Default implementation of the ExportManager class method Prepare.
| graph | null |
| - (BOOL) setMaxArrayElements: | (int) | size |
Sets the maximum number of elements of an Array Attribute to show.
If an Array Attribute has more than the given size elements, only the first ones will be used and "..." will be added.
| size | null |
| - (BOOL) setMaxTextCharacters: | (int) | size |
Sets the maximum number of Text Attribute characters to show.
If a Text Attribute has more than the given size characters it will be truncated and "..." will be added.
| size | null |
| - (void) setNodeTypeImage: | (int) | nodeType | |
| image: | (NSString *) | image |
Set an image for all the nodes of a specific node type.
| nodeType | [in] A valid node type. |
| image | [in] A path or URL of the image to use for all nodes of this type. |
| - (void) setNodeTypeImageAttribute: | (int) | nodeType | |
| imageAttr: | (int) | imageAttr |
Set the attribute that stores the image for a specific node type.
| nodeType | [in] A valid node type. |
| imageAttr | [in] The attribute to use for nodes of this type to get the image url/path. |
| - (void) setNodeTypeShape: | (int) | nodeType | |
| shape: | (enum STSNodeShape) | shape |
Set the shape for all nodes of this type.
| nodeType | [in] A valid node type. |
| shape | [in] The shape for all the nodes of the given type. |
| - (void) setTitleWithAttributes: | (BOOL) | encoded |
Include additional information including all the node/edge attributes as Title instead of the default title text (just the type name).
| encoded | [in] If true the tooltip data will be added as a base64 encoded JSON instead of very basic html text format for easy parsing of the additional data. |
| - (void) setTypeColor: | (int) | type | |
| red: | (double) | red | |
| green: | (double) | green | |
| blue: | (double) | blue | |
| alpha: | (double) | alpha |
Set Set the color for a specific node/edge type with separated RGBA components.
| red | [in] The red color component ([0..1]). |
| green | [in] The green color component ([0..1]). |
| blue | [in] The blue color component ([0..1]). |
| alpha | [in] The alpha component ([0..1]). |
| - (void) setTypeColorRGB: | (int) | type | |
| color: | (int) | color |
Set the color for a specific node/edge type.
| type | [in] A valid node/edge type. |
| color | [in] The main color for the type. The label color will be set as a complementary color from the given color to guarantee that it will contrast. |
| - (void) setTypeLabelAttribute: | (int) | type | |
| labelAttr: | (int) | labelAttr |
Set the attribute that stores the label for a specific node/edge type.
| type | [in] A valid node/edge type. |
| labelAttr | [in] The attribute to use for nodes/edges of this type to get the label. If a valid label can be obttained from the attribute it will be used instead of the default OID. |
| - (BOOL) subgraphEdges: | (STSObjects *) | edges |
Limit the exported edges to the edges in the given edges set.
If only the subgraph edges are specified, the exported nodes will be calculated as all the nodes present in the selected edges.
| edges | [in] Subgraph edges to export. Must be kept alive by the user until the export is finished. The given Objects set can also contain nodes, but will be ignored. This is useful to use a signle Objects set to limit both subgraph nodes and edges. But if an Objects containing both nodes and edges is used, then both SubgraphNodes and SubgraphEdges methods must be called. |
| - (BOOL) subgraphNodes: | (STSObjects *) | nodes |
Limit the exported nodes to the nodes in the given node set.
If only the subgraph nodes are specified, the exported edges will be calculated as all the edges between the selected nodes.
| nodes | [in] Subgraph nodes to export. Must be kept alive by the user until the export is finished. The given Objects set can also contain edges, but will be ignored. This is useful to use a signle Objects set to limit both subgraph nodes and edges. But if an Objects containing both nodes and edges is used, then both SubgraphNodes and SubgraphEdges methods must be called. |