|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MapDescriptor
public class MapDescriptor
The Map Descriptor coclass contains a description of a map in the current document.
Constructor Summary | |
---|---|
MapDescriptor()
Constructs a MapDescriptor using ArcGIS Engine. |
|
MapDescriptor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapDescriptor theMapDescriptor = (MapDescriptor) obj; |
Method Summary | |
---|---|
void |
addMapSurround(IMapSurround surround,
int xPixelOrigin,
int yPixelOrigin,
int anchorPoint)
Call this multiple times to place surrounds on the surface of the map. |
void |
addPixelGraphic(IElement graphic)
Call this multiple times to place graphics in pixel space on the map above Custom Graphics and Map Surrounds. |
void |
clearMapSurrounds()
Remove all surrounds from the map. |
void |
clearPixelGraphics()
Remove all pixel graphics from the map. |
boolean |
equals(Object o)
Compare this object with another |
double |
getAngle()
The angle/rotation of the map in degrees, measured anti-clockwise. |
IColor |
getBackgroundColor()
The background color of the map. |
static String |
getClsid()
getClsid. |
IArray |
getCustomGraphics()
Custom graphics of the map. |
IEnvelope |
getExtent()
The current extent of the map. |
IEnvelope |
getFullExtent()
The full extent of the map. |
IGeometryCollection |
getLabelBarriers()
The barriers used for labeling. |
Object |
getLayerOrder()
The layer order for the map. |
IArray |
getLayers()
The layer descriptors of the map. |
IPoint |
getMapCenter()
The center of the map. |
double |
getMapScale()
The scale of the map. |
String |
getName()
The name of the map. |
ISpatialReference |
getSpatialReference()
The spatial reference of the map. |
IColor |
getTransparentColor()
The color used for transparency (100 %). |
int |
hashCode()
the hashcode for this object |
boolean |
isKeepAspectRatio()
Indicates whether of not to maintain the aspect ratio. |
void |
setAngle(double angleDegrees)
The angle/rotation of the map in degrees, measured anti-clockwise. |
void |
setBackgroundColor(IColor color)
The background color of the map. |
void |
setCustomGraphics(IArray elements)
Custom graphics of the map. |
void |
setExtent(IEnvelope extent)
The current extent of the map. |
void |
setFullExtent(IEnvelope extent)
The full extent of the map. |
void |
setKeepAspectRatio(boolean keep)
Indicates whether of not to maintain the aspect ratio. |
void |
setLabelBarriers(IGeometryCollection barriers)
The barriers used for labeling. |
void |
setLayerOrder(Object layerIds)
The layer order for the map. |
void |
setLayers(IArray layerDescriptors)
The layer descriptors of the map. |
void |
setMapCenter(IPoint center)
The center of the map. |
void |
setMapScale(double mapScale)
The scale of the map. |
void |
setName(String name)
The name of the map. |
void |
setSpatialReferenceByRef(ISpatialReference spatialReference)
The spatial reference of the map. |
void |
setTransparentColor(IColor color)
The color used for transparency (100 %). |
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 MapDescriptor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MapDescriptor(Object obj) throws IOException
MapDescriptor theMapDescriptor = (MapDescriptor) obj;
obj
to MapDescriptor
.
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 String getName() throws IOException, AutomationException
getName
in interface IMapDescriptor
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 IMapDescriptor
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getFullExtent() throws IOException, AutomationException
getFullExtent
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFullExtent(IEnvelope extent) throws IOException, AutomationException
setFullExtent
in interface IMapDescriptor
extent
- 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 getExtent() throws IOException, AutomationException
getExtent
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExtent(IEnvelope extent) throws IOException, AutomationException
setExtent
in interface IMapDescriptor
extent
- 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 ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceByRef(ISpatialReference spatialReference) throws IOException, AutomationException
setSpatialReferenceByRef
in interface IMapDescriptor
spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getAngle() throws IOException, AutomationException
getAngle
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAngle(double angleDegrees) throws IOException, AutomationException
setAngle
in interface IMapDescriptor
angleDegrees
- The angleDegrees (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getLayers() throws IOException, AutomationException
getLayers
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLayers(IArray layerDescriptors) throws IOException, AutomationException
setLayers
in interface IMapDescriptor
layerDescriptors
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getLayerOrder() throws IOException, AutomationException
getLayerOrder
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLayerOrder(Object layerIds) throws IOException, AutomationException
setLayerOrder
in interface IMapDescriptor
layerIds
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getCustomGraphics() throws IOException, AutomationException
getCustomGraphics
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomGraphics(IArray elements) throws IOException, AutomationException
setCustomGraphics
in interface IMapDescriptor
elements
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometryCollection getLabelBarriers() throws IOException, AutomationException
getLabelBarriers
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelBarriers(IGeometryCollection barriers) throws IOException, AutomationException
setLabelBarriers
in interface IMapDescriptor
barriers
- A reference to a com.esri.arcgis.geometry.IGeometryCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMapScale() throws IOException, AutomationException
getMapScale
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapScale(double mapScale) throws IOException, AutomationException
setMapScale
in interface IMapDescriptor
mapScale
- The mapScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPoint getMapCenter() throws IOException, AutomationException
getMapCenter
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapCenter(IPoint center) throws IOException, AutomationException
setMapCenter
in interface IMapDescriptor
center
- 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 boolean isKeepAspectRatio() throws IOException, AutomationException
isKeepAspectRatio
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setKeepAspectRatio(boolean keep) throws IOException, AutomationException
setKeepAspectRatio
in interface IMapDescriptor
keep
- The keep (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getBackgroundColor() throws IOException, AutomationException
getBackgroundColor
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBackgroundColor(IColor color) throws IOException, AutomationException
setBackgroundColor
in interface IMapDescriptor
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getTransparentColor() throws IOException, AutomationException
getTransparentColor
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTransparentColor(IColor color) throws IOException, AutomationException
setTransparentColor
in interface IMapDescriptor
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMapSurround(IMapSurround surround, int xPixelOrigin, int yPixelOrigin, int anchorPoint) throws IOException, AutomationException
addMapSurround
in interface IMapDescriptor
surround
- A reference to a com.esri.arcgis.carto.IMapSurround (in)xPixelOrigin
- The xPixelOrigin (in)yPixelOrigin
- The yPixelOrigin (in)anchorPoint
- A com.esri.arcgis.carto.esriAnchorPointEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearMapSurrounds() throws IOException, AutomationException
clearMapSurrounds
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addPixelGraphic(IElement graphic) throws IOException, AutomationException
addPixelGraphic
in interface IMapDescriptor
graphic
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearPixelGraphics() throws IOException, AutomationException
clearPixelGraphics
in interface IMapDescriptor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |