|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.DMSGridLabel
public class DMSGridLabel
A grid label in degrees, minutes and seconds.
| Constructor Summary | |
|---|---|
DMSGridLabel()
Constructs a DMSGridLabel using ArcGIS Engine. |
|
DMSGridLabel(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DMSGridLabel theDMSGridLabel = (DMSGridLabel) obj; |
|
| Method Summary | |
|---|---|
IElement |
createElement(double labelValue,
IPoint location,
int axis,
IDisplay display)
Creates a graphic element for a label on the specified grid axis. |
void |
draw(double labelValue,
IPoint location,
int axis,
IDisplay display)
Draws a label on the specified grid axis. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
IColor |
getColor()
The color of the grid label. |
String |
getDisplayName()
The display name for the type of grid label. |
Object |
getEditObject()
The interface to an object that can be edited with a property sheet. |
Font |
getFont()
The font used by the grid label. |
double |
getFontSize()
The font size used by the grid label. |
double |
getLabelOffset()
The offset of the grid label from the border in points. |
int |
getLabelType()
The type of the DMS grid label. |
ILatLonFormat |
getLatLonFormat()
The format with which the latitudes and longitudes are displayed. |
IColor |
getMinutesColor()
The color used to display the minutes. |
Font |
getMinutesFont()
The font used to display the minutes. |
double |
getMinutesFontSize()
The font size used to display the minutes. |
IColor |
getSecondsColor()
The color used to display the seconds. |
Font |
getSecondsFont()
The font used to display the seconds. |
double |
getSecondsFontSize()
The font size used to display the seconds. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
boolean |
isAbbreviateLabels()
Indicates if the DMS labels should be abbreviated when the value is not a whole degree. |
boolean |
isApplies(IMapGrid grid)
Indicates if this grid label can be used with the specified map grid. |
void |
isDirty()
isDirty |
boolean |
isLabelAlignment(int axis)
Indicates if the grid label is horizontal (true) or vertical (false) on the specified axis. |
boolean |
isShowMinusSign()
Indicates if the DMS labels should show the minus sign (if format is not showing direction). |
boolean |
isShowZeroMinutes()
Indicates if zero minutes are shown. |
boolean |
isShowZeroSeconds()
Indicates if zero seconds are shown. |
void |
load(IStream pstm)
load |
void |
preview(int hDC,
tagRECT rectangle)
Draws a preview of the grid label into the specified hdc. |
void |
queryTextExtent(double labelValue,
IPoint location,
int axis,
IDisplay display,
IEnvelope extent)
Determines the extent of a label's text on the specified grid axis. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setAbbreviateLabels(boolean abbrev)
Indicates if the DMS labels should be abbreviated when the value is not a whole degree. |
void |
setColor(IColor color)
The color of the grid label. |
void |
setEditObject(Object ppObject)
The interface to an object that can be edited with a property sheet. |
void |
setFont(Font font)
The font used by the grid label. |
void |
setFontSize(double size)
The font size used by the grid label. |
void |
setLabelAlignment(int axis,
boolean horizontal)
Indicates if the grid label is horizontal (true) or vertical (false) on the specified axis. |
void |
setLabelOffset(double offsetPoints)
The offset of the grid label from the border in points. |
void |
setLabelType(int labelType)
The type of the DMS grid label. |
void |
setLatLonFormat(ILatLonFormat format)
The format with which the latitudes and longitudes are displayed. |
void |
setMinutesColor(IColor color)
The color used to display the minutes. |
void |
setMinutesFont(Font font)
The font used to display the minutes. |
void |
setMinutesFontSize(double size)
The font size used to display the minutes. |
void |
setSecondsColor(IColor color)
The color used to display the seconds. |
void |
setSecondsFont(Font font)
The font used to display the seconds. |
void |
setSecondsFontSize(double size)
The font size used to display the seconds. |
void |
setShowMinusSign(boolean showMinus)
Indicates if the DMS labels should show the minus sign (if format is not showing direction). |
void |
setShowZeroMinutes(boolean show)
Indicates if zero minutes are shown. |
void |
setShowZeroSeconds(boolean show)
Indicates if zero seconds are shown. |
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 DMSGridLabel()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public DMSGridLabel(Object obj)
throws IOException
DMSGridLabel theDMSGridLabel = (DMSGridLabel) obj;
obj to DMSGridLabel.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getDisplayName()
throws IOException,
AutomationException
getDisplayName in interface IGridLabelgetDisplayName in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isApplies(IMapGrid grid)
throws IOException,
AutomationException
isApplies in interface IGridLabelisApplies in interface IGridLabel2grid - A reference to a com.esri.arcgis.carto.IMapGrid (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEditObject()
throws IOException,
AutomationException
getEditObject in interface IGridLabelgetEditObject in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEditObject(Object ppObject)
throws IOException,
AutomationException
setEditObject in interface IGridLabelsetEditObject in interface IGridLabel2ppObject - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Font getFont()
throws IOException,
AutomationException
getFont in interface IGridLabelgetFont in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFont(Font font)
throws IOException,
AutomationException
setFont in interface IGridLabelsetFont in interface IGridLabel2font - A reference to a com.esri.arcgis.support.ms.stdole.Font (A com.esri.arcgis.support.ms.stdole.Font COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getColor()
throws IOException,
AutomationException
getColor in interface IGridLabelgetColor in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setColor(IColor color)
throws IOException,
AutomationException
setColor in interface IGridLabelsetColor in interface IGridLabel2color - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getLabelOffset()
throws IOException,
AutomationException
getLabelOffset in interface IGridLabelgetLabelOffset in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLabelOffset(double offsetPoints)
throws IOException,
AutomationException
setLabelOffset in interface IGridLabelsetLabelOffset in interface IGridLabel2offsetPoints - The offsetPoints (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLabelAlignment(int axis)
throws IOException,
AutomationException
isLabelAlignment in interface IGridLabelisLabelAlignment in interface IGridLabel2axis - A com.esri.arcgis.carto.esriGridAxisEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLabelAlignment(int axis,
boolean horizontal)
throws IOException,
AutomationException
setLabelAlignment in interface IGridLabelsetLabelAlignment in interface IGridLabel2axis - A com.esri.arcgis.carto.esriGridAxisEnum constant (in)horizontal - The horizontal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryTextExtent(double labelValue,
IPoint location,
int axis,
IDisplay display,
IEnvelope extent)
throws IOException,
AutomationException
queryTextExtent in interface IGridLabelqueryTextExtent in interface IGridLabel2labelValue - The labelValue (in)location - A reference to a com.esri.arcgis.geometry.IPoint (in)axis - A com.esri.arcgis.carto.esriGridAxisEnum constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)extent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(double labelValue,
IPoint location,
int axis,
IDisplay display)
throws IOException,
AutomationException
draw in interface IGridLabeldraw in interface IGridLabel2labelValue - The labelValue (in)location - A reference to a com.esri.arcgis.geometry.IPoint (in)axis - A com.esri.arcgis.carto.esriGridAxisEnum constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void preview(int hDC,
tagRECT rectangle)
throws IOException,
AutomationException
preview in interface IGridLabelpreview in interface IGridLabel2hDC - The hDC (A COM typedef) (in)rectangle - A Structure: com.esri.arcgis.system.tagRECT (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLabelType()
throws IOException,
AutomationException
getLabelType in interface IDMSGridLabelgetLabelType in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ILatLonFormat2,
IDMSGridLabel.getLabelType(),
IDMSGridLabel,
esriDMSGridLabelType,
ILatLonFormat
public void setLabelType(int labelType)
throws IOException,
AutomationException
setLabelType in interface IDMSGridLabelsetLabelType in interface IDMSGridLabel3labelType - A com.esri.arcgis.carto.esriDMSGridLabelType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ILatLonFormat2,
IDMSGridLabel.getLabelType(),
IDMSGridLabel,
esriDMSGridLabelType,
ILatLonFormat
public ILatLonFormat getLatLonFormat()
throws IOException,
AutomationException
getLatLonFormat in interface IDMSGridLabelgetLatLonFormat in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLatLonFormat(ILatLonFormat format)
throws IOException,
AutomationException
setLatLonFormat in interface IDMSGridLabelsetLatLonFormat in interface IDMSGridLabel3format - A reference to a com.esri.arcgis.system.ILatLonFormat (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowZeroMinutes()
throws IOException,
AutomationException
isShowZeroMinutes in interface IDMSGridLabelisShowZeroMinutes in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowZeroMinutes(boolean show)
throws IOException,
AutomationException
setShowZeroMinutes in interface IDMSGridLabelsetShowZeroMinutes in interface IDMSGridLabel3show - The show (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowZeroSeconds()
throws IOException,
AutomationException
isShowZeroSeconds in interface IDMSGridLabelisShowZeroSeconds in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowZeroSeconds(boolean show)
throws IOException,
AutomationException
setShowZeroSeconds in interface IDMSGridLabelsetShowZeroSeconds in interface IDMSGridLabel3show - The show (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Font getMinutesFont()
throws IOException,
AutomationException
getMinutesFont in interface IDMSGridLabelgetMinutesFont in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMinutesFont(Font font)
throws IOException,
AutomationException
setMinutesFont in interface IDMSGridLabelsetMinutesFont in interface IDMSGridLabel3font - A reference to a com.esri.arcgis.support.ms.stdole.Font (A com.esri.arcgis.support.ms.stdole.Font COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getMinutesColor()
throws IOException,
AutomationException
getMinutesColor in interface IDMSGridLabelgetMinutesColor in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMinutesColor(IColor color)
throws IOException,
AutomationException
setMinutesColor in interface IDMSGridLabelsetMinutesColor in interface IDMSGridLabel3color - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Font getSecondsFont()
throws IOException,
AutomationException
getSecondsFont in interface IDMSGridLabelgetSecondsFont in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSecondsFont(Font font)
throws IOException,
AutomationException
setSecondsFont in interface IDMSGridLabelsetSecondsFont in interface IDMSGridLabel3font - A reference to a com.esri.arcgis.support.ms.stdole.Font (A com.esri.arcgis.support.ms.stdole.Font COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getSecondsColor()
throws IOException,
AutomationException
getSecondsColor in interface IDMSGridLabelgetSecondsColor in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSecondsColor(IColor color)
throws IOException,
AutomationException
setSecondsColor in interface IDMSGridLabelsetSecondsColor in interface IDMSGridLabel3color - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getFontSize()
throws IOException,
AutomationException
getFontSize in interface IGridLabel2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFontSize(double size)
throws IOException,
AutomationException
setFontSize in interface IGridLabel2size - The size (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAbbreviateLabels()
throws IOException,
AutomationException
isAbbreviateLabels in interface IDMSGridLabel2isAbbreviateLabels in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAbbreviateLabels(boolean abbrev)
throws IOException,
AutomationException
setAbbreviateLabels in interface IDMSGridLabel2setAbbreviateLabels in interface IDMSGridLabel3abbrev - The abbrev (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMinutesFontSize()
throws IOException,
AutomationException
getMinutesFontSize in interface IDMSGridLabel2getMinutesFontSize in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMinutesFontSize(double size)
throws IOException,
AutomationException
setMinutesFontSize in interface IDMSGridLabel2setMinutesFontSize in interface IDMSGridLabel3size - The size (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getSecondsFontSize()
throws IOException,
AutomationException
getSecondsFontSize in interface IDMSGridLabel2getSecondsFontSize in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSecondsFontSize(double size)
throws IOException,
AutomationException
setSecondsFontSize in interface IDMSGridLabel2setSecondsFontSize in interface IDMSGridLabel3size - The size (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowMinusSign()
throws IOException,
AutomationException
isShowMinusSign in interface IDMSGridLabel3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowMinusSign(boolean showMinus)
throws IOException,
AutomationException
setShowMinusSign in interface IDMSGridLabel3showMinus - The showMinus (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IElement createElement(double labelValue,
IPoint location,
int axis,
IDisplay display)
throws IOException,
AutomationException
createElement in interface IGridLabelExportlabelValue - The labelValue (in)location - A reference to a com.esri.arcgis.geometry.IPoint (in)axis - A com.esri.arcgis.carto.esriGridAxisEnum constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 IPersistpClassID - 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 void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||