|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.systemUI.SystemFont
public class SystemFont
A font object encapsulating Windows font object.
The SystemFont object is used when developing with the Java and C++ API and is a wrapper around the Microsoft Font CoClass.
The SystemFont interface implements the following methods:
Name | Description | |
---|---|---|
get_Name | Gets the name of the font family. | |
put_Name | Sets a new name for the font family. | |
get_Size | Gets the point size for the font. | |
put_Size | Sets the point size for the font. | |
get_Bold | Indicates whether the font is bold or not. | |
put_Bold | Sets the boldness property for the font. | |
get_Italic | Indicates whether the font is italic or not. | |
put_Italic | Sets the italic property for the font. | |
get_Underline | Indicates whether the font is underlined or not. | |
put_Underline | Sets the underline property for the font. | |
get_Strikethrough | Indicates whether the font is strikethrough or not. | |
put_Strikethrough | Sets the strikethrough property for the font. | |
get_Weight | Gets the weight (boldness) for the font. | |
put_Weight | Sets the weight (boldness) for the font. | |
get_Charset | Gets the font's character set. | |
put_Charset | Sets the font's character set. | |
Returns a Windows HFONT handle for the font described by this font object. |
||
Creates a duplicate font object with a state identical to the current font. |
||
IsEqual | Compares this font object to another for equality. | |
Converts the scaling factor for this font between logical units and HIMETRIC units (in which is expressed the point size in the Size property). |
||
Notifies the font object that the previously realized font identified with hFont (from ISystemFont::GetHfont) should remain valid until ISystemFont::ReleaseHfont is called or the font object itself is released. |
||
Notifies the font object that the caller that previously locked this font in the cache with ISystemFont::AddRefHfont no longer requires the lock. |
||
QueryTextMetrics | Fills a TEXTMETRIC structure describing the font. | |
Provides a device context handle to the font that describes the logical mapping mode. |
Constructor Summary | |
---|---|
SystemFont()
Constructs a SystemFont using ArcGIS Engine. |
|
SystemFont(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SystemFont theSystemFont = (SystemFont) obj; |
Method Summary | |
---|---|
void |
addRefHfont(int hFont)
addRefHfont |
boolean |
equals(Object o)
Compare this object with another |
void |
esri_clone(IFont[] ppfont)
esri_clone |
boolean |
getBold()
getBold |
short |
getCharset()
getCharset |
static String |
getClsid()
getClsid. |
int |
getHFont()
getHFont |
boolean |
getItalic()
getItalic |
String |
getName()
getName |
long |
getSize()
getSize |
boolean |
getStrikethrough()
getStrikethrough |
boolean |
getUnderline()
getUnderline |
short |
getWeight()
getWeight |
int |
hashCode()
the hashcode for this object |
boolean |
isBold()
isBold |
void |
isEqual(IFont pfontOther)
isEqual |
boolean |
isItalic()
isItalic |
boolean |
isStrikethrough()
isStrikethrough |
boolean |
isUnderline()
isUnderline |
void |
releaseHfont(int hFont)
releaseHfont |
void |
setBold(boolean rhs)
setBold |
void |
setCharset(short rhs)
setCharset |
void |
setItalic(boolean rhs)
setItalic |
void |
setName(String rhs)
setName |
void |
setRatio(int cyLogical,
int cyHimetric)
setRatio |
void |
setSize(long rhs)
setSize |
void |
setStrikethrough(boolean rhs)
setStrikethrough |
void |
setUnderline(boolean rhs)
setUnderline |
void |
setWeight(short rhs)
setWeight |
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 SystemFont() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SystemFont(Object obj) throws IOException
SystemFont theSystemFont = (SystemFont) obj;
obj
to SystemFont
.
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 getName() throws IOException, AutomationException
getName
in interface Font
getName
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String rhs) throws IOException, AutomationException
setName
in interface Font
setName
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public long getSize() throws IOException, AutomationException
getSize
in interface Font
getSize
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSize(long rhs) throws IOException, AutomationException
setSize
in interface Font
setSize
in interface IFont
rhs
- Automation Currency type )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getBold() throws IOException, AutomationException
getBold
in interface Font
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBold(boolean rhs) throws IOException, AutomationException
setBold
in interface Font
setBold
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getItalic() throws IOException, AutomationException
getItalic
in interface Font
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setItalic(boolean rhs) throws IOException, AutomationException
setItalic
in interface Font
setItalic
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getUnderline() throws IOException, AutomationException
getUnderline
in interface Font
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUnderline(boolean rhs) throws IOException, AutomationException
setUnderline
in interface Font
setUnderline
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean getStrikethrough() throws IOException, AutomationException
getStrikethrough
in interface Font
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStrikethrough(boolean rhs) throws IOException, AutomationException
setStrikethrough
in interface Font
setStrikethrough
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getWeight() throws IOException, AutomationException
getWeight
in interface Font
getWeight
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWeight(short rhs) throws IOException, AutomationException
setWeight
in interface Font
setWeight
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getCharset() throws IOException, AutomationException
getCharset
in interface Font
getCharset
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCharset(short rhs) throws IOException, AutomationException
setCharset
in interface Font
setCharset
in interface IFont
rhs
- The rhs )
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBold() throws IOException, AutomationException
isBold
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isItalic() throws IOException, AutomationException
isItalic
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUnderline() throws IOException, AutomationException
isUnderline
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStrikethrough() throws IOException, AutomationException
isStrikethrough
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHFont() throws IOException, AutomationException
getHFont
in interface IFont
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void esri_clone(IFont[] ppfont) throws IOException, AutomationException
esri_clone
in interface IFont
ppfont
- A reference to a com.esri.arcgis.support.ms.stdole.IFont (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isEqual(IFont pfontOther) throws IOException, AutomationException
isEqual
in interface IFont
pfontOther
- A reference to a com.esri.arcgis.support.ms.stdole.IFont (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRatio(int cyLogical, int cyHimetric) throws IOException, AutomationException
setRatio
in interface IFont
cyLogical
- The cyLogical (in)cyHimetric
- The cyHimetric (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addRefHfont(int hFont) throws IOException, AutomationException
addRefHfont
in interface IFont
hFont
- The hFont (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void releaseHfont(int hFont) throws IOException, AutomationException
releaseHfont
in interface IFont
hFont
- The hFont (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |