|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgElement
public class NgElement
Graphic element object.
| Constructor Summary | |
|---|---|
NgElement(Object obj)
Construct a NgElement using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
center()
Centers the element in all the views where it displays while redrawing it. |
INgFlag |
createFlag(INgFlagModel flagModel,
int mode,
int poleVisibility)
Creates a flag based on the flag model 'flagModel' for the element. |
void |
deleteUserData(INgUserData userData)
Deletes the userdata value for the element. |
void |
display(boolean redraw)
Displays the element in all the views it must appear while redrawing it. |
boolean |
equals(Object o)
Compare this object with another |
String |
getAttributeValue(String attributeName)
Returns the value of the attribute named 'attributeName' for the element. |
INgDiagram |
getDiagram()
Diagram that contains the element. |
INgElementType |
getElementType()
Element type that implements the element. |
INgFlag |
getFlag(INgFlagModel flagModel)
Returns the flag based on the flag model 'flagModel' that is currently attached to the element. |
INgFlags |
getFlags()
List of the flags attached to the element. |
INgPoints |
getLabelBoundingBox(INgView view,
INgProperty prop)
Returns the label bounding box of the 'prop' property associated with the element in the view 'view'. |
Object |
getLabelEffect(INgProperty prop,
int effect)
Returns the value of the effect 'effect' set for the label of the 'prop' property associated with the element. |
INgPoint |
getLabelPosition(INgView view,
INgProperty prop)
Returns the point defining the position of the 'prop' property label for the element in the view 'view'. |
String |
getName()
Name of the element. |
Object |
getPropertyValue(INgProperty prop)
Returns the value of the 'prop' property for the element. |
int |
getType()
Type of the element type. |
Object |
getUserDataValue(INgUserData userData)
Returns the value of the 'userData' userdata for the element. |
int |
hashCode()
the hashcode for this object |
boolean |
isLabelEffectSet(INgProperty prop,
int effect)
Indicates if the effect 'effect' defined for the label of the 'prop' property associated with the element is set. |
boolean |
isLabelMoved(INgProperty prop)
Indicates if the label of the 'prop' property associated with the element has been moved. |
boolean |
isSelected()
Indicates if the element is selected. |
void |
moveLabel(INgProperty prop,
double x,
double y,
int mode)
Moves the label of the 'prop' property associated with the element to the (X,Y) relative or absolute position. |
void |
refresh(boolean redraw)
Updates the element in all the views where it appears, and redraws it while reflecting the modifications it may have undergone in the database. |
void |
remove(boolean redraw)
Removes graphically the element in all the views where it appears and redraws it, after the application has removed the associated object from the database. |
void |
select(boolean redraw)
Selects the element in all the views where it displays and redraws it. |
void |
setLabelEffect(INgProperty prop,
int effect,
Object effValue)
Modifies the effect 'effect' set for the label of the 'prop' property associated with the element. |
void |
setPropertyValue(INgProperty prop,
Object propertyValue)
Modifies the value of the 'prop' property for the element. |
void |
setUserDataValue(INgUserData userData,
Object userDataValue)
Modifies the value of the 'userData' userdata for the element. |
void |
undisplay(boolean redraw)
Removes graphically the element in all the views where it appears and redraws it. |
void |
unselect(boolean redraw)
Deselects the element in all the views where it displays and redraws it. |
void |
unsetLabelEffect(INgProperty prop,
int effect)
Unsets the effect 'effect' set for the label of the 'prop' property associated with the 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 NgElement(Object obj)
throws IOException
obj to NgElement. *
NgElement o = (NgElement)obj; // will not work
NgElement o = new NgElement(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgElement theNgElement = (NgElement) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public INgElementType getElementType()
throws IOException,
AutomationException
getElementType in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
This name has been defined when the element has been created:
- either by calling the CreateNode, CreateLink, CreateDrawing, CreateSubLink, or CreateNodeOnLink methods available from the INgDiagram interface, or by triggering the NameOfDigitNode, NameOfDigitLink, or NameOfDigitDrawing events available from the INgProjectEvents in the code,
- or when its associated element type was defined through ArcGIS Schematics Designer.
getName in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws IOException,
AutomationException
getType in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagram getDiagram()
throws IOException,
AutomationException
getDiagram in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgFlags getFlags()
throws IOException,
AutomationException
getFlags in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unselect(boolean redraw)
throws IOException,
AutomationException
The 'redraw' parameter is optional; its default value is True.
unselect in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.isSelected(),
INgElement.select(boolean)
public void center()
throws IOException,
AutomationException
center in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void select(boolean redraw)
throws IOException,
AutomationException
The Redraw parameter is optional; its default value is TRUE.
select in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.isSelected(),
INgElement.unselect(boolean)
public void refresh(boolean redraw)
throws IOException,
AutomationException
The 'redraw' parameter is optional; its default value is True.
refresh in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.display(boolean)
public void undisplay(boolean redraw)
throws IOException,
AutomationException
By default, this method also redraws the element: the default value for the optional ‘redraw’ parameter is TRUE.
undisplay in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.remove(boolean)
public void display(boolean redraw)
throws IOException,
AutomationException
The Redraw parameter is optional; its default value is TRUE.
display in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.refresh(boolean)
public void remove(boolean redraw)
throws IOException,
AutomationException
The default value for the optional redraw parameter is True.
When this method is triggered, the IsElementRemoved event is automatically fired: the graphic removal is effective only if the event-procedure returns True.
remove in interface INgElementredraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.undisplay(boolean)
public INgFlag createFlag(INgFlagModel flagModel,
int mode,
int poleVisibility)
throws IOException,
AutomationException
The flag created is based on the flagModel flag model and is connected to the element using the esriNgStandard or esriNgShortest mode (see esriNgFlagAttachementMode help-page). The pole connecting the flag to the element can be visible or invisible (see esriNgVisibility help-page).
The flagModel INgFlagModel interface can have been defined through ArcGIS Schematics Designer or in the project code by calling the INgProjectBuilder CreateFlagModel method.
If you want to display each element of a specific type with a flag, you can directly use INgElementType AddFlagModel method.
createFlag in interface INgElementflagModel - A reference to a com.esri.arcgis.schematic.INgFlagModel (in)mode - A com.esri.arcgis.schematic.esriNgFlagAttachementMode constant (in, optional, pass 2056 if not required)poleVisibility - A com.esri.arcgis.schematic.esriNgVisibility constant (in, optional, pass 1 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.getFlag(com.esri.arcgis.schematic.INgFlagModel)
public INgFlag getFlag(INgFlagModel flagModel)
throws IOException,
AutomationException
getFlag in interface INgElementflagModel - A reference to a com.esri.arcgis.schematic.INgFlagModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.createFlag(com.esri.arcgis.schematic.INgFlagModel, int, int)
public Object getPropertyValue(INgProperty prop)
throws IOException,
AutomationException
getPropertyValue in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.getAttributeValue(String),
INgElement.getUserDataValue(com.esri.arcgis.schematic.INgUserData)
public void setPropertyValue(INgProperty prop,
Object propertyValue)
throws IOException,
AutomationException
setPropertyValue in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)propertyValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.setUserDataValue(com.esri.arcgis.schematic.INgUserData, java.lang.Object)
public Object getUserDataValue(INgUserData userData)
throws IOException,
AutomationException
getUserDataValue in interface INgElementuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.getPropertyValue(com.esri.arcgis.schematic.INgProperty),
INgElement.getAttributeValue(String)
public void setUserDataValue(INgUserData userData,
Object userDataValue)
throws IOException,
AutomationException
setUserDataValue in interface INgElementuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)userDataValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.setPropertyValue(com.esri.arcgis.schematic.INgProperty, java.lang.Object)
public void setLabelEffect(INgProperty prop,
int effect,
Object effValue)
throws IOException,
AutomationException
setLabelEffect in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)effect - A com.esri.arcgis.schematic.esriNgLabelEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.getLabelEffect(com.esri.arcgis.schematic.INgProperty, int),
INgElement.unsetLabelEffect(com.esri.arcgis.schematic.INgProperty, int)
public Object getLabelEffect(INgProperty prop,
int effect)
throws IOException,
AutomationException
getLabelEffect in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)effect - A com.esri.arcgis.schematic.esriNgLabelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.setLabelEffect(com.esri.arcgis.schematic.INgProperty, int, java.lang.Object),
INgElement.unsetLabelEffect(com.esri.arcgis.schematic.INgProperty, int)
public INgPoint getLabelPosition(INgView view,
INgProperty prop)
throws IOException,
AutomationException
getLabelPosition in interface INgElementview - A reference to a com.esri.arcgis.schematic.INgView (in)prop - A reference to a com.esri.arcgis.schematic.INgProperty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.moveLabel(com.esri.arcgis.schematic.INgProperty, double, double, int)
public void moveLabel(INgProperty prop,
double x,
double y,
int mode)
throws IOException,
AutomationException
Whether that move is relative or absolute depends on the value taken by the 'mode' parameter (see esriNgMoveMode help-page).
moveLabel in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)x - The x (in)y - The y (in)mode - A com.esri.arcgis.schematic.esriNgMoveMode constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.isLabelMoved(com.esri.arcgis.schematic.INgProperty),
INgElement.getLabelPosition(com.esri.arcgis.schematic.INgView, com.esri.arcgis.schematic.INgProperty)
public boolean isSelected()
throws IOException,
AutomationException
isSelected in interface INgElementIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.unselect(boolean),
INgElement.select(boolean)
public String getAttributeValue(String attributeName)
throws IOException,
AutomationException
getAttributeValue in interface INgElementattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.getPropertyValue(com.esri.arcgis.schematic.INgProperty),
INgElement.getUserDataValue(com.esri.arcgis.schematic.INgUserData)
public boolean isLabelEffectSet(INgProperty prop,
int effect)
throws IOException,
AutomationException
isLabelEffectSet in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)effect - A com.esri.arcgis.schematic.esriNgLabelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElement.unsetLabelEffect(com.esri.arcgis.schematic.INgProperty, int)
public void unsetLabelEffect(INgProperty prop,
int effect)
throws IOException,
AutomationException
unsetLabelEffect in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (in)effect - A com.esri.arcgis.schematic.esriNgLabelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgPoints getLabelBoundingBox(INgView view,
INgProperty prop)
throws IOException,
AutomationException
getLabelBoundingBox in interface INgElementview - A reference to a com.esri.arcgis.schematic.INgView (in)prop - A reference to a com.esri.arcgis.schematic.INgProperty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteUserData(INgUserData userData)
throws IOException,
AutomationException
deleteUserData in interface INgElementuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLabelMoved(INgProperty prop)
throws IOException,
AutomationException
isLabelMoved in interface INgElementprop - A reference to a com.esri.arcgis.schematic.INgProperty (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 | ||||||||