|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.CustomOverlayGrid
public class CustomOverlayGrid
A custom map grid.
Constructor Summary | |
---|---|
CustomOverlayGrid()
Constructs a CustomOverlayGrid using ArcGIS Engine. |
|
CustomOverlayGrid(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CustomOverlayGrid theCustomOverlayGrid = (CustomOverlayGrid) obj; |
Method Summary | |
---|---|
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(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. |
IMapGridBorder |
getBorder()
The map grid border. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IFeatureClass |
getDataSource()
The data source containing the grid cells. |
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,
Object data)
Graphic elements that are used to render this object. |
String |
getLabelField()
The name of the field used to label the grid. |
IGridLabel |
getLabelFormat()
The label format for map grid labels. |
ILineSymbol |
getLineSymbol()
The symbol used to draw grid lines - null will draw no lines. |
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 |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
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(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setBorder(IMapGridBorder gridBorder)
The map grid border. |
void |
setDataSource(IFeatureClass featureClass)
The data source containing the grid cells. |
void |
setDefaults(IMapFrame pMapFrame)
Sets the properties of the map grid to default values. |
void |
setLabelField(String fieldName)
The name of the field used to label the grid. |
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(String gridName)
The name of the map grid. |
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 |
setVisible(boolean visible)
Indicates if the map grid is visible. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public CustomOverlayGrid() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic CustomOverlayGrid(Object obj) throws IOException
CustomOverlayGrid theCustomOverlayGrid = (CustomOverlayGrid) obj;
obj
to CustomOverlayGrid
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IFeatureClass getDataSource() throws IOException, AutomationException
getDataSource
in interface ICustomOverlayGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDataSource(IFeatureClass featureClass) throws IOException, AutomationException
setDataSource
in interface ICustomOverlayGrid
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLabelField() throws IOException, AutomationException
getLabelField
in interface ICustomOverlayGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelField(String fieldName) throws IOException, AutomationException
setLabelField
in interface ICustomOverlayGrid
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
Name is the name of the grid as it appears in the dataframe properties.
getName
in interface IMapGrid
getName
in interface IReferenceSystem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String gridName) throws IOException, AutomationException
setName
in interface IMapGrid
setName
in interface IReferenceSystem
gridName
- The gridName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILineSymbol getLineSymbol() throws IOException, AutomationException
LineSymbol is the line symbol that will be used to draw the grid lines.
getLineSymbol
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
setLineSymbol
in interface IMapGrid
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMarkerSymbol getTickMarkSymbol() throws IOException, AutomationException
TickMarkSymbol is the marker symbol that may be drawn at the intersection of grid lines.
getTickMarkSymbol
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTickMarkSymbol(IMarkerSymbol symbol) throws IOException, AutomationException
setTickMarkSymbol
in interface IMapGrid
symbol
- A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGridLabel getLabelFormat() throws IOException, AutomationException
LabelFormat is the label format for the grid labels. This is an IGridLabel, which is the generic interface that supports all the other specific types of grid labels, which in turn support the various number formats.
getLabelFormat
in interface IMapGrid
getLabelFormat
in interface IReferenceSystem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelFormat(IGridLabel format) throws IOException, AutomationException
setLabelFormat
in interface IMapGrid
setLabelFormat
in interface IReferenceSystem
format
- A reference to a com.esri.arcgis.carto.IGridLabel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILineSymbol getTickLineSymbol() throws IOException, AutomationException
TickLineSymbol is the line symbol that will be used to draw the major tick marks that are drawn just inside of or just outside of the Border.
getTickLineSymbol
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTickLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
setTickLineSymbol
in interface IMapGrid
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getTickLength() throws IOException, AutomationException
TickLength is the length of the line symbol in points (approx. 1/72 inch) that will be used to draw the major tick marks that are drawn just inside of or just outside of the Border.
getTickLength
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTickLength(double lengthPoints) throws IOException, AutomationException
setTickLength
in interface IMapGrid
lengthPoints
- The lengthPoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getSubTickCount() throws IOException, AutomationException
SubTickCount is the number of subticks that will be displayed between the TickLineSymbols. Or, if you optionally use an ICalibratedMapBorder it is the number of times the fill symbol of the calibrated border changes. To use subtick marks, use an ISimpleMapBorder.
getSubTickCount
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSubTickCount(short count) throws IOException, AutomationException
setSubTickCount
in interface IMapGrid
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILineSymbol getSubTickLineSymbol() throws IOException, AutomationException
SubTickLineSymbol is the line symbol used to draw subticks.
getSubTickLineSymbol
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSubTickLineSymbol(ILineSymbol symbol) throws IOException, AutomationException
setSubTickLineSymbol
in interface IMapGrid
symbol
- A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getSubTickLength() throws IOException, AutomationException
SubTickLength is the length of the subtick marks in points (approx. 1/72 inch).
getSubTickLength
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSubTickLength(double lengthPoints) throws IOException, AutomationException
setSubTickLength
in interface IMapGrid
lengthPoints
- The lengthPoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMapGridBorder getBorder() throws IOException, AutomationException
Border is the border that will be drawn around the map. Note that your LabelOffset will need to accomodate your border's width. There are two types of borders: ICalibratedMapBorder and ISimpleMapBorder.
getBorder
in interface IMapGrid
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBorder(IMapGridBorder gridBorder) throws IOException, AutomationException
setBorder
in interface IMapGrid
gridBorder
- A reference to a com.esri.arcgis.carto.IMapGridBorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isVisible() throws IOException, AutomationException
Visible is whether the MapGrid will be drawn.
isVisible
in interface IMapGrid
isVisible
in interface IReferenceSystem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVisible(boolean visible) throws IOException, AutomationException
setVisible
in interface IMapGrid
setVisible
in interface IReferenceSystem
visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryLabelVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QueryLabelVisibility is whether the labels on each of the sides of the map grid will be drawn.
queryLabelVisibility
in interface IMapGrid
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetLabelVisibility sets whether the labels on each of the sides of the map grid will be drawn.
setLabelVisibility
in interface IMapGrid
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QueryTickVisibility is whether the ticks on each side of the map grid will be drawn.
queryTickVisibility
in interface IMapGrid
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetTickVisibility sets whether the ticks on each side of the map grid will be drawn.
setTickVisibility
in interface IMapGrid
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void querySubTickVisibility(boolean[] leftVis, boolean[] topVis, boolean[] rightVis, boolean[] bottomVis) throws IOException, AutomationException
QuerySubTickVisibility is whether the subticks on each side of the map grid will be drawn.
querySubTickVisibility
in interface IMapGrid
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSubTickVisibility(boolean leftVis, boolean topVis, boolean rightVis, boolean bottomVis) throws IOException, AutomationException
SetSubTickVisibility sets whether the subticks on each side of the map grid will be drawn.
setSubTickVisibility
in interface IMapGrid
leftVis
- The leftVis (in)topVis
- The topVis (in)rightVis
- The rightVis (in)bottomVis
- The bottomVis (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaults(IMapFrame pMapFrame) throws IOException, AutomationException
setDefaults
in interface IMapGrid
setDefaults
in interface IReferenceSystem
pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void generateGraphics(IMapFrame pMapFrame, IGraphicsContainer graphicsContainer) throws IOException, AutomationException
generateGraphics
in interface IMapGrid
generateGraphics
in interface IReferenceSystem
pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)graphicsContainer
- A reference to a com.esri.arcgis.carto.IGraphicsContainer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void prepareForOutput(int hDC, int dpi, tagRECT pixelBounds, IMapFrame pMapFrame) throws IOException, AutomationException
prepareForOutput
in interface IMapGrid
prepareForOutput
in interface IReferenceSystem
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void draw(IDisplay display, IMapFrame pMapFrame) throws IOException, AutomationException
draw
in interface IMapGrid
draw
in interface IReferenceSystem
display
- A reference to a com.esri.arcgis.display.IDisplay (in)pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getExteriorWidth(IDisplay pDisplay, IMapFrame pMapFrame) throws IOException, AutomationException
getExteriorWidth
in interface IMapGrid
pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pMapFrame
- A reference to a com.esri.arcgis.carto.IMapFrame (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumElement getGraphics(IDisplay display, Object data) throws IOException, AutomationException
getGraphics
in interface IGraphicsComposite
display
- A reference to a com.esri.arcgis.display.IDisplay (in)data
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryBounds(IDisplay pDisplay, IMapFrame pMapFrame, IEnvelope bounds) throws IOException, AutomationException
queryBounds
in interface IReferenceSystem
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void boundsChanged() throws IOException, AutomationException
boundsChanged
in interface IReferenceSystem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |