|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.MarkerTextBackground
public class MarkerTextBackground
A marker that is placed behind text.
The MarkerTextBackground is used to display a marker symbol as the background for text.
Constructor Summary | |
---|---|
MarkerTextBackground()
Constructs a MarkerTextBackground using ArcGIS Engine. |
|
MarkerTextBackground(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MarkerTextBackground theMarkerTextBackground = (MarkerTextBackground) 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. |
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). |
String |
getNameString()
The display name of an object. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IMarkerSymbol |
getSymbol()
The marker symbol. |
ITextSymbol |
getTextSymbol()
The text symbol. |
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. |
boolean |
isScaleToFit()
Indicates if the marker symbol is scaled to fill the text box. |
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 |
setScaleToFit(boolean scale)
Indicates if the marker symbol is scaled to fill the text box. |
void |
setSymbolByRef(IMarkerSymbol markerSymbol)
The marker symbol. |
void |
setTextBoundaryByRef(IPolygon rhs1)
The text boundary. |
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 MarkerTextBackground() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MarkerTextBackground(Object obj) throws IOException
MarkerTextBackground theMarkerTextBackground = (MarkerTextBackground) obj;
obj
to MarkerTextBackground
.
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 IMarkerSymbol getSymbol() throws IOException, AutomationException
Symbol is the marker used as the background to the text. Any IMarkerSymbol interface can be used.
getSymbol
in interface IMarkerTextBackground
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSymbolByRef(IMarkerSymbol markerSymbol) throws IOException, AutomationException
Symbol is the marker used as the background to the text. Any IMarkerSymbol interface can be used.
setSymbolByRef
in interface IMarkerTextBackground
markerSymbol
- 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 boolean isScaleToFit() throws IOException, AutomationException
ScaleToFit is a Boolean indicator used to scale the marker to fit around the associated text. ScaleToFit it set to False by default.
isScaleToFit
in interface IMarkerTextBackground
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setScaleToFit(boolean scale) throws IOException, AutomationException
ScaleToFit is a Boolean indicator used to scale the marker to fit around the associated text. ScaleToFit it set to False by default.
setScaleToFit
in interface IMarkerTextBackground
scale
- The scale (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 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 |