com.businessobjects.rebean.wi
Class PlatformType

java.lang.Object
  extended by com.businessobjects.rebean.wi.PlatformType
All Implemented Interfaces:
EnumItem

public final class PlatformType
extends java.lang.Object
implements EnumItem

The PlatformType class defines unique identifiers for platforms for which FontMapping exist.

A FontMapping defines the mapping between a server font name and a platform-specific font name.

Since:
11.5
See Also:
ReportEngine.getInstalledFontNames(PlatformType), FontMapping

Field Summary
static int _HTML
          The int value of HTML.value().
static int _JAVA
          The int value of JAVA.value().
static int _WINDOWS
          The int value of WINDOWS.value().
static PlatformType HTML
          HTML-style font mapping.
static PlatformType JAVA
          Java font mapping.
static PlatformType WINDOWS
          Microsoft Windows specific font mapping.
 
Method Summary
static PlatformType fromInt(int value)
          Create a PlatformType instance corresponding to value.
 java.lang.String toString()
          Returns a String representation of this PlatformType instance.
 int value()
          Returns the int value of this PlatformType instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_HTML

public static final int _HTML
The int value of HTML.value().

See Also:
Constant Field Values

_JAVA

public static final int _JAVA
The int value of JAVA.value().

See Also:
Constant Field Values

_WINDOWS

public static final int _WINDOWS
The int value of WINDOWS.value().

See Also:
Constant Field Values

HTML

public static final PlatformType HTML
HTML-style font mapping.


JAVA

public static final PlatformType JAVA
Java font mapping.


WINDOWS

public static final PlatformType WINDOWS
Microsoft Windows specific font mapping.

This mapping is used when exporting a document to Microsoft Office Excel format.

Method Detail

value

public int value()
Returns the int value of this PlatformType instance.

Specified by:
value in interface EnumItem
Returns:
Returns the int value of this PlatformType instance.

toString

public java.lang.String toString()
Returns a String representation of this PlatformType instance.

Note: this method should be used for debugging purposes only.

Overrides:
toString in class java.lang.Object
Returns:
Returns a String representation of this PlatformType instance.

fromInt

public static PlatformType fromInt(int value)
Create a PlatformType instance corresponding to value.

The object returned will be either a PlatformType pt for which pt.value() == value, or null when value does not correspond to a PlatformType.

Parameters:
value - An int value corresponding to a PlatformType.
Returns:
A PlatformType instance corresponding to value, or null when value does not correspond to a PlatformType.