|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.display.AnchorPoint
Anchor point class for rubberbanding objects.
The anchor point represents a point that can be used when manipulating elements and features. When working with elements, anchor points can be considered a helper object, rather than an essential. You will first need to cocreate the anchor point and then manipulate it. This is useful when implementing your own tools and objects, for example, a custom rotation tool.
| Constructor Summary | |
AnchorPoint()
Constructs a AnchorPoint on the local host. |
|
AnchorPoint(com.linar.jintegra.AuthInfo authInfo)
See Security section in the J-Integra for COM documentation |
|
AnchorPoint(Object obj)
Construct a AnchorPoint using a reference to such an object returned from a COM server |
|
AnchorPoint(String host)
Construct a AnchorPoint on specified host. |
|
AnchorPoint(String host,
com.linar.jintegra.AuthInfo authInfo)
See Security section in the J-Integra for COM documentation |
|
| Method Summary | |
static AnchorPoint |
bindUsingMoniker(String moniker)
Bind to a running instance of this class using the supplied ObjRef moniker |
void |
draw(IDisplay display)
Draw the anchor. |
boolean |
equals(Object o)
Compare this object with another |
static AnchorPoint |
getActiveObject()
Get a reference to a running instance of this class on the current machine using native code. |
IAnchorPoint |
getAsIAnchorPoint()
Access this class's com.esri.arcgis.display.IAnchorPoint interface |
static String |
getClsid()
|
int |
getCursor()
Cursor displayed when mouse is over anchor. |
IPoint |
getPoint()
Location of anchor point. |
Object |
getPropertyByName(String name)
Get the value of a property dynamically at run-time, based on its name |
Object |
getPropertyByName(String name,
Object rhs)
Get the value of a property dynamically at run-time, based on its name and a parameter |
ISymbol |
getSymbol()
Anchor point symbol. |
int |
hashCode()
the hashcode for this object |
boolean |
hitTest(IPoint point,
double tol)
Check if mouse is over anchor. |
Object |
invokeMethodByName(String name)
|
Object |
invokeMethodByName(String name,
Object[] parameters)
Invoke a method dynamically at run-time to pass primitive types (eg Integer to pass an int). |
void |
moveTo(IPoint pPoint,
IDisplay display)
Move the anchor. |
void |
setPoint(IPoint point)
Location of anchor point. |
void |
setSymbolByRef(ISymbol symbol)
Anchor point symbol. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnchorPoint()
throws IOException,
UnknownHostException
IOException - if there are problems communicating via DCOM
UnknownHostException - if the host can not be found
public AnchorPoint(String host)
throws IOException,
UnknownHostException
host - the host on which the object should be created
IOException - if there are problems communicating via DCOM
UnknownHostException - if the host can not be found
public AnchorPoint(com.linar.jintegra.AuthInfo authInfo)
throws IOException,
UnknownHostException
public AnchorPoint(String host,
com.linar.jintegra.AuthInfo authInfo)
throws IOException,
UnknownHostException
public AnchorPoint(Object obj)
throws IOException
obj - an object returned from a COM server
IOException - if there are problems communicating via DCOM| Method Detail |
public static String getClsid()
public IAnchorPoint getAsIAnchorPoint()
public boolean equals(Object o)
public int hashCode()
public static AnchorPoint getActiveObject()
throws AutomationException,
IOException
IOException - If there are communications problems.
AutomationException - If there was an error attaching to the instance.
public static AnchorPoint bindUsingMoniker(String moniker)
throws AutomationException,
IOException
moniker - The ObjRef Moniker (Created using Windows CreateObjrefMoniker() and IMoniker->GetDisplayName).
IOException - If there are communications problems.
AutomationException - If there was an error attaching to the instance.
public Object getPropertyByName(String name)
throws NoSuchFieldException,
IOException,
AutomationException
name - The name of the property to get.
NoSuchFieldException - If the property does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object getPropertyByName(String name,
Object rhs)
throws NoSuchFieldException,
IOException,
AutomationException
name - The name of the property to get.rhs - A parameter used when getting the proxy.
NoSuchFieldException - If the property does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object invokeMethodByName(String name,
Object[] parameters)
throws NoSuchMethodException,
IOException,
AutomationException
name - The name of the method to be invoked.parameters - One element for each parameter. Use primitive type wrappers.
NoSuchMethodException - If the method does not exit.
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public Object invokeMethodByName(String name)
throws NoSuchMethodException,
IOException,
AutomationException
NoSuchMethodException
IOException
AutomationException
public void setPoint(IPoint point)
throws IOException,
AutomationException
IAnchorPoint
setPoint in interface IAnchorPointpoint - An reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public IPoint getPoint()
throws IOException,
AutomationException
IAnchorPoint
getPoint in interface IAnchorPointAutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public void setSymbolByRef(ISymbol symbol)
throws IOException,
AutomationException
IAnchorPoint
setSymbolByRef in interface IAnchorPointsymbol - An reference to a com.esri.arcgis.display.ISymbol (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public ISymbol getSymbol()
throws IOException,
AutomationException
IAnchorPoint
getSymbol in interface IAnchorPointIOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public int getCursor()
throws IOException,
AutomationException
IAnchorPoint
getCursor in interface IAnchorPointIOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
public boolean hitTest(IPoint point,
double tol)
throws IOException,
AutomationException
IAnchorPoint
hitTest in interface IAnchorPointpoint - An reference to a com.esri.arcgis.geometry.IPoint (in)tol - The tol (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public void draw(IDisplay display)
throws IOException,
AutomationException
IAnchorPoint
draw in interface IAnchorPointdisplay - An reference to a com.esri.arcgis.display.IDisplay (in)
AutomationException - If the remote server throws an exception.
IOException - If there are communications problems.
public void moveTo(IPoint pPoint,
IDisplay display)
throws IOException,
AutomationException
IAnchorPoint
moveTo in interface IAnchorPointpPoint - An reference to a com.esri.arcgis.geometry.IPoint (in)display - An reference to a com.esri.arcgis.display.IDisplay (in)
IOException - If there are communications problems.
AutomationException - If the remote server throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||