|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConfigurationPrecisionMapping
The result format and precision mapping settings
for the FR220 feature(font precision).
Each result format has a precision value,
and client can get/set precision through this interface.
For any format, there is always a default precision.
The valid precision is:
: the High precision is required for the result format.
APIConst.PRECISION_HIGH
: the Low precision is required for the result format.
APIConst.PRECISION_LOW
: the context precision can be Any(High or Low).
Don't care the precision issue for the result format.
APIConst.PRECISION_ANY
The valid formats is:
APIConst.RST,
APIConst.HTML,
APIConst.PDF,
APIConst.TEXT,
APIConst.EXCEL,
APIConst.PS,
APIConst.RTF,
APIConst.XML,
APIConst.DHTML,
APIConst.PRINTER,
APIConst.FAX
Notes: Applet is RST(RST)
| Method Summary | |
|---|---|
void |
enableCustomizedPrecision(boolean isCustomized)
Enables or disables the customized precision. |
void |
enableFormatCustomizedPrecision(int format,
boolean isCustomized)
Enables or disables the customized precision for the format. |
int |
getCustomizedPrecision(int format)
Gets the customized precision. |
int |
getPrecision(int format)
Gets the precision. |
boolean |
isFormatPrecisionCustomized(int format)
Checks whether to enable the customized precision for the format. |
boolean |
isPrecisionCustomized()
Checks whether to enable customized precision. |
void |
setPrecision(int format,
int precision)
Sets the precision. |
| Method Detail |
|---|
int getPrecision(int format)
APIConst.PRECISION_ANY will be returned.isPrecisionCustomized() is true
and isFormatPrecisionCustomized(int) is true,
it will return the customized precision,
otherwise, the default system precision.
- Parameters:
format - the format, can be one of the followings:
APIConst.RST, APIConst.HTML, APIConst.PDF, APIConst.TEXT,
APIConst.EXCEL, APIConst.PS, APIConst.RTF, APIConst.XML,
APIConst.DHTML,
APIConst.PRINTER, APIConst.FAX
- Returns:
- the precision, can be one of following:
APIConst.PRECISION_LOW, APIConst.PRECISION_HIGH, APIConst.PRECISION_ANY
void setPrecision(int format,
int precision)
format - the format, can be one of following:APIConst.RST, APIConst.HTML, APIConst.PDF, APIConst.TEXT,
APIConst.EXCEL, APIConst.PS, APIConst.RTF, APIConst.XML,
APIConst.DHTML,
APIConst.PRINTER, APIConst.FAXprecision - the precision, can be one of following:APIConst.PRECISION_LOW, APIConst.PRECISION_HIGHvoid enableCustomizedPrecision(boolean isCustomized)
isCustomized - boolean isPrecisionCustomized()
void enableFormatCustomizedPrecision(int format,
boolean isCustomized)
format - APIConst.HTML etc.isCustomized - boolean isFormatPrecisionCustomized(int format)
format - APIConst.HTML etc.
int getCustomizedPrecision(int format)
format - the format.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||