com.esri.arcgis.output
Class FontMapCollection

java.lang.Object
  extended by com.esri.arcgis.output.FontMapCollection
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IFontMapCollection, Serializable

public class FontMapCollection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IFontMapCollection

A collection of font mappings.

Remarks


The font map collection houses the set of font maps used by the PS printer or PS exporter objects.

The FontMapCollection is a collection object whose life cycle is tied to that of the object that created it, such as PsPrinter or PsExporter. This object controls the set of FontMap objects defined for use with the PostScript driver. An object of this type is returned by IFontMapEnvironment::FontMapCollection. Use this object to make your adjustments to the font mapping environment.

By default, the collection returned by IFontMapEnvironment::FontMapCollection will have some values in it. These default values are defined by the system. You can then add additional FontMap objects to the collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
FontMapCollection()
          Constructs a FontMapCollection using ArcGIS Engine.
FontMapCollection(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FontMapCollection theFontMapCollection = (FontMapCollection) obj;
 
Method Summary
 void add(IFontMap fontMap)
          Add an IFontMap to the FontMap collection.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The count of the FontMap collection.
 IFontMap getFontMap(int index)
          An IFontMap from the FontMap collection.
 int hashCode()
          the hashcode for this object
 void insert(int index, IFontMap fontMap)
          Insert an IFontMap into the FontMap collection at position index.
 void remove(int index)
          Removes IFontMap at index from the FontMap collection.
 void removeAll()
          Removes all IFontMaps from the FontMap collection.
 
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

FontMapCollection

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

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

FontMapCollection

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

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

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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The count of the FontMap collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getCount in interface IFontMapCollection
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFontMap

public IFontMap getFontMap(int index)
                    throws IOException,
                           AutomationException
An IFontMap from the FontMap collection.

Product Availability

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

Specified by:
getFontMap in interface IFontMapCollection
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.output.IFontMap
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(IFontMap fontMap)
         throws IOException,
                AutomationException
Add an IFontMap to the FontMap collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
add in interface IFontMapCollection
Parameters:
fontMap - A reference to a com.esri.arcgis.output.IFontMap (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int index,
                   IFontMap fontMap)
            throws IOException,
                   AutomationException
Insert an IFontMap into the FontMap collection at position index.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
insert in interface IFontMapCollection
Parameters:
index - The index (in)
fontMap - A reference to a com.esri.arcgis.output.IFontMap (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes IFontMap at index from the FontMap collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
remove in interface IFontMapCollection
Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

public void removeAll()
               throws IOException,
                      AutomationException
Removes all IFontMaps from the FontMap collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
removeAll in interface IFontMapCollection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.