com.esri.arcgis.output
Class FontMap

java.lang.Object
  extended by com.esri.arcgis.output.FontMap
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IFontMap, IFontMap2, Serializable

public class FontMap
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IFontMap, IFontMap2

Class used to map a font from a TrueType Font to a resident Adobe Type 1 Font for the PostScript Printer Driver, EPS Export Driver and PDF Export Driver.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
FontMap()
          Constructs a FontMap using ArcGIS Engine.
FontMap(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FontMap theFontMap = (FontMap) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getMappedFont()
          Creates an association between the TrueType Font and the Mapped Font.
 String getTrueTypeFont()
          Creates an association between the TrueType Font and the Mapped Font.
 int hashCode()
          the hashcode for this object
 void setMapping(String trueTypeFont, String rhs2)
          Creates an association between the TrueType Font and the Mapped Font.
 void setMapping2(String trueTypeFont, String rhs2)
          Creates an association between the TrueType Font and the Mapped Font.
 
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

FontMap

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

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

FontMap

public FontMap(Object obj)
        throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FontMap theFontMap = (FontMap) obj;

Construct a FontMap using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FontMap.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
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

getTrueTypeFont

public String getTrueTypeFont()
                       throws IOException,
                              AutomationException
Creates an association between the TrueType Font and the Mapped Font.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getTrueTypeFont in interface IFontMap
Specified by:
getTrueTypeFont in interface IFontMap2
Returns:
The font
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMappedFont

public String getMappedFont()
                     throws IOException,
                            AutomationException
Creates an association between the TrueType Font and the Mapped Font.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getMappedFont in interface IFontMap
Specified by:
getMappedFont in interface IFontMap2
Returns:
The font
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMapping

public void setMapping(String trueTypeFont,
                       String rhs2)
                throws IOException,
                       AutomationException
Creates an association between the TrueType Font and the Mapped Font.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setMapping in interface IFontMap
Specified by:
setMapping in interface IFontMap2
Parameters:
trueTypeFont - The trueTypeFont (in)
rhs2 - The rhs2 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMapping2

public void setMapping2(String trueTypeFont,
                        String rhs2)
                 throws IOException,
                        AutomationException
Creates an association between the TrueType Font and the Mapped Font.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setMapping2 in interface IFontMap2
Parameters:
trueTypeFont - The trueTypeFont (in)
rhs2 - The rhs2 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.