com.esri.arcgis.carto
Class Graticule

java.lang.Object
  extended by com.esri.arcgis.carto.Graticule
All Implemented Interfaces:
IGraphicsComposite, IGraticule, IGridAxisTicks, IGridHatch, IGridInteriorLabels, IMapGrid, IMeasuredGrid, IReferenceSystem, com.esri.arcgis.interop.RemoteObjRef, IClone, IPersist, IPersistStream, java.io.Externalizable, java.io.Serializable

public class Graticule
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGraticule, IMapGrid, IMeasuredGrid, IGridHatch, IGridInteriorLabels, IGridAxisTicks, IPersistStream, IPersist, IClone, IGraphicsComposite, IReferenceSystem, java.io.Externalizable

COM Class 'Graticule'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'A map grid that divides the map with meridians and parallels.' 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
static long serialVersionUID
           
 
Fields inherited from interface com.esri.arcgis.carto.IGraticule
IID, IID03762c8c_f4d0_11d1_ade8_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IMapGrid
IID03762c8b_f4d0_11d1_ade8_080009ec732a
 
Fields inherited from interface com.esri.arcgis.carto.IMeasuredGrid
IID, IID4f69021f_a5c1_11d2_ae82_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IGridHatch
IID, IID12700210_876c_4559_9fcf_aab238008832, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IGridInteriorLabels
IID, IIDa8bdc097_2002_4e08_bd4b_401599a58fa4, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IGridAxisTicks
IID, IID864e5227_9809_4a48_8309_6ec640c63b30, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersistStream
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersist
IID0000010c_0000_0000_c000_000000000046
 
Fields inherited from interface com.esri.arcgis.system.IClone
IID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IGraphicsComposite
IID, IID969cde4a_82d4_11d2_87dd_0000f8751720, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IReferenceSystem
IID, IID53b979cb_9576_40dd_8b7b_f445e5b1bac9, xxDummy
 
Constructor Summary
Graticule()
          Constructs a Graticule using ArcGIS Engine.
Graticule(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Graticule theGraticule = (Graticule) obj;
 
Method Summary
 void addElement(java.lang.String label, double location, boolean isLatitude, ITextSymbol labelSymbol)
          Adds a grid line at custom location to the graticule.
 void assign(IClone src)
          Assigns the properties of src to the receiver.
 void boundsChanged()
          Called when the extent of the parent map frame changes.
 void draw(IDisplay display, IMapFrame pMapFrame)
          Draws the map grid for a map frame to the given display.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IClone esri_clone()
          Clones the receiver and assigns the result to *clone.
 void generateGraphics(IMapFrame pMapFrame, IGraphicsContainer graphicsContainer)
          Generates graphic elements corresponding to the grid lines and stores them in the specified graphics container.
 double getAxisTickOffset()
          The offset (in points) for ticks that fall along the axes.
 IMapGridBorder getBorder()
          The map grid border.
 void getClassID(GUID[] pClassID)
          getClassID
static java.lang.String getClsid()
          getClsid.
 double getExteriorWidth(IDisplay pDisplay, IMapFrame pMapFrame)
          The width (in display units) of the portion of the grid that is outside of the frame.
 IEnumElement getGraphics(IDisplay display, java.lang.Object data)
          Graphic elements that are used to render this object.
 double getHatchIntervalX()
          The interval (in grid units) along the X axis for the grid hatches.
 double getHatchIntervalY()
          The interval (in grid units) along the Y axis for the grid hatches.
 double getHatchLength()
          The length (in points) of the grid hatches.
 ILineSymbol getHatchLineSymbol()
          The line symbol used to draw the grid hatches.
 IMarkerSymbol getHatchMarkerSymbol()
          The marker symbol used to draw markers at grid hatch locations.
 double getInteriorLabelIntervalX()
          The interval along the X axis between interior labels.
 double getInteriorLabelIntervalY()
          The interval along the Y axis between interior labels.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IGridLabel getLabelFormat()
          The label format for map grid labels.
 ILineSymbol getLineSymbol()
          The symbol used to draw grid lines - null will draw no lines.
 java.lang.String getName()
          The name of the map grid.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          getSizeMax
 short getSubTickCount()
          The number of subticks to draw between the major ticks.
 double getSubTickLength()
          The length of the subticks in points.
 ILineSymbol getSubTickLineSymbol()
          The symbol used to draw the subtick lines.
 double getTickLength()
          The length of the major ticks in points.
 ILineSymbol getTickLineSymbol()
          The line symbol used to draw the major ticks.
 IMarkerSymbol getTickMarkSymbol()
          The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks.
 int getUnits()
          The units for the intervals and origin.
 double getXIntervalSize()
          The interval between grid lines along the X axis.
 double getXOrigin()
          The origin of the grid on the X axis.
 double getYIntervalSize()
          The interval between grid lines along the Y axis.
 double getYOrigin()
          The origin of the grid on the Y axis.
 int hashCode()
          the hashcode for this object
 boolean isAutoInterval()
          Indicates if the graticule automatically and interactively computes the interval size.
 void isDirty()
          isDirty
 boolean isEqual(IClone other)
          Indicates if the receiver and other have the same properties.
 boolean isFixedOrigin()
          Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false).
 boolean isHatchDirectional()
          Indicates if the direction of the hatches is from the prime meridian and equator.
 boolean isIdentical(IClone other)
          Indicates if the receiver and other are the same object.
 boolean isShowInteriorLabels()
          Indicates if interior labels should be displayed.
 boolean isVisible()
          Indicates if the map grid is visible.
 void load(IStream pstm)
          load
 void prepareForOutput(int hDC, int dpi, tagRECT pixelBounds, IMapFrame pMapFrame)
          Prepares the map grid for output to a device.
 void queryBounds(IDisplay pDisplay, IMapFrame pMapFrame, IEnvelope bounds)
          The extent of the reference system in page space.
 void queryLabelVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis)
          Returns the visibility of the labels along all four sides of the map grid.
 void querySubTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis)
          Returns the visibility of the subticks along all four sides of the map grid.
 void queryTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis)
          Returns the visibility of the ticks along all four sides of the map grid.
 void readExternal(java.io.ObjectInput in)
           
 void release()
          Release a Graticule.
 void removeElement(java.lang.String label)
          Removes a grid line in a custom location.
 void save(IStream pstm, int fClearDirty)
          save
 void setAutoInterval(boolean autoInterval)
          Indicates if the graticule automatically and interactively computes the interval size.
 void setAxisTickOffset(double offsetPts)
          The offset (in points) for ticks that fall along the axes.
 void setBorder(IMapGridBorder gridBorder)
          The map grid border.
 void setDefaults(IMapFrame pMapFrame)
          Sets the properties of the map grid to default values.
 void setFixedOrigin(boolean fixed)
          Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false).
 void setHatchDirectional(boolean isDirectional)
          Indicates if the direction of the hatches is from the prime meridian and equator.
 void setHatchIntervalX(double interval)
          The interval (in grid units) along the X axis for the grid hatches.
 void setHatchIntervalY(double interval)
          The interval (in grid units) along the Y axis for the grid hatches.
 void setHatchLength(double length)
          The length (in points) of the grid hatches.
 void setHatchLineSymbol(ILineSymbol symbol)
          The line symbol used to draw the grid hatches.
 void setHatchMarkerSymbol(IMarkerSymbol symbol)
          The marker symbol used to draw markers at grid hatch locations.
 void setInteriorLabelIntervalX(double interval)
          The interval along the X axis between interior labels.
 void setInteriorLabelIntervalY(double interval)
          The interval along the Y axis between interior labels.
 void setLabelFormat(IGridLabel format)
          The label format for map grid labels.
 void setLabelVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis)
          Sets the visibility of the labels along all four sides of the map grid.
 void setLineSymbol(ILineSymbol symbol)
          The symbol used to draw grid lines - null will draw no lines.
 void setName(java.lang.String gridName)
          The name of the map grid.
 void setShowInteriorLabels(boolean show)
          Indicates if interior labels should be displayed.
 void setSubTickCount(short count)
          The number of subticks to draw between the major ticks.
 void setSubTickLength(double lengthPoints)
          The length of the subticks in points.
 void setSubTickLineSymbol(ILineSymbol symbol)
          The symbol used to draw the subtick lines.
 void setSubTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis)
          Sets the visibility of the subticks along all four sides of the map grid.
 void setTickLength(double lengthPoints)
          The length of the major ticks in points.
 void setTickLineSymbol(ILineSymbol symbol)
          The line symbol used to draw the major ticks.
 void setTickMarkSymbol(IMarkerSymbol symbol)
          The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks.
 void setTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis)
          Sets the visibility of the ticks along all four sides of the map grid.
 void setUnits(int unitsCode)
          The units for the intervals and origin.
 void setVisible(boolean visible)
          Indicates if the map grid is visible.
 void setXIntervalSize(double interval)
          The interval between grid lines along the X axis.
 void setXOrigin(double origin)
          The origin of the grid on the X axis.
 void setYIntervalSize(double interval)
          The interval between grid lines along the Y axis.
 void setYOrigin(double origin)
          The origin of the grid on the Y axis.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Graticule

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

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

Graticule

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

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

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

release

public void release()
Release a Graticule.

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

isAutoInterval

public boolean isAutoInterval()
                       throws java.io.IOException,
                              AutomationException
Indicates if the graticule automatically and interactively computes the interval size.

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

setAutoInterval

public void setAutoInterval(boolean autoInterval)
                     throws java.io.IOException,
                            AutomationException
Indicates if the graticule automatically and interactively computes the interval size.

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

addElement

public void addElement(java.lang.String label,
                       double location,
                       boolean isLatitude,
                       ITextSymbol labelSymbol)
                throws java.io.IOException,
                       AutomationException
Adds a grid line at custom location to the graticule.

Specified by:
addElement in interface IGraticule
Parameters:
label - The label (in)
location - The location (in)
isLatitude - The isLatitude (in)
labelSymbol - A reference to a com.esri.arcgis.display.ITextSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeElement

public void removeElement(java.lang.String label)
                   throws java.io.IOException,
                          AutomationException
Removes a grid line in a custom location.

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

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
The name of the map grid.

Specified by:
getName in interface IMapGrid
Specified by:
getName in interface IReferenceSystem
Returns:
The gridName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setName

public void setName(java.lang.String gridName)
             throws java.io.IOException,
                    AutomationException
The name of the map grid.

Specified by:
setName in interface IMapGrid
Specified by:
setName in interface IReferenceSystem
Parameters:
gridName - The gridName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLineSymbol

public ILineSymbol getLineSymbol()
                          throws java.io.IOException,
                                 AutomationException
The symbol used to draw grid lines - null will draw no lines.

Specified by:
getLineSymbol in interface IMapGrid
Returns:
A reference to a com.esri.arcgis.display.ILineSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLineSymbol

public void setLineSymbol(ILineSymbol symbol)
                   throws java.io.IOException,
                          AutomationException
The symbol used to draw grid lines - null will draw no lines.

Specified by:
setLineSymbol in interface IMapGrid
Parameters:
symbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTickMarkSymbol

public IMarkerSymbol getTickMarkSymbol()
                                throws java.io.IOException,
                                       AutomationException
The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks.

Specified by:
getTickMarkSymbol in interface IMapGrid
Returns:
A reference to a com.esri.arcgis.display.IMarkerSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTickMarkSymbol

public void setTickMarkSymbol(IMarkerSymbol symbol)
                       throws java.io.IOException,
                              AutomationException
The symbol used to draw tick marks at the grid interval intersections - null will draw no tick marks.

Specified by:
setTickMarkSymbol in interface IMapGrid
Parameters:
symbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLabelFormat

public IGridLabel getLabelFormat()
                          throws java.io.IOException,
                                 AutomationException
The label format for map grid labels.

Specified by:
getLabelFormat in interface IMapGrid
Specified by:
getLabelFormat in interface IReferenceSystem
Returns:
A reference to a com.esri.arcgis.carto.IGridLabel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLabelFormat

public void setLabelFormat(IGridLabel format)
                    throws java.io.IOException,
                           AutomationException
The label format for map grid labels.

Specified by:
setLabelFormat in interface IMapGrid
Specified by:
setLabelFormat in interface IReferenceSystem
Parameters:
format - A reference to a com.esri.arcgis.carto.IGridLabel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTickLineSymbol

public ILineSymbol getTickLineSymbol()
                              throws java.io.IOException,
                                     AutomationException
The line symbol used to draw the major ticks.

Specified by:
getTickLineSymbol in interface IMapGrid
Returns:
A reference to a com.esri.arcgis.display.ILineSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTickLineSymbol

public void setTickLineSymbol(ILineSymbol symbol)
                       throws java.io.IOException,
                              AutomationException
The line symbol used to draw the major ticks.

Specified by:
setTickLineSymbol in interface IMapGrid
Parameters:
symbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTickLength

public double getTickLength()
                     throws java.io.IOException,
                            AutomationException
The length of the major ticks in points.

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

setTickLength

public void setTickLength(double lengthPoints)
                   throws java.io.IOException,
                          AutomationException
The length of the major ticks in points.

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

getSubTickCount

public short getSubTickCount()
                      throws java.io.IOException,
                             AutomationException
The number of subticks to draw between the major ticks.

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

setSubTickCount

public void setSubTickCount(short count)
                     throws java.io.IOException,
                            AutomationException
The number of subticks to draw between the major ticks.

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

getSubTickLineSymbol

public ILineSymbol getSubTickLineSymbol()
                                 throws java.io.IOException,
                                        AutomationException
The symbol used to draw the subtick lines.

Specified by:
getSubTickLineSymbol in interface IMapGrid
Returns:
A reference to a com.esri.arcgis.display.ILineSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSubTickLineSymbol

public void setSubTickLineSymbol(ILineSymbol symbol)
                          throws java.io.IOException,
                                 AutomationException
The symbol used to draw the subtick lines.

Specified by:
setSubTickLineSymbol in interface IMapGrid
Parameters:
symbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSubTickLength

public double getSubTickLength()
                        throws java.io.IOException,
                               AutomationException
The length of the subticks in points.

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

setSubTickLength

public void setSubTickLength(double lengthPoints)
                      throws java.io.IOException,
                             AutomationException
The length of the subticks in points.

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

getBorder

public IMapGridBorder getBorder()
                         throws java.io.IOException,
                                AutomationException
The map grid border.

Specified by:
getBorder in interface IMapGrid
Returns:
A reference to a com.esri.arcgis.carto.IMapGridBorder
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBorder

public void setBorder(IMapGridBorder gridBorder)
               throws java.io.IOException,
                      AutomationException
The map grid border.

Specified by:
setBorder in interface IMapGrid
Parameters:
gridBorder - A reference to a com.esri.arcgis.carto.IMapGridBorder (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isVisible

public boolean isVisible()
                  throws java.io.IOException,
                         AutomationException
Indicates if the map grid is visible.

Specified by:
isVisible in interface IMapGrid
Specified by:
isVisible in interface IReferenceSystem
Returns:
The visible
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVisible

public void setVisible(boolean visible)
                throws java.io.IOException,
                       AutomationException
Indicates if the map grid is visible.

Specified by:
setVisible in interface IMapGrid
Specified by:
setVisible in interface IReferenceSystem
Parameters:
visible - The visible (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryLabelVisibility

public void queryLabelVisibility(boolean[] leftVis,
                                 boolean[] topVis,
                                 boolean[] rightVis,
                                 boolean[] bottomVis)
                          throws java.io.IOException,
                                 AutomationException
Returns the visibility of the labels along all four sides of the map grid.

Specified by:
queryLabelVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in/out: use single element array)
topVis - The topVis (in/out: use single element array)
rightVis - The rightVis (in/out: use single element array)
bottomVis - The bottomVis (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLabelVisibility

public void setLabelVisibility(boolean leftVis,
                               boolean topVis,
                               boolean rightVis,
                               boolean bottomVis)
                        throws java.io.IOException,
                               AutomationException
Sets the visibility of the labels along all four sides of the map grid.

Specified by:
setLabelVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in)
topVis - The topVis (in)
rightVis - The rightVis (in)
bottomVis - The bottomVis (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTickVisibility

public void queryTickVisibility(boolean[] leftVis,
                                boolean[] topVis,
                                boolean[] rightVis,
                                boolean[] bottomVis)
                         throws java.io.IOException,
                                AutomationException
Returns the visibility of the ticks along all four sides of the map grid.

Specified by:
queryTickVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in/out: use single element array)
topVis - The topVis (in/out: use single element array)
rightVis - The rightVis (in/out: use single element array)
bottomVis - The bottomVis (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTickVisibility

public void setTickVisibility(boolean leftVis,
                              boolean topVis,
                              boolean rightVis,
                              boolean bottomVis)
                       throws java.io.IOException,
                              AutomationException
Sets the visibility of the ticks along all four sides of the map grid.

Specified by:
setTickVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in)
topVis - The topVis (in)
rightVis - The rightVis (in)
bottomVis - The bottomVis (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

querySubTickVisibility

public void querySubTickVisibility(boolean[] leftVis,
                                   boolean[] topVis,
                                   boolean[] rightVis,
                                   boolean[] bottomVis)
                            throws java.io.IOException,
                                   AutomationException
Returns the visibility of the subticks along all four sides of the map grid.

Specified by:
querySubTickVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in/out: use single element array)
topVis - The topVis (in/out: use single element array)
rightVis - The rightVis (in/out: use single element array)
bottomVis - The bottomVis (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSubTickVisibility

public void setSubTickVisibility(boolean leftVis,
                                 boolean topVis,
                                 boolean rightVis,
                                 boolean bottomVis)
                          throws java.io.IOException,
                                 AutomationException
Sets the visibility of the subticks along all four sides of the map grid.

Specified by:
setSubTickVisibility in interface IMapGrid
Parameters:
leftVis - The leftVis (in)
topVis - The topVis (in)
rightVis - The rightVis (in)
bottomVis - The bottomVis (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDefaults

public void setDefaults(IMapFrame pMapFrame)
                 throws java.io.IOException,
                        AutomationException
Sets the properties of the map grid to default values.

Specified by:
setDefaults in interface IMapGrid
Specified by:
setDefaults in interface IReferenceSystem
Parameters:
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generateGraphics

public void generateGraphics(IMapFrame pMapFrame,
                             IGraphicsContainer graphicsContainer)
                      throws java.io.IOException,
                             AutomationException
Generates graphic elements corresponding to the grid lines and stores them in the specified graphics container.

Specified by:
generateGraphics in interface IMapGrid
Specified by:
generateGraphics in interface IReferenceSystem
Parameters:
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
graphicsContainer - A reference to a com.esri.arcgis.carto.IGraphicsContainer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

prepareForOutput

public void prepareForOutput(int hDC,
                             int dpi,
                             tagRECT pixelBounds,
                             IMapFrame pMapFrame)
                      throws java.io.IOException,
                             AutomationException
Prepares the map grid for output to a device.

Specified by:
prepareForOutput in interface IMapGrid
Specified by:
prepareForOutput in interface IReferenceSystem
Parameters:
hDC - The hDC (A COM typedef) (in)
dpi - The dpi (in)
pixelBounds - A Structure: com.esri.arcgis.system.tagRECT (in)
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

draw

public void draw(IDisplay display,
                 IMapFrame pMapFrame)
          throws java.io.IOException,
                 AutomationException
Draws the map grid for a map frame to the given display.

Specified by:
draw in interface IMapGrid
Specified by:
draw in interface IReferenceSystem
Parameters:
display - A reference to a com.esri.arcgis.display.IDisplay (in)
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExteriorWidth

public double getExteriorWidth(IDisplay pDisplay,
                               IMapFrame pMapFrame)
                        throws java.io.IOException,
                               AutomationException
The width (in display units) of the portion of the grid that is outside of the frame.

Specified by:
getExteriorWidth in interface IMapGrid
Parameters:
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
Returns:
The pWidth
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getXOrigin

public double getXOrigin()
                  throws java.io.IOException,
                         AutomationException
The origin of the grid on the X axis.

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

setXOrigin

public void setXOrigin(double origin)
                throws java.io.IOException,
                       AutomationException
The origin of the grid on the X axis.

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

getXIntervalSize

public double getXIntervalSize()
                        throws java.io.IOException,
                               AutomationException
The interval between grid lines along the X axis.

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

setXIntervalSize

public void setXIntervalSize(double interval)
                      throws java.io.IOException,
                             AutomationException
The interval between grid lines along the X axis.

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

getYOrigin

public double getYOrigin()
                  throws java.io.IOException,
                         AutomationException
The origin of the grid on the Y axis.

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

setYOrigin

public void setYOrigin(double origin)
                throws java.io.IOException,
                       AutomationException
The origin of the grid on the Y axis.

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

getYIntervalSize

public double getYIntervalSize()
                        throws java.io.IOException,
                               AutomationException
The interval between grid lines along the Y axis.

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

setYIntervalSize

public void setYIntervalSize(double interval)
                      throws java.io.IOException,
                             AutomationException
The interval between grid lines along the Y axis.

Specified by:
setYIntervalSize in interface IMeasuredGrid
Parameters:
interval - The interval (in)
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
The units for the intervals and origin.

Specified by:
getUnits in interface IMeasuredGrid
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
The units for the intervals and origin.

Specified by:
setUnits in interface IMeasuredGrid
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.

isFixedOrigin

public boolean isFixedOrigin()
                      throws java.io.IOException,
                             AutomationException
Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false).

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

setFixedOrigin

public void setFixedOrigin(boolean fixed)
                    throws java.io.IOException,
                           AutomationException
Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false).

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

getHatchIntervalX

public double getHatchIntervalX()
                         throws java.io.IOException,
                                AutomationException
The interval (in grid units) along the X axis for the grid hatches.

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

setHatchIntervalX

public void setHatchIntervalX(double interval)
                       throws java.io.IOException,
                              AutomationException
The interval (in grid units) along the X axis for the grid hatches.

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

getHatchIntervalY

public double getHatchIntervalY()
                         throws java.io.IOException,
                                AutomationException
The interval (in grid units) along the Y axis for the grid hatches.

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

setHatchIntervalY

public void setHatchIntervalY(double interval)
                       throws java.io.IOException,
                              AutomationException
The interval (in grid units) along the Y axis for the grid hatches.

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

getHatchLineSymbol

public ILineSymbol getHatchLineSymbol()
                               throws java.io.IOException,
                                      AutomationException
The line symbol used to draw the grid hatches.

Specified by:
getHatchLineSymbol in interface IGridHatch
Returns:
A reference to a com.esri.arcgis.display.ILineSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHatchLineSymbol

public void setHatchLineSymbol(ILineSymbol symbol)
                        throws java.io.IOException,
                               AutomationException
The line symbol used to draw the grid hatches.

Specified by:
setHatchLineSymbol in interface IGridHatch
Parameters:
symbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHatchMarkerSymbol

public IMarkerSymbol getHatchMarkerSymbol()
                                   throws java.io.IOException,
                                          AutomationException
The marker symbol used to draw markers at grid hatch locations.

Specified by:
getHatchMarkerSymbol in interface IGridHatch
Returns:
A reference to a com.esri.arcgis.display.IMarkerSymbol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHatchMarkerSymbol

public void setHatchMarkerSymbol(IMarkerSymbol symbol)
                          throws java.io.IOException,
                                 AutomationException
The marker symbol used to draw markers at grid hatch locations.

Specified by:
setHatchMarkerSymbol in interface IGridHatch
Parameters:
symbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHatchLength

public double getHatchLength()
                      throws java.io.IOException,
                             AutomationException
The length (in points) of the grid hatches.

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

setHatchLength

public void setHatchLength(double length)
                    throws java.io.IOException,
                           AutomationException
The length (in points) of the grid hatches.

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

isHatchDirectional

public boolean isHatchDirectional()
                           throws java.io.IOException,
                                  AutomationException
Indicates if the direction of the hatches is from the prime meridian and equator. False if the hatch mark should straddle the grid line.

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

setHatchDirectional

public void setHatchDirectional(boolean isDirectional)
                         throws java.io.IOException,
                                AutomationException
Indicates if the direction of the hatches is from the prime meridian and equator. False if the hatch mark should straddle the grid line.

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

isShowInteriorLabels

public boolean isShowInteriorLabels()
                             throws java.io.IOException,
                                    AutomationException
Indicates if interior labels should be displayed.

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

setShowInteriorLabels

public void setShowInteriorLabels(boolean show)
                           throws java.io.IOException,
                                  AutomationException
Indicates if interior labels should be displayed.

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

getInteriorLabelIntervalX

public double getInteriorLabelIntervalX()
                                 throws java.io.IOException,
                                        AutomationException
The interval along the X axis between interior labels.

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

setInteriorLabelIntervalX

public void setInteriorLabelIntervalX(double interval)
                               throws java.io.IOException,
                                      AutomationException
The interval along the X axis between interior labels.

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

getInteriorLabelIntervalY

public double getInteriorLabelIntervalY()
                                 throws java.io.IOException,
                                        AutomationException
The interval along the Y axis between interior labels.

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

setInteriorLabelIntervalY

public void setInteriorLabelIntervalY(double interval)
                               throws java.io.IOException,
                                      AutomationException
The interval along the Y axis between interior labels.

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

getAxisTickOffset

public double getAxisTickOffset()
                         throws java.io.IOException,
                                AutomationException
The offset (in points) for ticks that fall along the axes.

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

setAxisTickOffset

public void setAxisTickOffset(double offsetPts)
                       throws java.io.IOException,
                              AutomationException
The offset (in points) for ticks that fall along the axes.

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

isDirty

public void isDirty()
             throws java.io.IOException,
                    AutomationException
isDirty

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

load

public void load(IStream pstm)
          throws java.io.IOException,
                 AutomationException
load

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws java.io.IOException,
                 AutomationException
save

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws java.io.IOException,
                       AutomationException
getSizeMax

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassID

public void getClassID(GUID[] pClassID)
                throws java.io.IOException,
                       AutomationException
getClassID

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_clone

public IClone esri_clone()
                  throws java.io.IOException,
                         AutomationException
Clones the receiver and assigns the result to *clone.

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

assign

public void assign(IClone src)
            throws java.io.IOException,
                   AutomationException
Assigns the properties of src to the receiver.

Specified by:
assign in interface IClone
Parameters:
src - A reference to a com.esri.arcgis.system.IClone (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEqual

public boolean isEqual(IClone other)
                throws java.io.IOException,
                       AutomationException
Indicates if the receiver and other have the same properties.

Specified by:
isEqual in interface IClone
Parameters:
other - A reference to a com.esri.arcgis.system.IClone (in)
Returns:
The equal
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isIdentical

public boolean isIdentical(IClone other)
                    throws java.io.IOException,
                           AutomationException
Indicates if the receiver and other are the same object.

Specified by:
isIdentical in interface IClone
Parameters:
other - A reference to a com.esri.arcgis.system.IClone (in)
Returns:
The identical
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGraphics

public IEnumElement getGraphics(IDisplay display,
                                java.lang.Object data)
                         throws java.io.IOException,
                                AutomationException
Graphic elements that are used to render this object. The data argument is defined by the coclass that implements this interface.

Specified by:
getGraphics in interface IGraphicsComposite
Parameters:
display - A reference to a com.esri.arcgis.display.IDisplay (in)
data - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.carto.IEnumElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryBounds

public void queryBounds(IDisplay pDisplay,
                        IMapFrame pMapFrame,
                        IEnvelope bounds)
                 throws java.io.IOException,
                        AutomationException
The extent of the reference system in page space.

Specified by:
queryBounds in interface IReferenceSystem
Parameters:
pDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)
pMapFrame - A reference to a com.esri.arcgis.carto.IMapFrame (in)
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.

boundsChanged

public void boundsChanged()
                   throws java.io.IOException,
                          AutomationException
Called when the extent of the parent map frame changes.

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

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException