|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.display.LineCallout
public class LineCallout
A series of line symbols that link text to a specified location.
| Constructor Summary | |
|---|---|
LineCallout()
Constructs a LineCallout using ArcGIS Engine. |
|
LineCallout(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. LineCallout theLineCallout = (LineCallout) 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. |
ILineSymbol |
getAccentBar()
The line symbol used to render the accent bar. |
IPoint |
getAnchorPoint()
The anchor point. |
IFillSymbol |
getBorder()
The fill symbol used to render the border. |
double |
getBottomMargin()
Value for the bottom margin. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
double |
getGap()
The gap. |
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). |
ILineSymbol |
getLeaderLine()
The line symbol used to render the leader line. |
double |
getLeaderTolerance()
The closest distance to the text the anchor point can be for the callout to draw. |
double |
getLeftMargin()
Value for the left margin. |
IMarkerSymbol |
getMarkerSymbol()
The marker symbol. |
String |
getNameString()
The display name of an object. |
double |
getRightMargin()
Value for the right margin. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getStyle()
The line callout style. |
ITextSymbol |
getTextSymbol()
The text symbol. |
double |
getTopMargin()
Value for the top margin. |
int |
hashCode()
the hashcode for this object |
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 |
markerBackgroundDraw(int hDC,
ITransformation transform)
Draws the marker background. |
void |
markerBackgroundQueryBoundary(int hDC,
ITransformation transform,
IPolygon boundary)
Queries the boundary of the marker background. |
void |
putMargins(double left,
double top,
double right,
double bottom)
Sets the margins. |
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 |
queryMargins(double[] left,
double[] top,
double[] right,
double[] bottom)
Returns the margins. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
setAccentBarByRef(ILineSymbol accentBar)
The line symbol used to render the accent bar. |
void |
setAnchorPoint(IPoint point)
The anchor point. |
void |
setBorderByRef(IFillSymbol border)
The fill symbol used to render the border. |
void |
setBottomMargin(double bottomMargin)
Value for the bottom margin. |
void |
setGap(double gap)
The gap. |
void |
setLeaderLineByRef(ILineSymbol leaderLine)
The line symbol used to render the leader line. |
void |
setLeaderTolerance(double leaderTolerance)
The closest distance to the text the anchor point can be for the callout to draw. |
void |
setLeftMargin(double leftMargin)
Value for the left margin. |
void |
setMarkerBoxByRef(IEnvelope rhs1)
The marker box. |
void |
setMarkerSymbolByRef(IMarkerSymbol markerSym)
The marker symbol. |
void |
setRightMargin(double rightMargin)
Value for the right margin. |
void |
setStyle(int style)
The line callout style. |
void |
setTextBoundaryByRef(IPolygon rhs1)
The text boundary. |
void |
setTextBoxByRef(IEnvelope rhs1)
The text box. |
void |
setTextSymbolByRef(ITextSymbol textSym)
The text symbol. |
void |
setTopMargin(double topMargin)
Value for the top margin. |
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 LineCallout()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public LineCallout(Object obj)
throws IOException
LineCallout theLineCallout = (LineCallout) obj;
obj to LineCallout.
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 IFillSymbol getBorder()
throws IOException,
AutomationException
Border is the fill symbol used as the background for the text. Any fill supported by the IFillSymbol object can be used.
getBorder in interface ILineCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBorderByRef(IFillSymbol border)
throws IOException,
AutomationException
Border is the fill symbol used as the background for the text. Any fill supported by the IFillSymbol object can be used.
setBorderByRef in interface ILineCalloutborder - A reference to a com.esri.arcgis.display.IFillSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getGap()
throws IOException,
AutomationException
Gap is the distance between the Border and the AccentBar. The Gap is specified in points (approx. 1/72 of an inch).
getGap in interface ILineCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGap(double gap)
throws IOException,
AutomationException
Gap is the distance between the Border and the AccentBar. The Gap is specified in points (approx. 1/72 of an inch).
setGap in interface ILineCalloutgap - The gap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILineSymbol getAccentBar()
throws IOException,
AutomationException
AccentBar is a vertical line placed at either the right or left edge of the Border. Any line supported by the ILineSymbol object can be used.
getAccentBar in interface ILineCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAccentBarByRef(ILineSymbol accentBar)
throws IOException,
AutomationException
AccentBar is a vertical line placed at either the right or left edge of the Border. Any line supported by the ILineSymbol object can be used.
setAccentBarByRef in interface ILineCalloutaccentBar - 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 int getStyle()
throws IOException,
AutomationException
Style is the enumeration that controls the shape of the LeaderLine as well as the positioning of the AccentBar. The avaialble options include: esriLCSBase, esriLCSCircularCCW, esriLCSCircularCW, esriLCSCustom, esriLCSFourPoint, esriLCSMidpoint, esriLCSThreePoint and esriLCSUnderline. esriLCSMidpoint is the default Style.
getStyle in interface ILineCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStyle(int style)
throws IOException,
AutomationException
Style is the enumeration that controls the shape of the LeaderLine as well as the positioning of the AccentBar. The avaialble options include: esriLCSBase, esriLCSCircularCCW, esriLCSCircularCW, esriLCSCustom, esriLCSFourPoint, esriLCSMidpoint, esriLCSThreePoint and esriLCSUnderline. esriLCSMidpoint is the default Style.
setStyle in interface ILineCalloutstyle - A com.esri.arcgis.display.esriLineCalloutStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILineSymbol getLeaderLine()
throws IOException,
AutomationException
LeaderLine is the line that connects the text to the anchor point. Any line supported by the ILineSymbol object can be used.
getLeaderLine in interface ILineCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLeaderLineByRef(ILineSymbol leaderLine)
throws IOException,
AutomationException
LeaderLine is the line that connects the text to the anchor point. Any line supported by the ILineSymbol object can be used.
setLeaderLineByRef in interface ILineCalloutleaderLine - 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 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 ICalloutIOException - 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 ICalloutpoint - 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 ICalloutIOException - 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 ICalloutleaderTolerance - 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 ITextBackgroundIOException - 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 ITextBackgroundtextSym - 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 ITextBackgroundrhs1 - 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 ITextBackgroundhDC - 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 ITextBackgroundhDC - 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 void setTextBoundaryByRef(IPolygon rhs1)
throws IOException,
AutomationException
setTextBoundaryByRef in interface ITextBackground2rhs1 - 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 IMarkerSymbol getMarkerSymbol()
throws IOException,
AutomationException
getMarkerSymbol in interface IMarkerBackgroundIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMarkerSymbolByRef(IMarkerSymbol markerSym)
throws IOException,
AutomationException
setMarkerSymbolByRef in interface IMarkerBackgroundmarkerSym - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMarkerBoxByRef(IEnvelope rhs1)
throws IOException,
AutomationException
setMarkerBoxByRef in interface IMarkerBackgroundrhs1 - 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 markerBackgroundQueryBoundary(int hDC,
ITransformation transform,
IPolygon boundary)
throws IOException,
AutomationException
markerBackgroundQueryBoundary in interface IMarkerBackgroundhDC - 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 markerBackgroundDraw(int hDC,
ITransformation transform)
throws IOException,
AutomationException
markerBackgroundDraw in interface IMarkerBackgroundhDC - 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 double getLeftMargin()
throws IOException,
AutomationException
LeftMargin specifies the distance between the text and the left edge of the callout.
getLeftMargin in interface ITextMarginsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLeftMargin(double leftMargin)
throws IOException,
AutomationException
LeftMargin specifies the distance between the text and the left edge of the callout.
setLeftMargin in interface ITextMarginsleftMargin - The leftMargin (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getRightMargin()
throws IOException,
AutomationException
RightMargin specifies the distance between the text and the right edge of the callout.
getRightMargin in interface ITextMarginsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRightMargin(double rightMargin)
throws IOException,
AutomationException
RightMargin specifies the distance between the text and the right edge of the callout.
setRightMargin in interface ITextMarginsrightMargin - The rightMargin (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getTopMargin()
throws IOException,
AutomationException
TopMargin specifies the distance between the text and the top edge of the callout.
getTopMargin in interface ITextMarginsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTopMargin(double topMargin)
throws IOException,
AutomationException
TopMargin specifies the distance between the text and the top edge of the callout.
setTopMargin in interface ITextMarginstopMargin - The topMargin (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getBottomMargin()
throws IOException,
AutomationException
BottomMargin specifies the distance between the text and the bottom edge of the callout.
getBottomMargin in interface ITextMarginsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBottomMargin(double bottomMargin)
throws IOException,
AutomationException
BottomMargin specifies the distance between the text and the bottom edge of the callout.
setBottomMargin in interface ITextMarginsbottomMargin - The bottomMargin (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void putMargins(double left,
double top,
double right,
double bottom)
throws IOException,
AutomationException
PutMargins enables setting the value for all four margins, left, top, right and bottom simultaneously.
putMargins in interface ITextMarginsleft - The left (in)top - The top (in)right - The right (in)bottom - The bottom (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryMargins(double[] left,
double[] top,
double[] right,
double[] bottom)
throws IOException,
AutomationException
QueryMargins returns the value for all four margins, left, top, right and bottom.
queryMargins in interface ITextMarginsleft - The left (out: use single element array)top - The top (out: use single element array)right - The right (out: use single element array)bottom - The bottom (out: use single element array)
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 IQueryGeometryhDC - 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 IQueryGeometryhDC - 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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 IPersistpClassID - 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 ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - 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 ICloneother - 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 ICloneother - 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 IDisplayNameIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - 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 IXMLSerializedata - 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 ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||