|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MapInset
public class MapInset
A map surround for displaying an inset.
Constructor Summary | |
---|---|
MapInset()
Constructs a MapInset using ArcGIS Engine. |
|
MapInset(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapInset theMapInset = (MapInset) obj; |
Method Summary | |
---|---|
void |
addIMapSurroundEventsListener(IMapSurroundEvents theListener)
addIMapSurroundEventsListener. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
calculateVisibleBounds()
Calculates the visible bounds by applying the zoom or scale parameter to MapBounds (used when snapshot is false). |
void |
delayEvents(boolean delay)
Used to batch operations together to minimize notifications. |
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. |
String |
getDescription()
Description reflecting the current settings of the MapInset. |
void |
getDeviceFrame(int[] left,
int[] top,
int[] right,
int[] bottom)
Pixel extent of the inset. |
IEnvelope |
getFullExtent()
The maximum extent shown by the inset. |
int |
getIcon()
Icon used to represent the map surround. |
IMap |
getMap()
The parent map. |
IEnvelope |
getMapBounds()
The relative position of the inset to the associated map (used when the inset is live). |
String |
getName()
Name of the map surround. |
double |
getReferenceScale()
Reference scale of the inset. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IEnvelope |
getVisibleBounds()
The map extent shown by the inset (used when the inset is not live). |
double |
getZoomPercent()
Zoom amount as a percentage. |
double |
getZoomScale()
The zoom amount as an absolute Scale (i.e., 1:20000). |
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. |
boolean |
isLive()
Indicates if the inset shows a live view of the underlying map. |
boolean |
isUsingZoomScale()
Indicates if ZoomScale or ZoomPercent is being used. |
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 |
save(IStream pstm,
int fClearDirty)
save |
void |
setDeviceFrame(int left,
int top,
int right,
int bottom)
Pixel extent of the inset. |
void |
setFixedAspectRatio(boolean flag)
Indicates if the bounds has a fixed aspect ratio. |
void |
setFullExtent(IEnvelope fullExtent)
The maximum extent shown by the inset. |
void |
setIsLive(boolean isLive)
Indicates if the inset shows a live view of the underlying map. |
void |
setMapBounds(IEnvelope bounds)
The relative position of the inset to the associated map (used when the inset is live). |
void |
setMapByRef(IMap map)
The parent map. |
void |
setName(String name)
Name of the map surround. |
void |
setReferenceScale(double refScale)
Reference scale of the inset. |
void |
setVisibleBounds(IEnvelope visibleBounds)
The map extent shown by the inset (used when the inset is not live). |
void |
setZoomPercent(double percent)
Zoom amount as a percentage. |
void |
setZoomScale(double scale)
The zoom amount as an absolute Scale (i.e., 1:20000). |
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 MapInset() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MapInset(Object obj) throws IOException
MapInset theMapInset = (MapInset) obj;
obj
to MapInset
.
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 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 IEnvelope getMapBounds() throws IOException, AutomationException
getMapBounds
in interface IMapInset
getMapBounds
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapBounds(IEnvelope bounds) throws IOException, AutomationException
setMapBounds
in interface IMapInset
setMapBounds
in interface IMapInset2
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 IEnvelope getVisibleBounds() throws IOException, AutomationException
getVisibleBounds
in interface IMapInset
getVisibleBounds
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVisibleBounds(IEnvelope visibleBounds) throws IOException, AutomationException
setVisibleBounds
in interface IMapInset
setVisibleBounds
in interface IMapInset2
visibleBounds
- 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 boolean isLive() throws IOException, AutomationException
isLive
in interface IMapInset
isLive
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsLive(boolean isLive) throws IOException, AutomationException
setIsLive
in interface IMapInset
setIsLive
in interface IMapInset2
isLive
- The isLive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUsingZoomScale() throws IOException, AutomationException
isUsingZoomScale
in interface IMapInset
isUsingZoomScale
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getZoomPercent() throws IOException, AutomationException
getZoomPercent
in interface IMapInset
getZoomPercent
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setZoomPercent(double percent) throws IOException, AutomationException
setZoomPercent
in interface IMapInset
setZoomPercent
in interface IMapInset2
percent
- The percent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getZoomScale() throws IOException, AutomationException
getZoomScale
in interface IMapInset
getZoomScale
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setZoomScale(double scale) throws IOException, AutomationException
setZoomScale
in interface IMapInset
setZoomScale
in interface IMapInset2
scale
- The scale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface IMapInset
getDescription
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void calculateVisibleBounds() throws IOException, AutomationException
calculateVisibleBounds
in interface IMapInset
calculateVisibleBounds
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap() throws IOException, AutomationException
getMap
in interface IMapSurround
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapByRef(IMap map) throws IOException, AutomationException
setMapByRef
in interface IMapSurround
map
- 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 IMapSurround
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface IMapSurround
name
- 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 IMapSurround
IOException
- 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 IMapSurround
display
- 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 IMapSurround
display
- 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 IMapSurround
delay
- 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 IMapSurround
IOException
- 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 IMapSurround
display
- 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 IEnvelope getFullExtent() throws IOException, AutomationException
getFullExtent
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFullExtent(IEnvelope fullExtent) throws IOException, AutomationException
setFullExtent
in interface IMapInset2
fullExtent
- 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 double getReferenceScale() throws IOException, AutomationException
getReferenceScale
in interface IMapInset2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReferenceScale(double refScale) throws IOException, AutomationException
setReferenceScale
in interface IMapInset2
refScale
- The refScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getDeviceFrame(int[] left, int[] top, int[] right, int[] bottom) throws IOException, AutomationException
getDeviceFrame
in interface IMapInset2
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 void setDeviceFrame(int left, int top, int right, int bottom) throws IOException, AutomationException
setDeviceFrame
in interface IMapInset2
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 querySize(double[] widthPoints, double[] heightPoints) throws IOException, AutomationException
querySize
in interface IQuerySize
widthPoints
- 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 IBoundsProperties
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFixedAspectRatio(boolean flag) throws IOException, AutomationException
setFixedAspectRatio
in interface IBoundsProperties
flag
- 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 IBoundsProperties
IOException
- 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 IConnectionPointContainer
ppEnum
- 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 IConnectionPointContainer
riid
- 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 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 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 |