Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.activeX   Previous This
Package
Next

 


Class ActiveXToolkit

public class ActiveXToolkit
{
  // Methods
  static public java.awt.Color getColorFromOLECOLOR(int colorindex);
  static public FontX getFontX(Object punk);
  static public Object getIUnknownFont(Font font);
}

This class provides a toolkit of Component Object Model (COM) functions.

Methods

getColorFromOLECOLOR

static public java.awt.Color getColorFromOLECOLOR(int colorindex);

Creates a Java color from an OLE_COLOR.

Return Value:

Returns the Java color that is derived from the OLE_COLOR.

ParameterDescription
colorindex The OLE_COLOR that the Java color is created from.

getFontX

static public FontX getFontX(Object punk);

Creates a FontX object, given an IUnknown interface. This method obtains the font for the object by using QueryInterface on IUnknown to query for the IFont interface.

Return Value:

Returns a FontX object obtained by querying IUnknown for the IFont interface. If punk is null, null is returned.

ParameterDescription
punk The IUnknown interface that is queried for the IFont interface.

getIUnknownFont

static public Object getIUnknownFont(Font font);

Retrieves the IUnknown interface of a Font object that represents a Java font.

Return Value:

Returns the IUnknown interface of an Font object that represents a Java font.

ParameterDescription
font The Font object that represents a Java font.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.