|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.display.BalloonCallout
public class BalloonCallout
A filled background that is placed behind text.
BalloonCallouts are a filled background that is placed behind text. They may or may not have a leader line connecting the callout to an AnchorPoint .
| Constructor Summary | |
|---|---|
BalloonCallout()
Constructs a BalloonCallout using ArcGIS Engine. |
|
BalloonCallout(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. BalloonCallout theBalloonCallout = (BalloonCallout) 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. |
double |
getBottomMargin()
Value for the bottom margin. |
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. |
double |
getLeftMargin()
Value for the left margin. |
String |
getNameString()
The display name of an object. |
double |
getRightMargin()
Value for the right margin. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getStyle()
The balloon callout style. |
IFillSymbol |
getSymbol()
The fill symbol. |
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 |
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 |
setAnchorPoint(IPoint point)
The anchor point. |
void |
setBottomMargin(double bottomMargin)
Value for the bottom margin. |
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 |
setRightMargin(double rightMargin)
Value for the right margin. |
void |
setStyle(int style)
The balloon callout style. |
void |
setSymbolByRef(IFillSymbol fillSym)
The fill symbol. |
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 BalloonCallout()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public BalloonCallout(Object obj)
throws IOException
BalloonCallout theBalloonCallout = (BalloonCallout) obj;
obj to BalloonCallout.
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 int getStyle()
throws IOException,
AutomationException
Style is the enumeration that controls the shape of the balloon. The avaialble options include: esriBCSOval, esriBCSRectangle and esriBCSRoundedRectangle. esriBCSRectangle is the default Style.
This property describes the drawing style of BalloonCallout, whether is has rounded or square corners etc., esriBCSOval is not currently implemented.
getStyle in interface IBalloonCalloutIOException - 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 balloon. The avaialble options include: esriBCSOval, esriBCSRectangle and esriBCSRoundedRectangle. esriBCSRectangle is the default Style.
This property describes the drawing style of BalloonCallout, whether is has rounded or square corners etc., esriBCSOval is not currently implemented.
setStyle in interface IBalloonCalloutstyle - A com.esri.arcgis.display.esriBalloonCalloutStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFillSymbol getSymbol()
throws IOException,
AutomationException
Symbol is the fill symbol used as the background within the balloon. Any fill supported by the IFillSymbol object can be used.
getSymbol in interface IBalloonCalloutIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSymbolByRef(IFillSymbol fillSym)
throws IOException,
AutomationException
Symbol is the fill symbol used as the background within the balloon. Any fill supported by the IFillSymbol object can be used.
setSymbolByRef in interface IBalloonCalloutfillSym - 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 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 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 | ||||||||