|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.SimpleLineCallout
public class SimpleLineCallout
A simple line that links text to a specified location.
The SimpleLineCallout can be used to display a callout comprised of a single leader line drawn from the anchor point to the text.
Constructor Summary | |
---|---|
SimpleLineCallout()
Constructs a SimpleLineCallout using ArcGIS Engine. |
|
SimpleLineCallout(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SimpleLineCallout theSimpleLineCallout = (SimpleLineCallout) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
void |
draw(int hDC,
ITransformation transform)
Draws the text background. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
IPoint |
getAnchorPoint()
The anchor point. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IGeometry |
getGeometry(int hDC,
ITransformation displayTransform,
IGeometry drawGeometry)
Gets the actual geometry of the boundary of the object (which may or may not be a polygon). |
double |
getLeaderTolerance()
The closest distance to the text the anchor point can be for the callout to draw. |
IGeometry |
getLineGeometry()
The geometry used for the Callout. |
ILineSymbol |
getLineSymbol()
The line symbol used for the Callout. |
String |
getNameString()
The display name of an object. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ITextSymbol |
getTextSymbol()
The text symbol. |
int |
hashCode()
the hashcode for this object |
boolean |
isAutoSnap()
Indicates if the auto-snap property is enabled. |
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. |
void |
load(IStream pstm)
load |
void |
queryBoundary(int hDC,
ITransformation transform,
IPolygon boundary)
Queries for the boundary of the text background. |
void |
queryEnvelope(int hDC,
ITransformation displayTransform,
IGeometry drawGeometry,
IEnvelope envelope)
Queries the envelope of the boundary of the object. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setAnchorPoint(IPoint point)
The anchor point. |
void |
setAutoSnap(boolean flag)
Indicates if the auto-snap property is enabled. |
void |
setLeaderTolerance(double leaderTolerance)
The closest distance to the text the anchor point can be for the callout to draw. |
void |
setLineGeometry(IGeometry geometry)
The geometry used for the Callout. |
void |
setLineSymbol(ILineSymbol lineSymbol)
The line symbol used for the Callout. |
void |
setTextBoxByRef(IEnvelope rhs1)
The text box. |
void |
setTextSymbolByRef(ITextSymbol textSym)
The text symbol. |
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 SimpleLineCallout() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SimpleLineCallout(Object obj) throws IOException
SimpleLineCallout theSimpleLineCallout = (SimpleLineCallout) obj;
obj
to SimpleLineCallout
.
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 IGeometry getLineGeometry() throws IOException, AutomationException
LineGeometry is the geometry that controls the actual shape of the leader. Use the IPolyLine object to create the coordinate spcifications for the leader.
getLineGeometry
in interface ISimpleLineCallout
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLineGeometry(IGeometry geometry) throws IOException, AutomationException
setLineGeometry
in interface ISimpleLineCallout
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 ILineSymbol getLineSymbol() throws IOException, AutomationException
LineSymbol is the symbol used as the leader line for SimpleLineCallout. Any ILineSymbol object can be used.
getLineSymbol
in interface ISimpleLineCallout
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLineSymbol(ILineSymbol lineSymbol) throws IOException, AutomationException
LineSymbol is the symbol used as the leader line for SimpleLineCallout. Any ILineSymbol object can be used.
setLineSymbol
in interface ISimpleLineCallout
lineSymbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAutoSnap() throws IOException, AutomationException
AutoSnap is a boolean indicator that specifies if the leader will be snapped the the closest horizontal and vertical alignment zones of the text. The default AutoSnap is True.
isAutoSnap
in interface ISimpleLineCallout
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoSnap(boolean flag) throws IOException, AutomationException
AutoSnap is a boolean indicator that specifies if the leader will be snapped the the closest horizontal and vertical alignment zones of the text. The default AutoSnap is True.
setAutoSnap
in interface ISimpleLineCallout
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPoint getAnchorPoint() throws IOException, AutomationException
AnchorPoint is the location from which the leader will be drawn to the callout. This is typically the X,Y coordinates of the feature being labeled.
getAnchorPoint
in interface ICallout
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAnchorPoint(IPoint point) throws IOException, AutomationException
AnchorPoint is the location from which the leader will be drawn to the callout. This is typically the X,Y coordinates of the feature being labeled.
setAnchorPoint
in interface ICallout
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getLeaderTolerance() throws IOException, AutomationException
LeaderTolerance is the minimum distance the callout must be from the anchor before a leader is drawn. This distance is specified in points (approx. 1/72 of an inch).
getLeaderTolerance
in interface ICallout
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLeaderTolerance(double leaderTolerance) throws IOException, AutomationException
LeaderTolerance is the minimum distance the callout must be from the anchor before a leader is drawn. This distance is specified in points (approx. 1/72 of an inch).
setLeaderTolerance
in interface ICallout
leaderTolerance
- The leaderTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITextSymbol getTextSymbol() throws IOException, AutomationException
The TextSymbol of which the Background is a property.
getTextSymbol
in interface ITextBackground
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTextSymbolByRef(ITextSymbol textSym) throws IOException, AutomationException
The TextSymbol of which the Background is a property.
setTextSymbolByRef
in interface ITextBackground
textSym
- A reference to a com.esri.arcgis.display.ITextSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTextBoxByRef(IEnvelope rhs1) throws IOException, AutomationException
The TextBox property is write-only. It is set by a TextSymbol before a call to ITextBackground::Draw or ITextBackground::QueryBoundary. For this reason, the ITextBackground also has a TextSymbol property, which is the TextSymbol of which the Background is a property.
setTextBoxByRef
in interface ITextBackground
rhs1
- 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 queryBoundary(int hDC, ITransformation transform, IPolygon boundary) throws IOException, AutomationException
Use the QueryBoundary method to find the shape of a callout. This method populates a Polygon with the boundary of the callout. For a LineCallout, this is the minimum bounding rectangle of the leader line and text background box. For a BalloonCallout, this is the shape of the balloon. For a MarkerTextBackground, this is the union of the bounding box of the Marker and the Text.
queryBoundary
in interface ITextBackground
hDC
- The hDC (A COM typedef) (in)transform
- A reference to a com.esri.arcgis.geometry.ITransformation (in)boundary
- A reference to a com.esri.arcgis.geometry.IPolygon (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void draw(int hDC, ITransformation transform) throws IOException, AutomationException
The Draw method is used in a similar way to the ISymbol::Draw method. Note that ISymbol::Draw called on a TextSymbol coclass will also call ITextBackground::Draw, if a Background is set, thus drawing both the background and the text. Note that there is no Geometry required in this method; the location and size of the TextBackground is determined by the TextSymbol.
draw
in interface ITextBackground
hDC
- The hDC (A COM typedef) (in)transform
- A reference to a com.esri.arcgis.geometry.ITransformation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry getGeometry(int hDC, ITransformation displayTransform, IGeometry drawGeometry) throws IOException, AutomationException
getGeometry
in interface IQueryGeometry
hDC
- The hDC (A COM typedef) (in)displayTransform
- A reference to a com.esri.arcgis.geometry.ITransformation (in)drawGeometry
- 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 void queryEnvelope(int hDC, ITransformation displayTransform, IGeometry drawGeometry, IEnvelope envelope) throws IOException, AutomationException
You must instantiate the Envelope before calling QueryEnvelope. For example,
Dim pEnv as IEnvelope
Set pEnv = New Envelope
queryEnvelope
in interface IQueryGeometry
hDC
- The hDC (A COM typedef) (in)displayTransform
- A reference to a com.esri.arcgis.geometry.ITransformation (in)drawGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)envelope
- 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 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 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 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 String getNameString() throws IOException, AutomationException
getNameString
in interface IDisplayName
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (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 |