|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgDiagramType
Provides access to members that control the graphic diagram type.
A diagram type behaves as the template for the display properties of a network and is assigned to one project. Schematics elements are associated with diagram types and displayed in diagrams. More than one diagram type can be defined for a project. Typically, one diagram type is defined for a specific view of the network. For example, a diagram type is defined for a schematic of the electric network of primaries and switches, and a second diagram type is defined for a schematic of the internal schema (inside plant) of the devices.
Diagram types support parent–child relationships, allowing child diagram types to inherit the parameters set on the parent diagram type.
If you want to create a diagram type, you can use the ArcGIS Schematics Designer or call the esriSchematic CreateDiagramType method in your code.
You can complete your diagram definition by defining: the query returning all the diagrams of this type, the fields used to build up each diagram identifier for this diagram type, one or more attributes associated with this diagram type.
All these characteristics can be defined through the ArcGIS Schematics Designer, or program using the INgObjectType interface associated with your INgDiagramType.
INgDiagram| Method Summary | |
|---|---|
void |
associateElementType(INgElementType elementType)
Associates the 'ElementType' element type with the diagram type. |
void |
delete(boolean deleteDescendants)
Deletes the diagram type. |
void |
dissociateElementType(INgElementType elementType)
Dissociates the 'ElementType' element type with the diagram type. |
INgDiagramTypes |
getAncestors()
List of the ancestor diagram types for the diagram type. |
INgElementTypes |
getAssociatedElementTypes()
List of the element types associated with the diagram type. |
INgDiagramTypes |
getChildren()
List of the child diagram types for the diagram type. |
INgDiagramTypes |
getDescendants()
List of the descendant diagram types for the diagram type. |
INgDiagram |
getDiagram(String diagramName)
Returns the diagram named 'diagramName' implemented by the diagram type. |
INgNames |
getDiagramNames()
List of the names of the diagrams implemented by the diagram type. |
INgDiagrams |
getDiagrams()
List of diagrams implemented by the diagram type. |
String |
getName()
Name of the diagram type. |
INgDiagramType |
getParent()
Parent diagram type of the diagram type. |
boolean |
isElementTypeAssociated(INgElementType elementType)
Indicates if the 'ElementType' element type is associated with the diagram type. |
INgDiagram |
openDiagram(String diagramName,
boolean restore)
Opens the diagram named 'diagramName' implemented by the diagram type. |
void |
setName(String pVal)
Name of the diagram type. |
void |
setParent(INgDiagramType pVal)
Parent diagram type of the diagram type. |
| Method Detail |
|---|
String getName()
throws IOException,
AutomationException
This name is defined when the diagram type is created:
- either by calling the INgProjectBuilder CreateDiagramType method in the code,
- or when the diagram type is created through ArcGIS Schematics Designer.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setName(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgElementTypes getAssociatedElementTypes()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
INgDiagrams getDiagrams()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgDiagram getDiagram(String diagramName)
throws IOException,
AutomationException
diagramName - The diagramName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgDiagram openDiagram(String diagramName,
boolean restore)
throws IOException,
AutomationException
Note that the diagramName parameter must be consistent with the diagram name identifier definition for its associated diagram type.
Several Schematic event procedures are automatically chained during a diagram opening. For more details on these events' chaining, please see the Remarks section available from the INgDiagram Open method help-page.
diagramName - The diagramName (in)restore - The restore (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProjectEvents.beforeOpenDiagram(com.esri.arcgis.schematic.INgProjectEventsBeforeOpenDiagramEvent),
INgProject.openDiagram(com.esri.arcgis.schematic.INgDiagramType, String, boolean),
INgDiagram.open()
INgDiagramType getParent()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getChildren(),
INgDiagramType.getAncestors()
void setParent(INgDiagramType pVal)
throws IOException,
AutomationException
pVal - A reference to a com.esri.arcgis.schematic.INgDiagramType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgDiagramTypes getAncestors()
throws IOException,
AutomationException
Note that the diagram type ancestors list is returned in ascending hierarchy order; that is from the parent to the most distant ancestor.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getParent(),
INgDiagramType.getChildren()
INgDiagramTypes getChildren()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getDescendants(),
INgDiagramType.getParent(),
INgDiagramType.getAncestors()
INgDiagramTypes getDescendants()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getParent(),
INgDiagramType.getChildren(),
INgDiagramType.getAncestors()
void delete(boolean deleteDescendants)
throws IOException,
AutomationException
Note that the TRUE value is the default value for the deleteDescendants parameter.
deleteDescendants - The deleteDescendants (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgNames getDiagramNames()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void associateElementType(INgElementType elementType)
throws IOException,
AutomationException
elementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getAssociatedElementTypes()
void dissociateElementType(INgElementType elementType)
throws IOException,
AutomationException
elementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
boolean isElementTypeAssociated(INgElementType elementType)
throws IOException,
AutomationException
elementType - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||