com.esri.arcgis.display
Class DisplayTransformation

java.lang.Object
  extended by com.esri.arcgis.display.DisplayTransformation
All Implemented Interfaces:
IConnectionPointContainer, IDelayEvents, IDisplayTransformation, IDisplayTransformationAdmin, IDisplayTransformationScales, IOutputRasterSettings, IRasterOutputSettings, ITransformation, ITransformationGEN, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class DisplayTransformation
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ITransformationGEN, IDisplayTransformation, IDisplayTransformationAdmin, IDisplayTransformationScales, IRasterOutputSettings, IOutputRasterSettings, ITransformation, IConnectionPointContainer, IDelayEvents

COM Class 'DisplayTransformation'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriDisplay.olb'

Description 'Display transformation class for converting from world to device units.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geometry.ITransformationGEN
IID, IID5f015fe6_38cf_451d_81cd_7e784b71add7, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IDisplayTransformation
IID, IIDe6bdb000_4d35_11d0_98be_00805f7ced21, xxDummy
 
Fields inherited from interface com.esri.arcgis.geometry.ITransformation
IID6f2cf924_7e00_11d0_82f4_0000f8034032
 
Fields inherited from interface com.esri.arcgis.display.IDisplayTransformationAdmin
IID, IID42817971_a1f4_11d3_92dc_00600802e603, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IDisplayTransformationScales
IID, IIDa709b584_9fb9_4954_8096_02068c16a677, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IRasterOutputSettings
IID, IIDf13aac6f_9c3d_11d3_a644_0008c7df8de1, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IOutputRasterSettings
IID, IID28444834_e9cb_44f8_806a_d313373f69b8, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IConnectionPointContainer
IID, IIDb196b284_bab4_101a_b69c_00aa00341d07, xxDummy
 
Fields inherited from interface com.esri.arcgis.display.IDelayEvents
IID, IID5ba46487_1d16_42b8_847b_b7b9c8100b13, xxDummy
 
Constructor Summary
DisplayTransformation()
          Constructs a DisplayTransformation using ArcGIS Engine.
DisplayTransformation(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DisplayTransformation theDisplayTransformation = (DisplayTransformation) obj;
 
Method Summary
 void addITransformEventsListener(ITransformEvents theListener)
          addITransformEventsListener.
 void addUserScale(double scale)
          Add a new user scale.
 double calculateScale(IEnvelope extent)
          Calculate the scale of the specified extent.
 void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
          enumConnectionPoints
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP)
          findConnectionPoint
 void fromMapPoint(IPoint mapPoint, int[] x, int[] y)
          Calculates device coordinates corresponding to the map point.
 double fromPoints(double pointDistance)
          Calculates a map distance corresponding to a point (1/72) distance.
 IEnvelope getBounds()
          Full extent in world coordinates.
static java.lang.String getClsid()
          getClsid.
 IEnvelope getConstrainedBounds()
          Intersection of Bounds and VisibleBounds.
 tagRECT getDeviceFrame()
          Visible extent in device coordinates.
 IEnvelope getFittedBounds()
          Device frame in world coordinates.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 short getMaxColorDepth()
          Maximum color depth for raster output.
 double getRasterRatio()
          Ratio between resolution and raster resolution.
 double getRasterResolution()
          Resolution used to output rasterized data.
 double getReferenceScale()
          Reference scale for computing scaled symbol sizes.
 int getResampleRatio()
          This coefficient states the scale level for the raster when it goes to output.
 double getResolution()
          Resolution of the device in dots (pixels) per inch.
 double getRotation()
          Rotation angle in degrees.
 double getScaleRatio()
          Scale between FittedBounds and DeviceFrame.
 int getScaleSnapping()
          Indicates if transform snaps the fitted bounds to a standard scale.
 ISpatialReference getSpatialReference()
          Current spatial reference.
 int getUnits()
          Units used by world coordinates.
 double getUserScale(int idx)
          Get the user scales.
 int getUserScaleCount()
          Get the number of user scales.
 IEnvelope getVisibleBounds()
          Visible extent in world coordinates.
 int hashCode()
          the hashcode for this object
 boolean isDelayEvents()
          Indicates if events are delayed.
 boolean isSuppressEvents()
          Indicates if transformation object suppresses events.
 boolean isZoomResolution()
          Indicates if resolution is tied to visible bounds.
 void loadDefaultUserScales()
          Initialize user scales to defaults.
 double nextScale(double scale)
          Find the nearest standard scale with a value that is higher than the specified scale.
 double previousScale(double scale)
          Find the nearest standard scale with a value that is lower than the specified scale.
 void release()
          Release a DisplayTransformation.
 void removeAllUserScales()
          Remove all the user scales.
 void removeITransformEventsListener(ITransformEvents theListener)
          removeITransformEventsListener.
 void removeUserScale(double scale)
          Remove a user scale.
 void saveDefaultUserScales()
          Set the current set of user scales to be the defaults.
 void setBounds(IEnvelope bounds)
          Full extent in world coordinates.
 void setDelayEvents(boolean delayEvents)
          Indicates if events are delayed.
 void setDeviceFrame(tagRECT bounds)
          Visible extent in device coordinates.
 void setMaxColorDepth(short bitsPerPixel)
          Maximum color depth for raster output.
 void setRasterResolution(double dpi)
          Resolution used to output rasterized data.
 void setReferenceScale(double scale)
          Reference scale for computing scaled symbol sizes.
 void setResampleRatio(int pRatio)
          This coefficient states the scale level for the raster when it goes to output.
 void setResolution(double pDpi)
          Resolution of the device in dots (pixels) per inch.
 void setRotation(double degrees)
          Rotation angle in degrees.
 void setScaleRatio(double scale)
          Scale between FittedBounds and DeviceFrame.
 void setScaleRatioNoRecalc(double rhs1)
          The scale without any recalculation.
 void setScaleSnapping(int setting)
          Indicates if transform snaps the fitted bounds to a standard scale.
 void setSpatialReferenceByRef(ISpatialReference spatialReference)
          Current spatial reference.
 void setSuppressEvents(boolean suppressEvents)
          Indicates if transformation object suppresses events.
 void setUnits(int unitsCode)
          Units used by world coordinates.
 void setVisibleBounds(IEnvelope bounds)
          Visible extent in world coordinates.
 void setZoomResolution(boolean flag)
          Indicates if resolution is tied to visible bounds.
 double snapScale(double scale)
          Snap the specified scale to a standard scale.
 IPoint toMapPoint(int x, int y)
          Calculates a point in map coordinates corresponding to the device point.
 double toPoints(double mapDistance)
          Calculates a distance in points (1/72 inch) corresponding to the map distance.
 void transformCoords(_WKSPoint mapPoints, tagPOINT devPoints, int numPoints, int options)
          Transforms a set of points or measurements from device to world space or vice versa.
 void transformMeasuresFF(int direction, double[] inMeasures, double[][] outMeasures)
          Transforms floating point measures to floating point measures (or do the inverse).
 void transformMeasuresFF(int direction, int cMeasures, double[] inMeasures, double[] outMeasures)
          Transforms floating point measures to floating point measures (or do the inverse).
 void transformMeasuresFI(int direction, double[] inMeasures, int[][] outMeasures)
          Transforms floating point measures to integer measures (or do the inverse).
 void transformMeasuresFI(int direction, int cMeasures, double[] inMeasures, int[] outMeasures)
          Transforms floating point measures to integer measures (or do the inverse).
 void transformMeasuresIF(int direction, int[] inMeasures, double[][] outMeasures)
          Transforms integer measures to floating point measures (or do the inverse).
 void transformMeasuresIF(int direction, int cMeasures, int[] inMeasures, double[] outMeasures)
          Transforms integer measures to floating point measures (or do the inverse).
 void transformMeasuresII(int direction, int[] inMeasures, int[][] outMeasures)
          Transforms integer measures to integer measures (or do the inverse).
 void transformMeasuresII(int direction, int cMeasures, int[] inMeasures, int[] outMeasures)
          Transforms integer measures to integer measures (or do the inverse).
 void transformPointsFF(int direction, double[] inPoints, double[][] outPoints)
          Transforms floating point points to floating point points (or do the inverse).
 void transformPointsFF(int direction, int cPoints, double[] inPoints, double[] outPoints)
          Transforms floating point points to floating point points (or do the inverse).
 void transformPointsFI(int direction, double[] inPoints, int[][] outPoints)
          Transforms floating point points to integer points (or do the inverse).
 void transformPointsFI(int direction, int cPoints, double[] inPoints, int[] outPoints)
          Transforms floating point points to integer points (or do the inverse).
 void transformPointsIF(int direction, int[] inPoints, double[][] outPoints)
          Transforms integer points to floating point points (or do the inverse).
 void transformPointsIF(int direction, int cPoints, int[] inPoints, double[] outPoints)
          Transforms integer points to floating point points (or do the inverse).
 void transformPointsII(int direction, int[] inPoints, int[][] outPoints)
          Transforms integer points to integer points (or do the inverse).
 void transformPointsII(int direction, int cPoints, int[] inPoints, int[] outPoints)
          Transforms integer points to integer points (or do the inverse).
 void transformRect(IEnvelope mapRect, tagRECT[] devRect, int options)
          Transforms a rectangle from device to world space or vice versa.
 void zoomTo(IEnvelope extent, double scale)
          Zoom to the specified scale.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayTransformation

public DisplayTransformation()
                      throws java.io.IOException,
                             java.net.UnknownHostException
Constructs a DisplayTransformation using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DisplayTransformation

public DisplayTransformation(java.lang.Object obj)
                      throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DisplayTransformation theDisplayTransformation = (DisplayTransformation) obj;

Construct a DisplayTransformation using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DisplayTransformation.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

addITransformEventsListener

public void addITransformEventsListener(ITransformEvents theListener)
                                 throws java.io.IOException
addITransformEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.display.ITransformEvents interface.
Throws:
java.io.IOException - If there are communications problems.

removeITransformEventsListener

public void removeITransformEventsListener(ITransformEvents theListener)
                                    throws java.io.IOException
removeITransformEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.display.ITransformEvents interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a DisplayTransformation.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

transformMeasuresFF

public void transformMeasuresFF(int direction,
                                double[] inMeasures,
                                double[][] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms floating point measures to floating point measures (or do the inverse).

Specified by:
transformMeasuresFF in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresFI

public void transformMeasuresFI(int direction,
                                double[] inMeasures,
                                int[][] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms floating point measures to integer measures (or do the inverse).

Specified by:
transformMeasuresFI in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresIF

public void transformMeasuresIF(int direction,
                                int[] inMeasures,
                                double[][] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms integer measures to floating point measures (or do the inverse).

Specified by:
transformMeasuresIF in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresII

public void transformMeasuresII(int direction,
                                int[] inMeasures,
                                int[][] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms integer measures to integer measures (or do the inverse).

Specified by:
transformMeasuresII in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsFF

public void transformPointsFF(int direction,
                              double[] inPoints,
                              double[][] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms floating point points to floating point points (or do the inverse).

Specified by:
transformPointsFF in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsFI

public void transformPointsFI(int direction,
                              double[] inPoints,
                              int[][] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms floating point points to integer points (or do the inverse).

Specified by:
transformPointsFI in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsIF

public void transformPointsIF(int direction,
                              int[] inPoints,
                              double[][] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms integer points to floating point points (or do the inverse).

Specified by:
transformPointsIF in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsII

public void transformPointsII(int direction,
                              int[] inPoints,
                              int[][] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms integer points to integer points (or do the inverse).

Specified by:
transformPointsII in interface ITransformationGEN
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBounds

public void setBounds(IEnvelope bounds)
               throws java.io.IOException,
                      AutomationException
Full extent in world coordinates.

Specified by:
setBounds in interface IDisplayTransformation
Parameters:
bounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBounds

public IEnvelope getBounds()
                    throws java.io.IOException,
                           AutomationException
Full extent in world coordinates.

Specified by:
getBounds in interface IDisplayTransformation
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVisibleBounds

public void setVisibleBounds(IEnvelope bounds)
                      throws java.io.IOException,
                             AutomationException
Visible extent in world coordinates.

Specified by:
setVisibleBounds in interface IDisplayTransformation
Parameters:
bounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVisibleBounds

public IEnvelope getVisibleBounds()
                           throws java.io.IOException,
                                  AutomationException
Visible extent in world coordinates.

Specified by:
getVisibleBounds in interface IDisplayTransformation
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFittedBounds

public IEnvelope getFittedBounds()
                          throws java.io.IOException,
                                 AutomationException
Device frame in world coordinates.

Specified by:
getFittedBounds in interface IDisplayTransformation
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConstrainedBounds

public IEnvelope getConstrainedBounds()
                               throws java.io.IOException,
                                      AutomationException
Intersection of Bounds and VisibleBounds.

Specified by:
getConstrainedBounds in interface IDisplayTransformation
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDeviceFrame

public void setDeviceFrame(tagRECT bounds)
                    throws java.io.IOException,
                           AutomationException
Visible extent in device coordinates.

Specified by:
setDeviceFrame in interface IDisplayTransformation
Parameters:
bounds - A Structure: com.esri.arcgis.system.tagRECT (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDeviceFrame

public tagRECT getDeviceFrame()
                       throws java.io.IOException,
                              AutomationException
Visible extent in device coordinates.

Specified by:
getDeviceFrame in interface IDisplayTransformation
Returns:
A Structure: com.esri.arcgis.system.tagRECT
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setZoomResolution

public void setZoomResolution(boolean flag)
                       throws java.io.IOException,
                              AutomationException
Indicates if resolution is tied to visible bounds. If true, zooming in magnifies contents (i.e., zoom in on page).

Specified by:
setZoomResolution in interface IDisplayTransformation
Parameters:
flag - The flag (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isZoomResolution

public boolean isZoomResolution()
                         throws java.io.IOException,
                                AutomationException
Indicates if resolution is tied to visible bounds. If true, zooming in magnifies contents (i.e., zoom in on page).

Specified by:
isZoomResolution in interface IDisplayTransformation
Returns:
The flag
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setResolution

public void setResolution(double pDpi)
                   throws java.io.IOException,
                          AutomationException
Resolution of the device in dots (pixels) per inch.

Specified by:
setResolution in interface IDisplayTransformation
Parameters:
pDpi - The pDpi (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getResolution

public double getResolution()
                     throws java.io.IOException,
                            AutomationException
Resolution of the device in dots (pixels) per inch.

Specified by:
getResolution in interface IDisplayTransformation
Returns:
The pDpi
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRotation

public void setRotation(double degrees)
                 throws java.io.IOException,
                        AutomationException
Rotation angle in degrees.

Specified by:
setRotation in interface IDisplayTransformation
Parameters:
degrees - The degrees (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRotation

public double getRotation()
                   throws java.io.IOException,
                          AutomationException
Rotation angle in degrees.

Specified by:
getRotation in interface IDisplayTransformation
Returns:
The degrees
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUnits

public int getUnits()
             throws java.io.IOException,
                    AutomationException
Units used by world coordinates.

Specified by:
getUnits in interface IDisplayTransformation
Returns:
A com.esri.arcgis.system.esriUnits constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUnits

public void setUnits(int unitsCode)
              throws java.io.IOException,
                     AutomationException
Units used by world coordinates.

Specified by:
setUnits in interface IDisplayTransformation
Parameters:
unitsCode - A com.esri.arcgis.system.esriUnits constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getScaleRatio

public double getScaleRatio()
                     throws java.io.IOException,
                            AutomationException
Scale between FittedBounds and DeviceFrame.

Specified by:
getScaleRatio in interface IDisplayTransformation
Returns:
The scale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setScaleRatio

public void setScaleRatio(double scale)
                   throws java.io.IOException,
                          AutomationException
Scale between FittedBounds and DeviceFrame.

Specified by:
setScaleRatio in interface IDisplayTransformation
Parameters:
scale - The scale (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReferenceScale

public double getReferenceScale()
                         throws java.io.IOException,
                                AutomationException
Reference scale for computing scaled symbol sizes.

Specified by:
getReferenceScale in interface IDisplayTransformation
Returns:
The scale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setReferenceScale

public void setReferenceScale(double scale)
                       throws java.io.IOException,
                              AutomationException
Reference scale for computing scaled symbol sizes.

Specified by:
setReferenceScale in interface IDisplayTransformation
Parameters:
scale - The scale (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialReferenceByRef

public void setSpatialReferenceByRef(ISpatialReference spatialReference)
                              throws java.io.IOException,
                                     AutomationException
Current spatial reference.

Specified by:
setSpatialReferenceByRef in interface IDisplayTransformation
Parameters:
spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
Current spatial reference.

Specified by:
getSpatialReference in interface IDisplayTransformation
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSuppressEvents

public boolean isSuppressEvents()
                         throws java.io.IOException,
                                AutomationException
Indicates if transformation object suppresses events.

Specified by:
isSuppressEvents in interface IDisplayTransformation
Returns:
The suppressEvents
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSuppressEvents

public void setSuppressEvents(boolean suppressEvents)
                       throws java.io.IOException,
                              AutomationException
Indicates if transformation object suppresses events.

Specified by:
setSuppressEvents in interface IDisplayTransformation
Parameters:
suppressEvents - The suppressEvents (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformRect

public void transformRect(IEnvelope mapRect,
                          tagRECT[] devRect,
                          int options)
                   throws java.io.IOException,
                          AutomationException
Transforms a rectangle from device to world space or vice versa. Use the flags specified by esriDisplayTransformEnum.

Specified by:
transformRect in interface IDisplayTransformation
Parameters:
mapRect - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
devRect - A Structure: com.esri.arcgis.system.tagRECT (in/out: use single element array)
options - The options (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformCoords

public void transformCoords(_WKSPoint mapPoints,
                            tagPOINT devPoints,
                            int numPoints,
                            int options)
                     throws java.io.IOException,
                            AutomationException
Transforms a set of points or measurements from device to world space or vice versa. Use the flags specified by esriDisplayTransformEnum.

Specified by:
transformCoords in interface IDisplayTransformation
Parameters:
mapPoints - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
devPoints - A Structure: com.esri.arcgis.display.tagPOINT (in)
numPoints - The numPoints (in)
options - The options (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toMapPoint

public IPoint toMapPoint(int x,
                         int y)
                  throws java.io.IOException,
                         AutomationException
Calculates a point in map coordinates corresponding to the device point.

Specified by:
toMapPoint in interface IDisplayTransformation
Parameters:
x - The x (in)
y - The y (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromMapPoint

public void fromMapPoint(IPoint mapPoint,
                         int[] x,
                         int[] y)
                  throws java.io.IOException,
                         AutomationException
Calculates device coordinates corresponding to the map point.

Specified by:
fromMapPoint in interface IDisplayTransformation
Parameters:
mapPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
x - The x (out: use single element array)
y - The y (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toPoints

public double toPoints(double mapDistance)
                throws java.io.IOException,
                       AutomationException
Calculates a distance in points (1/72 inch) corresponding to the map distance.

Specified by:
toPoints in interface IDisplayTransformation
Parameters:
mapDistance - The mapDistance (in)
Returns:
The pointDistance
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromPoints

public double fromPoints(double pointDistance)
                  throws java.io.IOException,
                         AutomationException
Calculates a map distance corresponding to a point (1/72) distance.

Specified by:
fromPoints in interface IDisplayTransformation
Parameters:
pointDistance - The pointDistance (in)
Returns:
The mapDistance
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresFF

public void transformMeasuresFF(int direction,
                                int cMeasures,
                                double[] inMeasures,
                                double[] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms floating point measures to floating point measures (or do the inverse).

Specified by:
transformMeasuresFF in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cMeasures - The cMeasures (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresFI

public void transformMeasuresFI(int direction,
                                int cMeasures,
                                double[] inMeasures,
                                int[] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms floating point measures to integer measures (or do the inverse).

Specified by:
transformMeasuresFI in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cMeasures - The cMeasures (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresIF

public void transformMeasuresIF(int direction,
                                int cMeasures,
                                int[] inMeasures,
                                double[] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms integer measures to floating point measures (or do the inverse).

Specified by:
transformMeasuresIF in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cMeasures - The cMeasures (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformMeasuresII

public void transformMeasuresII(int direction,
                                int cMeasures,
                                int[] inMeasures,
                                int[] outMeasures)
                         throws java.io.IOException,
                                AutomationException
Transforms integer measures to integer measures (or do the inverse).

Specified by:
transformMeasuresII in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cMeasures - The cMeasures (in)
inMeasures - The inMeasures (in)
outMeasures - The outMeasures (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsFF

public void transformPointsFF(int direction,
                              int cPoints,
                              double[] inPoints,
                              double[] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms floating point points to floating point points (or do the inverse).

Specified by:
transformPointsFF in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cPoints - The cPoints (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsFI

public void transformPointsFI(int direction,
                              int cPoints,
                              double[] inPoints,
                              int[] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms floating point points to integer points (or do the inverse).

Specified by:
transformPointsFI in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cPoints - The cPoints (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsIF

public void transformPointsIF(int direction,
                              int cPoints,
                              int[] inPoints,
                              double[] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms integer points to floating point points (or do the inverse).

Specified by:
transformPointsIF in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cPoints - The cPoints (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformPointsII

public void transformPointsII(int direction,
                              int cPoints,
                              int[] inPoints,
                              int[] outPoints)
                       throws java.io.IOException,
                              AutomationException
Transforms integer points to integer points (or do the inverse).

Specified by:
transformPointsII in interface ITransformation
Parameters:
direction - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
cPoints - The cPoints (in)
inPoints - The inPoints (in)
outPoints - The outPoints (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setScaleRatioNoRecalc

public void setScaleRatioNoRecalc(double rhs1)
                           throws java.io.IOException,
                                  AutomationException
The scale without any recalculation.

Specified by:
setScaleRatioNoRecalc in interface IDisplayTransformationAdmin
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getScaleSnapping

public int getScaleSnapping()
                     throws java.io.IOException,
                            AutomationException
Indicates if transform snaps the fitted bounds to a standard scale.

Specified by:
getScaleSnapping in interface IDisplayTransformationScales
Returns:
A com.esri.arcgis.display.esriScaleSnapping constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setScaleSnapping

public void setScaleSnapping(int setting)
                      throws java.io.IOException,
                             AutomationException
Indicates if transform snaps the fitted bounds to a standard scale.

Specified by:
setScaleSnapping in interface IDisplayTransformationScales
Parameters:
setting - A com.esri.arcgis.display.esriScaleSnapping constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUserScaleCount

public int getUserScaleCount()
                      throws java.io.IOException,
                             AutomationException
Get the number of user scales.

Specified by:
getUserScaleCount in interface IDisplayTransformationScales
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUserScale

public double getUserScale(int idx)
                    throws java.io.IOException,
                           AutomationException
Get the user scales.

Specified by:
getUserScale in interface IDisplayTransformationScales
Parameters:
idx - The idx (in)
Returns:
The scale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addUserScale

public void addUserScale(double scale)
                  throws java.io.IOException,
                         AutomationException
Add a new user scale.

Specified by:
addUserScale in interface IDisplayTransformationScales
Parameters:
scale - The scale (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeUserScale

public void removeUserScale(double scale)
                     throws java.io.IOException,
                            AutomationException
Remove a user scale.

Specified by:
removeUserScale in interface IDisplayTransformationScales
Parameters:
scale - The scale (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAllUserScales

public void removeAllUserScales()
                         throws java.io.IOException,
                                AutomationException
Remove all the user scales.

Specified by:
removeAllUserScales in interface IDisplayTransformationScales
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadDefaultUserScales

public void loadDefaultUserScales()
                           throws java.io.IOException,
                                  AutomationException
Initialize user scales to defaults.

Specified by:
loadDefaultUserScales in interface IDisplayTransformationScales
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveDefaultUserScales

public void saveDefaultUserScales()
                           throws java.io.IOException,
                                  AutomationException
Set the current set of user scales to be the defaults.

Specified by:
saveDefaultUserScales in interface IDisplayTransformationScales
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

calculateScale

public double calculateScale(IEnvelope extent)
                      throws java.io.IOException,
                             AutomationException
Calculate the scale of the specified extent.

Specified by:
calculateScale in interface IDisplayTransformationScales
Parameters:
extent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Returns:
The scale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

zoomTo

public void zoomTo(IEnvelope extent,
                   double scale)
            throws java.io.IOException,
                   AutomationException
Zoom to the specified scale. Center on extent.

Specified by:
zoomTo in interface IDisplayTransformationScales
Parameters:
extent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
scale - The scale (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

snapScale

public double snapScale(double scale)
                 throws java.io.IOException,
                        AutomationException
Snap the specified scale to a standard scale.

Specified by:
snapScale in interface IDisplayTransformationScales
Parameters:
scale - The scale (in)
Returns:
The snappedScale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

nextScale

public double nextScale(double scale)
                 throws java.io.IOException,
                        AutomationException
Find the nearest standard scale with a value that is higher than the specified scale.

Specified by:
nextScale in interface IDisplayTransformationScales
Parameters:
scale - The scale (in)
Returns:
The nextScale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

previousScale

public double previousScale(double scale)
                     throws java.io.IOException,
                            AutomationException
Find the nearest standard scale with a value that is lower than the specified scale.

Specified by:
previousScale in interface IDisplayTransformationScales
Parameters:
scale - The scale (in)
Returns:
The previousScale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRasterResolution

public double getRasterResolution()
                           throws java.io.IOException,
                                  AutomationException
Resolution used to output rasterized data. A value of 0 means 'same as device'.

Specified by:
getRasterResolution in interface IRasterOutputSettings
Returns:
The dpi
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRasterResolution

public void setRasterResolution(double dpi)
                         throws java.io.IOException,
                                AutomationException
Resolution used to output rasterized data. A value of 0 means 'same as device'.

Specified by:
setRasterResolution in interface IRasterOutputSettings
Parameters:
dpi - The dpi (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxColorDepth

public short getMaxColorDepth()
                       throws java.io.IOException,
                              AutomationException
Maximum color depth for raster output. Specify bits per pixel, i.e., 4, 8, 16.

Specified by:
getMaxColorDepth in interface IRasterOutputSettings
Returns:
The bitsPerPixel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxColorDepth

public void setMaxColorDepth(short bitsPerPixel)
                      throws java.io.IOException,
                             AutomationException
Maximum color depth for raster output. Specify bits per pixel, i.e., 4, 8, 16.

Specified by:
setMaxColorDepth in interface IRasterOutputSettings
Parameters:
bitsPerPixel - The bitsPerPixel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRasterRatio

public double getRasterRatio()
                      throws java.io.IOException,
                             AutomationException
Ratio between resolution and raster resolution.

Specified by:
getRasterRatio in interface IRasterOutputSettings
Returns:
The ratio
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getResampleRatio

public int getResampleRatio()
                     throws java.io.IOException,
                            AutomationException
This coefficient states the scale level for the raster when it goes to output. 1 means 1:1; 2 means 1:2, i.e. 2 times less than the output quality.

Specified by:
getResampleRatio in interface IOutputRasterSettings
Returns:
The pRatio
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setResampleRatio

public void setResampleRatio(int pRatio)
                      throws java.io.IOException,
                             AutomationException
This coefficient states the scale level for the raster when it goes to output. 1 means 1:1; 2 means 1:2, i.e. 2 times less than the output quality.

Specified by:
setResampleRatio in interface IOutputRasterSettings
Parameters:
pRatio - The pRatio (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

enumConnectionPoints

public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
                          throws java.io.IOException,
                                 AutomationException
enumConnectionPoints

Specified by:
enumConnectionPoints in interface IConnectionPointContainer
Parameters:
ppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findConnectionPoint

public void findConnectionPoint(GUID riid,
                                IConnectionPoint[] ppCP)
                         throws java.io.IOException,
                                AutomationException
findConnectionPoint

Specified by:
findConnectionPoint in interface IConnectionPointContainer
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDelayEvents

public void setDelayEvents(boolean delayEvents)
                    throws java.io.IOException,
                           AutomationException
Indicates if events are delayed. If something changes while events are being delayed, a single event is fired when events are resumed.

Specified by:
setDelayEvents in interface IDelayEvents
Parameters:
delayEvents - The delayEvents (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDelayEvents

public boolean isDelayEvents()
                      throws java.io.IOException,
                             AutomationException
Indicates if events are delayed. If something changes while events are being delayed, a single event is fired when events are resumed.

Specified by:
isDelayEvents in interface IDelayEvents
Returns:
The delayEvents
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.