|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MixedFontGridLabel
public class MixedFontGridLabel
A grid label that uses mixed fonts.
Constructor Summary | |
---|---|
MixedFontGridLabel()
Constructs a MixedFontGridLabel using ArcGIS Engine. |
|
MixedFontGridLabel(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MixedFontGridLabel theMixedFontGridLabel = (MixedFontGridLabel) 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. |
INumberFormat |
getFormat()
The format used to display the numbers in the grid label. |
double |
getLabelOffset()
The offset of the grid label from the border in points. |
short |
getNumGroupedDigits()
The number of digits that are displayed in the secondary font and color. |
IColor |
getSecondaryColor()
The color of the second group of digits. |
Font |
getSecondaryFont()
The font used for the second group of digits. |
double |
getSecondaryFontSize()
The font used for the second group of digits. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
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. |
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 |
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 |
setFormat(INumberFormat format)
The format used to display the numbers in 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 |
setNumGroupedDigits(short numGrouped)
The number of digits that are displayed in the secondary font and color. |
void |
setSecondaryColor(IColor color)
The color of the second group of digits. |
void |
setSecondaryFont(Font font)
The font used for the second group of digits. |
void |
setSecondaryFontSize(double size)
The font used for the second group of digits. |
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 MixedFontGridLabel() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MixedFontGridLabel(Object obj) throws IOException
MixedFontGridLabel theMixedFontGridLabel = (MixedFontGridLabel) obj;
obj
to MixedFontGridLabel
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getDisplayName() throws IOException, AutomationException
getDisplayName
in interface IGridLabel
getDisplayName
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isApplies(IMapGrid grid) throws IOException, AutomationException
isApplies
in interface IGridLabel
isApplies
in interface IGridLabel2
grid
- 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 IGridLabel
getEditObject
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEditObject(Object ppObject) throws IOException, AutomationException
setEditObject
in interface IGridLabel
setEditObject
in interface IGridLabel2
ppObject
- 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 IGridLabel
getFont
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFont(Font font) throws IOException, AutomationException
setFont
in interface IGridLabel
setFont
in interface IGridLabel2
font
- 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 IGridLabel
getColor
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setColor(IColor color) throws IOException, AutomationException
setColor
in interface IGridLabel
setColor
in interface IGridLabel2
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getLabelOffset() throws IOException, AutomationException
getLabelOffset
in interface IGridLabel
getLabelOffset
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLabelOffset(double offsetPoints) throws IOException, AutomationException
setLabelOffset
in interface IGridLabel
setLabelOffset
in interface IGridLabel2
offsetPoints
- 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 IGridLabel
isLabelAlignment
in interface IGridLabel2
axis
- 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 IGridLabel
setLabelAlignment
in interface IGridLabel2
axis
- 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 IGridLabel
queryTextExtent
in interface IGridLabel2
labelValue
- 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 IGridLabel
draw
in interface IGridLabel2
labelValue
- 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 IGridLabel
preview
in interface IGridLabel2
hDC
- 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 double getFontSize() throws IOException, AutomationException
getFontSize
in interface IGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFontSize(double size) throws IOException, AutomationException
setFontSize
in interface IGridLabel2
size
- The size (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INumberFormat getFormat() throws IOException, AutomationException
getFormat
in interface IFormattedGridLabel
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFormat(INumberFormat format) throws IOException, AutomationException
setFormat
in interface IFormattedGridLabel
format
- A reference to a com.esri.arcgis.system.INumberFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getNumGroupedDigits() throws IOException, AutomationException
NumGroupedDigits number of digits in the second group of numbers. Essentially start counting from the right and this is these are the digits in the second group.
Use -1 to switch fonts after the decimal point.
getNumGroupedDigits
in interface IMixedFontGridLabel
getNumGroupedDigits
in interface IMixedFontGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNumGroupedDigits(short numGrouped) throws IOException, AutomationException
setNumGroupedDigits
in interface IMixedFontGridLabel
setNumGroupedDigits
in interface IMixedFontGridLabel2
numGrouped
- The numGrouped (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Font getSecondaryFont() throws IOException, AutomationException
getSecondaryFont
in interface IMixedFontGridLabel
getSecondaryFont
in interface IMixedFontGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSecondaryFont(Font font) throws IOException, AutomationException
setSecondaryFont
in interface IMixedFontGridLabel
setSecondaryFont
in interface IMixedFontGridLabel2
font
- 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 getSecondaryColor() throws IOException, AutomationException
getSecondaryColor
in interface IMixedFontGridLabel
getSecondaryColor
in interface IMixedFontGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSecondaryColor(IColor color) throws IOException, AutomationException
setSecondaryColor
in interface IMixedFontGridLabel
setSecondaryColor
in interface IMixedFontGridLabel2
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getSecondaryFontSize() throws IOException, AutomationException
getSecondaryFontSize
in interface IMixedFontGridLabel2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSecondaryFontSize(double size) throws IOException, AutomationException
setSecondaryFontSize
in interface IMixedFontGridLabel2
size
- The size (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 IGridLabelExport
labelValue
- 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 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 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 |