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.
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.
Parameter | Description |
colorindex
| The OLE_COLOR that the Java color is created from.
|
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.
Parameter | Description |
punk
| The IUnknown interface that is queried for the IFont interface.
|
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.
Parameter | Description |
font
| The Font object that represents a Java font.
|