|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public 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 IBalloonCallout
IOException
- 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 IBalloonCallout
style
- 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 IBalloonCallout
IOException
- 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 IBalloonCallout
fillSym
- 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 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 void setTextBoundaryByRef(IPolygon rhs1) throws IOException, AutomationException
setTextBoundaryByRef
in interface ITextBackground2
rhs1
- 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 ITextMargins
IOException
- 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 ITextMargins
leftMargin
- 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 ITextMargins
IOException
- 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 ITextMargins
rightMargin
- 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 ITextMargins
IOException
- 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 ITextMargins
topMargin
- 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 ITextMargins
IOException
- 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 ITextMargins
bottomMargin
- 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 ITextMargins
left
- 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 ITextMargins
left
- 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 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 |