|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.RepresentationGraphics
public class RepresentationGraphics
An object defining a free representation.
Use IRepresentationGraphics and IGraphicsOutline interfaces to define and manage a RepresentationGraphics object.
RepresentationGraphics object makes it possible to get a complete control over the display of a feature.
Constructor Summary | |
---|---|
RepresentationGraphics()
Constructs a RepresentationGraphics using ArcGIS Engine. |
|
RepresentationGraphics(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RepresentationGraphics theRepresentationGraphics = (RepresentationGraphics) obj; |
Method Summary | |
---|---|
void |
add(IGeometry geometry,
IRepresentationRule repRule)
Adds a new component in a representation graphic. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
changeGeometry(int iD,
IGeometry geometry)
Changes a geometry in a representation graphic. |
Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
IGeometry |
getAllOutlineParts(int type,
int option,
double buffer,
IEnvelope clipEnvelope)
Constructs the entire drawing outline of a graphics. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
boolean |
hitTest(IPoint point,
double tolerance)
Tests if a point is located on the graphics outline. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version. |
void |
load(IStream pstm)
load |
void |
next(IGeometry[] geometry,
IRepresentationRule[] repRule)
Retrieves the next component in a representation graphic. |
void |
nextGeometry(int[] iD,
IGeometry[] geometry)
Accesses the next geometry in a representation graphic. |
IGeometry |
nextOutlinePart()
Hands back the next drawing outline part. |
void |
readExternal(ObjectInput in)
|
void |
remove(IGeometry geometry,
IRepresentationRule repRule)
Removes a component in a representation graphic. |
void |
removeAll()
Removes all components in a representation graphic. |
void |
reset()
Resets the enumeration of components in a representation graphic. |
void |
reset(int type,
int option,
double buffer,
IEnvelope clipEnvelope)
Resets the collection of drawing outline parts to the beginning, before calling NextOutlinePart. |
void |
resetGeometry()
Resets the geometry enumeration in a representation graphic. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
writeExternal(ObjectOutput out)
|
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 RepresentationGraphics() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RepresentationGraphics(Object obj) throws IOException
RepresentationGraphics theRepresentationGraphics = (RepresentationGraphics) obj;
obj
to RepresentationGraphics
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void reset() throws IOException, AutomationException
reset
in interface IRepresentationGraphics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void next(IGeometry[] geometry, IRepresentationRule[] repRule) throws IOException, AutomationException
next
in interface IRepresentationGraphics
geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void add(IGeometry geometry, IRepresentationRule repRule) throws IOException, AutomationException
Add method can be used to add representation graphics to a RepresentationGraphics object. This method takes arguments such as geometry and representation rule. The geometry is in map coordinates.
add
in interface IRepresentationGraphics
geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remove(IGeometry geometry, IRepresentationRule repRule) throws IOException, AutomationException
remove
in interface IRepresentationGraphics
geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)repRule
- A reference to a com.esri.arcgis.display.IRepresentationRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAll() throws IOException, AutomationException
removeAll
in interface IRepresentationGraphics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resetGeometry() throws IOException, AutomationException
resetGeometry
in interface IRepresentationGraphics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void nextGeometry(int[] iD, IGeometry[] geometry) throws IOException, AutomationException
NextGeometry method can be used to call the geometries present in a RepresentationGraphics or RepresentationMarker. Reset method has to be called prior to calling this method as this will reset the collection of geometries to the starting.
nextGeometry
in interface IRepresentationGraphics
iD
- The iD (out: use single element array)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void changeGeometry(int iD, IGeometry geometry) throws IOException, AutomationException
changeGeometry
in interface IRepresentationGraphics
iD
- The iD (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hitTest(IPoint point, double tolerance) throws IOException, AutomationException
hitTest
in interface IGraphicsOutline
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)tolerance
- The tolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry getAllOutlineParts(int type, int option, double buffer, IEnvelope clipEnvelope) throws IOException, AutomationException
getAllOutlineParts
in interface IGraphicsOutline
type
- A com.esri.arcgis.display.esriOutlineType constant (in)option
- A com.esri.arcgis.display.esriOutlineOption constant (in)buffer
- The buffer (in)clipEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset(int type, int option, double buffer, IEnvelope clipEnvelope) throws IOException, AutomationException
reset
in interface IGraphicsOutline
type
- A com.esri.arcgis.display.esriOutlineType constant (in)option
- A com.esri.arcgis.display.esriOutlineOption constant (in)buffer
- The buffer (in)clipEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry nextOutlinePart() throws IOException, AutomationException
nextOutlinePart
in interface IGraphicsOutline
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportedAtVersion(int docVersion) throws IOException, AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
isSupportedAtVersion
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object convertToSupportedObject(int docVersion) throws IOException, AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
convertToSupportedObject
in interface IDocumentVersionSupportGEN
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |