|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.SchematicRelationController
public class SchematicRelationController
Schematic relation controller object.
| Constructor Summary | |
|---|---|
SchematicRelationController()
Constructs a SchematicRelationController using ArcGIS Engine. |
|
SchematicRelationController(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SchematicRelationController theSchematicRelationController = (SchematicRelationController) obj; |
|
| Method Summary | |
|---|---|
void |
createRelation(INgElement child,
INgElement parent)
Creates a schematic relation between the specified child graphic element and the specified parent graphic element in memory. |
void |
deleteRelation(INgElement child)
Deletes the schematic relation defined for the specified child graphic element. |
boolean |
equals(Object o)
Compare this object with another |
INgElements |
findChildren(INgElement parent)
Returns the children graphic elements for the specified parent graphic element. |
INgElement |
findParent(INgElement child)
Returns the parent graphic element for the specified child graphic element. |
INgElements |
findParents(INgDiagram diagram)
Returns all the parent graphic elements contained in the specified diagram. |
static String |
getClsid()
getClsid. |
ISchematicRelationManager |
getSchematicRelationManager(INgElement parent)
Returns the schematic relation manager related to the specified parent graphic element. |
int |
hashCode()
the hashcode for this object |
boolean |
isParent(INgElement element)
Indicates if a graphic element is a parent. |
void |
loadSchematicRelations(ISchematicDiagram diagram)
Loads the schematic relations related to the specified schematic diagram in memory. |
void |
onMoveElements(INgView view,
INgElements elements,
double deltaX,
double deltaY)
Fires when the user moves a set of graphic elements with the mouse in any graphic view. |
void |
redrawSchematicRelations(INgView view)
Redraws the schematic relations in the specified graphic view. |
void |
setSchematicRelationManager(INgElement parent,
ISchematicRelationManager relationManager)
Sets the schematic relation manager related to the specified parent graphic element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public SchematicRelationController()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public SchematicRelationController(Object obj)
throws IOException
SchematicRelationController theSchematicRelationController = (SchematicRelationController) obj;
obj to SchematicRelationController.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void loadSchematicRelations(ISchematicDiagram diagram)
throws IOException,
AutomationException
loadSchematicRelations in interface ISchematicRelationControllerdiagram - A reference to a com.esri.arcgis.schematic.ISchematicDiagram (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redrawSchematicRelations(INgView view)
throws IOException,
AutomationException
It’s the developer responsibility to call the ISchematicRelationController::RedrawSchematicRelations method for the related objects to be automatically redrawn when parent or child objects are moved by programming or after an algorithm execution. Please also note that programming the relations redraw on the INgProjectEvents::OnMoveElements or ISchematicRelationControllerEvent::OnMoveElements events will be completely unuseful because these events are only triggered when schematic elements are moved using the GUI tools; that is when end-users move schematic elements using the mouse or the keyboard arrows. So when elements are moved by programming using any "Move" method, the custom code specified on these events will be not fired. In this case, you must use the RedrawSchematicRelations either at the end of the move operations sequences in your custom procedure or customize the SchematicAlgorithmEvents::AfterExecuteAlgorithm event (when the "Move" methods are called during a custom algorithm).
redrawSchematicRelations in interface ISchematicRelationControllerview - A reference to a com.esri.arcgis.schematic.INgView (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createRelation(INgElement child,
INgElement parent)
throws IOException,
AutomationException
createRelation in interface ISchematicRelationControllerEditchild - A reference to a com.esri.arcgis.schematic.INgElement (in)parent - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteRelation(INgElement child)
throws IOException,
AutomationException
deleteRelation in interface ISchematicRelationControllerEditchild - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgElement findParent(INgElement child)
throws IOException,
AutomationException
findParent in interface ISchematicRelationControllerToolchild - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.findParents(com.esri.arcgis.schematic.INgDiagram),
ISchematicRelationControllerTool.isParent(com.esri.arcgis.schematic.INgElement)
public INgElements findChildren(INgElement parent)
throws IOException,
AutomationException
findChildren in interface ISchematicRelationControllerToolparent - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.findParent(com.esri.arcgis.schematic.INgElement),
ISchematicRelationControllerTool.isParent(com.esri.arcgis.schematic.INgElement)
public INgElements findParents(INgDiagram diagram)
throws IOException,
AutomationException
findParents in interface ISchematicRelationControllerTooldiagram - A reference to a com.esri.arcgis.schematic.INgDiagram (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.findParent(com.esri.arcgis.schematic.INgElement),
ISchematicRelationControllerTool.isParent(com.esri.arcgis.schematic.INgElement)
public boolean isParent(INgElement element)
throws IOException,
AutomationException
isParent in interface ISchematicRelationControllerToolelement - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.findParent(com.esri.arcgis.schematic.INgElement),
ISchematicRelationControllerTool.findParents(com.esri.arcgis.schematic.INgDiagram)
public ISchematicRelationManager getSchematicRelationManager(INgElement parent)
throws IOException,
AutomationException
getSchematicRelationManager in interface ISchematicRelationControllerToolparent - A reference to a com.esri.arcgis.schematic.INgElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.setSchematicRelationManager(com.esri.arcgis.schematic.INgElement, com.esri.arcgis.schematic.ISchematicRelationManager)
public void setSchematicRelationManager(INgElement parent,
ISchematicRelationManager relationManager)
throws IOException,
AutomationException
setSchematicRelationManager in interface ISchematicRelationControllerToolparent - A reference to a com.esri.arcgis.schematic.INgElement (in)relationManager - A reference to a com.esri.arcgis.schematic.ISchematicRelationManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISchematicRelationControllerTool.getSchematicRelationManager(com.esri.arcgis.schematic.INgElement)
public void onMoveElements(INgView view,
INgElements elements,
double deltaX,
double deltaY)
throws IOException,
AutomationException
When elements are moved by programming using any "Move" method, the custom code specified on this event will be not fired. The OnMoveElements event is only triggered when containers are moved using the GUI tools; that is when end-users move containers using the mouse or the keyboard arrows. So if there are schematic relations as containers between schematics objects contained in a schematic diagram and you develop custom code that use any "Move" method, programming the relations redraw on the ISchematicRelationControllerEvent::OnMoveElements will be completely unuseful. In this case, you must force the relations redraw at the end of the move operations sequence in your custom procedure or customize the SchematicAlgorithmEvents::AfterExecuteAlgorithm event (when the "Move" methods are called during a custom algorithm).
onMoveElements in interface ISchematicRelationControllerEventview - A reference to a com.esri.arcgis.schematic.INgView (in)elements - A reference to a com.esri.arcgis.schematic.INgElements (in)deltaX - The deltaX (in)deltaY - The deltaY (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 | ||||||||