com.esri.arcgis.support.ms.stdole
Class StdFont

java.lang.Object
  extended by com.esri.arcgis.support.ms.stdole.StdFont
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, Font, IFont, Serializable

public class StdFont
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, Font, IFont

See Also:
Serialized Form

Constructor Summary
StdFont()
          Constructs a StdFont using ArcGIS Engine.
StdFont(Object obj)
          Construct a StdFont using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void addFontEventsListener(FontEvents theListener)
          addFontEventsListener.
 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 removeFontEventsListener(FontEvents theListener)
          removeFontEventsListener.
 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

StdFont

public StdFont()
        throws IOException,
               UnknownHostException
Constructs a StdFont using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

StdFont

public StdFont(Object obj)
        throws IOException
Construct a StdFont using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to StdFont.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems StdFont theStdFont = (StdFont) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

addFontEventsListener

public void addFontEventsListener(FontEvents theListener)
                           throws IOException
addFontEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.support.ms.stdole.FontEvents interface.
Throws:
IOException - If there are communications problems.

removeFontEventsListener

public void removeFontEventsListener(FontEvents theListener)
                              throws IOException
removeFontEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.support.ms.stdole.FontEvents interface.
Throws:
IOException - If there are communications problems.

getName

public String getName()
               throws IOException,
                      AutomationException
getName

Specified by:
getName in interface Font
Specified by:
getName in interface IFont
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setName

public void setName(String rhs)
             throws IOException,
                    AutomationException
setName

Specified by:
setName in interface Font
Specified by:
setName in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSize

public long getSize()
             throws IOException,
                    AutomationException
getSize

Specified by:
getSize in interface Font
Specified by:
getSize in interface IFont
Returns:
Automation Currency type
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSize

public void setSize(long rhs)
             throws IOException,
                    AutomationException
setSize

Specified by:
setSize in interface Font
Specified by:
setSize in interface IFont
Parameters:
rhs - Automation Currency type )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBold

public boolean getBold()
                throws IOException,
                       AutomationException
getBold

Specified by:
getBold in interface Font
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBold

public void setBold(boolean rhs)
             throws IOException,
                    AutomationException
setBold

Specified by:
setBold in interface Font
Specified by:
setBold in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getItalic

public boolean getItalic()
                  throws IOException,
                         AutomationException
getItalic

Specified by:
getItalic in interface Font
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setItalic

public void setItalic(boolean rhs)
               throws IOException,
                      AutomationException
setItalic

Specified by:
setItalic in interface Font
Specified by:
setItalic in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUnderline

public boolean getUnderline()
                     throws IOException,
                            AutomationException
getUnderline

Specified by:
getUnderline in interface Font
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUnderline

public void setUnderline(boolean rhs)
                  throws IOException,
                         AutomationException
setUnderline

Specified by:
setUnderline in interface Font
Specified by:
setUnderline in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStrikethrough

public boolean getStrikethrough()
                         throws IOException,
                                AutomationException
getStrikethrough

Specified by:
getStrikethrough in interface Font
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStrikethrough

public void setStrikethrough(boolean rhs)
                      throws IOException,
                             AutomationException
setStrikethrough

Specified by:
setStrikethrough in interface Font
Specified by:
setStrikethrough in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWeight

public short getWeight()
                throws IOException,
                       AutomationException
getWeight

Specified by:
getWeight in interface Font
Specified by:
getWeight in interface IFont
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWeight

public void setWeight(short rhs)
               throws IOException,
                      AutomationException
setWeight

Specified by:
setWeight in interface Font
Specified by:
setWeight in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCharset

public short getCharset()
                 throws IOException,
                        AutomationException
getCharset

Specified by:
getCharset in interface Font
Specified by:
getCharset in interface IFont
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCharset

public void setCharset(short rhs)
                throws IOException,
                       AutomationException
setCharset

Specified by:
setCharset in interface Font
Specified by:
setCharset in interface IFont
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isBold

public boolean isBold()
               throws IOException,
                      AutomationException
isBold

Specified by:
isBold in interface IFont
Returns:
The pbold
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isItalic

public boolean isItalic()
                 throws IOException,
                        AutomationException
isItalic

Specified by:
isItalic in interface IFont
Returns:
The pitalic
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isUnderline

public boolean isUnderline()
                    throws IOException,
                           AutomationException
isUnderline

Specified by:
isUnderline in interface IFont
Returns:
The punderline
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isStrikethrough

public boolean isStrikethrough()
                        throws IOException,
                               AutomationException
isStrikethrough

Specified by:
isStrikethrough in interface IFont
Returns:
The pstrikethrough
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHFont

public int getHFont()
             throws IOException,
                    AutomationException
getHFont

Specified by:
getHFont in interface IFont
Returns:
The phfont (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_clone

public void esri_clone(IFont[] ppfont)
                throws IOException,
                       AutomationException
esri_clone

Specified by:
esri_clone in interface IFont
Parameters:
ppfont - A reference to a com.esri.arcgis.support.ms.stdole.IFont (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEqual

public void isEqual(IFont pfontOther)
             throws IOException,
                    AutomationException
isEqual

Specified by:
isEqual in interface IFont
Parameters:
pfontOther - A reference to a com.esri.arcgis.support.ms.stdole.IFont (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRatio

public void setRatio(int cyLogical,
                     int cyHimetric)
              throws IOException,
                     AutomationException
setRatio

Specified by:
setRatio in interface IFont
Parameters:
cyLogical - The cyLogical (in)
cyHimetric - The cyHimetric (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addRefHfont

public void addRefHfont(int hFont)
                 throws IOException,
                        AutomationException
addRefHfont

Specified by:
addRefHfont in interface IFont
Parameters:
hFont - The hFont (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseHfont

public void releaseHfont(int hFont)
                  throws IOException,
                         AutomationException
releaseHfont

Specified by:
releaseHfont in interface IFont
Parameters:
hFont - The hFont (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.