|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.ScaleText
public class ScaleText
A map surround for displaying a scale text.
| Constructor Summary | |
|---|---|
ScaleText()
Constructs a ScaleText using ArcGIS Engine. |
|
ScaleText(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ScaleText theScaleText = (ScaleText) obj; |
|
| Method Summary | |
|---|---|
void |
addIMapSurroundEventsListener(IMapSurroundEvents theListener)
addIMapSurroundEventsListener. |
boolean |
applies(Object pUnk)
Indicates if the receiver can apply the given object at any given time. |
Object |
apply(Object newObject)
Applies the given property to the receiver and returns the old object. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
boundsUpdated(ITransformEventsBoundsUpdatedEvent theEvent)
Notifies clients when the bounds is updated. |
boolean |
canApply(Object pUnk)
Indicates if the receiver can apply the given object at that particular moment. |
void |
delayEvents(boolean delay)
Used to batch operations together to minimize notifications. |
void |
deviceFrameUpdated(ITransformEventsDeviceFrameUpdatedEvent theEvent)
Notifies clients when the device frame is updated. |
void |
draw(IDisplay display,
ITrackCancel trackCancel,
IEnvelope bounds)
Draws the map surround into the specified display bounds. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
void |
fitToBounds(IDisplay display,
IEnvelope bounds,
boolean[] changed)
Adjusts the map surround to fit the bounds. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCurrent(Object pUnk)
The object currently being used. |
String |
getFormat()
Format of the scale text. |
IEnumElement |
getGraphics(IDisplay display,
Object data)
Graphic elements that are used to render this object. |
int |
getIcon()
Icon used to represent the map surround. |
IMap |
getMap()
The parent map. |
String |
getMapUnitLabel()
Map unit label of the scale text. |
int |
getMapUnits()
Map units of the scale text. |
String |
getName()
Name of the map surround. |
INumberFormat |
getNumberFormat()
Number formatting. |
String |
getPageUnitLabel()
Page unit label of the scale text. |
int |
getPageUnits()
Page units of the scale text. |
String |
getSeparator()
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getStyle()
Style of the scale text. |
ITextSymbol |
getSymbol()
Symbol of the scale text. |
String |
getText()
The scale text. |
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 |
isFixedAspectRatio()
Indicates if the bounds has a fixed aspect ratio. |
boolean |
isFixedSize()
Indicates if size is determined by some other property like the symbol. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
void |
load(IStream pstm)
load |
void |
queryBounds(IDisplay display,
IEnvelope oldBounds,
IEnvelope newBounds)
Returns the bounds of the map surround. |
void |
querySize(double[] widthPoints,
double[] heightPoints)
Get the size in points. |
void |
readExternal(ObjectInput in)
|
void |
refresh()
Makes sure the latest updates are refected the next time the Map Surround is drawn. |
void |
removeIMapSurroundEventsListener(IMapSurroundEvents theListener)
removeIMapSurroundEventsListener. |
void |
resolutionUpdated(ITransformEventsResolutionUpdatedEvent theEvent)
Notifies clients when the resolution is updated. |
void |
rotationUpdated(ITransformEventsRotationUpdatedEvent theEvent)
Notifies clients when the rotation angle is updated. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setFixedAspectRatio(boolean flag)
Indicates if the bounds has a fixed aspect ratio. |
void |
setFormat(String format)
Format of the scale text. |
void |
setMapByRef(IMap map)
The parent map. |
void |
setMapUnitLabel(String label)
Map unit label of the scale text. |
void |
setMapUnits(int units)
Map units of the scale text. |
void |
setName(String name)
Name of the map surround. |
void |
setNumberFormat(INumberFormat format)
Number formatting. |
void |
setPageUnitLabel(String label)
Page unit label of the scale text. |
void |
setPageUnits(int units)
Page units of the scale text. |
void |
setSeparator(String separator)
Character(s) used to separate '1' from the scale in an absolute scale, i.e., the ':' in 1:20000. |
void |
setStyle(int style)
Style of the scale text. |
void |
setSymbol(ITextSymbol symbol)
Symbol of the scale text. |
void |
unitsUpdated(ITransformEventsUnitsUpdatedEvent theEvent)
Notifies clients when the units are updated. |
void |
visibleBoundsUpdated(ITransformEventsVisibleBoundsUpdatedEvent theEvent)
Notifies clients when the visible bounds is updated. |
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 ScaleText()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public ScaleText(Object obj)
throws IOException
ScaleText theScaleText = (ScaleText) obj;
obj to ScaleText.
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 void addIMapSurroundEventsListener(IMapSurroundEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.carto.IMapSurroundEvents interface.
IOException - If there are communications problems.
public void removeIMapSurroundEventsListener(IMapSurroundEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.carto.IMapSurroundEvents interface.
IOException - If there are communications problems.
public String getText()
throws IOException,
AutomationException
getText in interface IScaleTextgetText in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSymbol(ITextSymbol symbol)
throws IOException,
AutomationException
setSymbol in interface IScaleTextsetSymbol in interface IScaleText2symbol - 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 ITextSymbol getSymbol()
throws IOException,
AutomationException
getSymbol in interface IScaleTextgetSymbol in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStyle(int style)
throws IOException,
AutomationException
setStyle in interface IScaleTextsetStyle in interface IScaleText2style - A com.esri.arcgis.carto.esriScaleTextStyleEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStyle()
throws IOException,
AutomationException
getStyle in interface IScaleTextgetStyle in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFormat(String format)
throws IOException,
AutomationException
setFormat in interface IScaleTextsetFormat in interface IScaleText2format - The format (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getFormat()
throws IOException,
AutomationException
getFormat in interface IScaleTextgetFormat in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPageUnits(int units)
throws IOException,
AutomationException
setPageUnits in interface IScaleTextsetPageUnits in interface IScaleText2units - A com.esri.arcgis.system.esriUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getPageUnits()
throws IOException,
AutomationException
getPageUnits in interface IScaleTextgetPageUnits in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMapUnits(int units)
throws IOException,
AutomationException
setMapUnits in interface IScaleTextsetMapUnits in interface IScaleText2units - A com.esri.arcgis.system.esriUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMapUnits()
throws IOException,
AutomationException
getMapUnits in interface IScaleTextgetMapUnits in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPageUnitLabel(String label)
throws IOException,
AutomationException
setPageUnitLabel in interface IScaleTextsetPageUnitLabel in interface IScaleText2label - The label (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPageUnitLabel()
throws IOException,
AutomationException
getPageUnitLabel in interface IScaleTextgetPageUnitLabel in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMapUnitLabel(String label)
throws IOException,
AutomationException
setMapUnitLabel in interface IScaleTextsetMapUnitLabel in interface IScaleText2label - The label (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMapUnitLabel()
throws IOException,
AutomationException
getMapUnitLabel in interface IScaleTextgetMapUnitLabel in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNumberFormat(INumberFormat format)
throws IOException,
AutomationException
setNumberFormat in interface IScaleTextsetNumberFormat in interface IScaleText2format - A reference to a com.esri.arcgis.system.INumberFormat (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INumberFormat getNumberFormat()
throws IOException,
AutomationException
getNumberFormat in interface IScaleTextgetNumberFormat in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMap getMap()
throws IOException,
AutomationException
getMap in interface IMapSurroundIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMapByRef(IMap map)
throws IOException,
AutomationException
setMapByRef in interface IMapSurroundmap - A reference to a com.esri.arcgis.carto.IMap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IMapSurroundIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface IMapSurroundname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getIcon()
throws IOException,
AutomationException
getIcon in interface IMapSurroundIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryBounds(IDisplay display,
IEnvelope oldBounds,
IEnvelope newBounds)
throws IOException,
AutomationException
queryBounds in interface IMapSurrounddisplay - A reference to a com.esri.arcgis.display.IDisplay (in)oldBounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)newBounds - 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 fitToBounds(IDisplay display,
IEnvelope bounds,
boolean[] changed)
throws IOException,
AutomationException
fitToBounds in interface IMapSurrounddisplay - A reference to a com.esri.arcgis.display.IDisplay (in)bounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)changed - The changed (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delayEvents(boolean delay)
throws IOException,
AutomationException
delayEvents in interface IMapSurrounddelay - The delay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws IOException,
AutomationException
refresh in interface IMapSurroundIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(IDisplay display,
ITrackCancel trackCancel,
IEnvelope bounds)
throws IOException,
AutomationException
draw in interface IMapSurrounddisplay - A reference to a com.esri.arcgis.display.IDisplay (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)bounds - 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 setSeparator(String separator)
throws IOException,
AutomationException
setSeparator in interface IScaleText2separator - The separator (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSeparator()
throws IOException,
AutomationException
getSeparator in interface IScaleText2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumElement getGraphics(IDisplay display,
Object data)
throws IOException,
AutomationException
getGraphics in interface IGraphicsCompositedisplay - A reference to a com.esri.arcgis.display.IDisplay (in)data - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void querySize(double[] widthPoints,
double[] heightPoints)
throws IOException,
AutomationException
querySize in interface IQuerySizewidthPoints - The widthPoints (in/out: use single element array)heightPoints - The heightPoints (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFixedAspectRatio()
throws IOException,
AutomationException
isFixedAspectRatio in interface IBoundsPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFixedAspectRatio(boolean flag)
throws IOException,
AutomationException
setFixedAspectRatio in interface IBoundsPropertiesflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFixedSize()
throws IOException,
AutomationException
isFixedSize in interface IBoundsPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean applies(Object pUnk)
throws IOException,
AutomationException
Applies indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
applies in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canApply(Object pUnk)
throws IOException,
AutomationException
CanApply indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
canApply in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCurrent(Object pUnk)
throws IOException,
AutomationException
getCurrent in interface IPropertySupportpUnk - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object apply(Object newObject)
throws IOException,
AutomationException
Apply will apply the specified object to the current object. For instance, I might apply a Color object to my RectangleElement. When I execute Apply, the object I replace (the old object) is returned.
Use the Applies and CanApply methods to determine if an Apply can be used on an object.
apply in interface IPropertySupportnewObject - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void boundsUpdated(ITransformEventsBoundsUpdatedEvent theEvent)
throws IOException,
AutomationException
boundsUpdated in interface ITransformEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void visibleBoundsUpdated(ITransformEventsVisibleBoundsUpdatedEvent theEvent)
throws IOException,
AutomationException
visibleBoundsUpdated in interface ITransformEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deviceFrameUpdated(ITransformEventsDeviceFrameUpdatedEvent theEvent)
throws IOException,
AutomationException
deviceFrameUpdated in interface ITransformEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resolutionUpdated(ITransformEventsResolutionUpdatedEvent theEvent)
throws IOException,
AutomationException
resolutionUpdated in interface ITransformEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void rotationUpdated(ITransformEventsRotationUpdatedEvent theEvent)
throws IOException,
AutomationException
rotationUpdated in interface ITransformEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unitsUpdated(ITransformEventsUnitsUpdatedEvent theEvent)
throws IOException,
AutomationException
unitsUpdated in interface ITransformEventstheEvent - The event
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 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 | ||||||||