SAP ABAP Class CL_RSTX_FONT_CLASS_DEFINITION (Class Definition table)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-SCR (Application Component) SAPscript
⤷
STXD (Package) SAPscript
⤷
⤷
Properties
| Class | CL_RSTX_FONT_CLASS_DEFINITION | |
| Short Description | Class Definition table | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | STXD | SAPscript |
| Created | 20130326 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 4 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_RSTX_FONT_CLASS_DEFINITION has no interface implemented.
Friends
Class CL_RSTX_FONT_CLASS_DEFINITION has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Type reference (TYPE) | I | 20130326 | ||||
| 2 | Static Attribute | Private | Type reference (TYPE) | T_CLASS_DEFINITION_LIST | Buffer of already created class definitions | 20130326 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | Did an error occur? | 20130326 | |||
| 4 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_RSTX_FONT_PARSER | Reference to the font parser class | 20130327 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | I | Offset of the Class Definition in the font file | 20130326 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | T_GLYPH_TAB | Format 1: Table of Glyph IDs | 20130326 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | T_RANGE_TAB | Format 2: Table of Glyph Ranges | 20130326 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Get class of glyph id | 20130326 | |
| 2 | Static method | Public | Method | Clear the table which buffers all class definition ref. | 20130402 | |
| 3 | Instance method | Private | Constructor | 20130326 | ||
| 4 | Static method | Public | Method | Method to create new class definition | 20130326 | |
| 5 | Static method | Public | Method | Get the data of all class definitions in raw format | 20130326 | |
| 6 | Instance method | Private | Method | Reads class definition from font file | 20130326 | |
| 7 | Instance method | Public | Method | Get the data of the class definition in raw format | 20130326 | |
| 8 | Instance method | Public | Method | Get global offset of the class definition | 20130326 | |
| 9 | Instance method | Public | Method | Get a table of all glyphs with a class number | 20130326 | |
| 10 | Static method | Public | Method | Get reference of the class definition from the global offset | 20130326 | |
| 11 | Instance method | Public | Method | Set the data of the class definition in raw format | 20130326 |
Events
Class CL_RSTX_FONT_CLASS_DEFINITION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | T_CLASS_DEFINITION_ENTRY | Private | See coding | 20130326 | begin of t_class_definition_entry,
global_offset type i,
font_ref type ref to CL_RSTX_FONT_TTF,
class_definition_ref type ref to CL_RSTX_FONT_CLASS_DEFINITION,
end of t_class_definition_entry
|
||
| 2 | T_CLASS_DEFINITION_LIST | Private | See coding | 20130326 | t_class_definition_list type sorted table of t_class_definition_entry
with unique key global_offset font_ref
|
||
| 3 | T_GLYPH_RECORD | Private | See coding | 20130326 | begin of t_glyph_record,
glyph_id type i,
class type i,
end of t_glyph_record
|
||
| 4 | T_GLYPH_TAB | Private | See coding | 20130326 | t_glyph_tab type sorted table of t_glyph_record with unique key glyph_id
|
||
| 5 | T_RANGE_RECORD | Private | See coding | 20130326 | begin of t_range_record,
start type i,
end type i,
class type i,
end of t_range_record
|
||
| 6 | T_RANGE_TAB | Private | See coding | 20130326 | t_range_tab type sorted table of t_range_record with unique key start
|
Method Signatures
Method CHECK_GLYPH_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLASS | Value transfer | Type reference (TYPE) | I | Class of glyph (0 = does not exist) | 20130326 | |||
| 2 | GLYPH_ID | Call by reference | Type reference (TYPE) | I | Glyph ID which shall be checked | 20130326 |
Method CHECK_GLYPH_ID on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method CLEAR_BUFFER_TABLE Signature
Method CLEAR_BUFFER_TABLE on class CL_RSTX_FONT_CLASS_DEFINITION has no parameter.
Method CLEAR_BUFFER_TABLE on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FONT_PARSER | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_FONT_PARSER | Reference to font parser class | 20130326 | |||
| 2 | GLOBAL_OFFSET | Call by reference | Type reference (TYPE) | I | Start offset of Class Definition in font file | 20130326 | |||
| 3 | RAW_DATA | Call by reference | Type reference (TYPE) | CL_RSTX_FONT_TTF=>T_RAW_DATA | Class Definition data transfered as raw data | 20130326 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | An error occurred during the parsing of the class definition | 20130326 |
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FONT_REF | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_FONT_TTF | Reference to font class of True Type Font | 20130327 | |||
| 2 | GLOBAL_OFFSET | Call by reference | Type reference (TYPE) | I | Start offset of class definition | 20130326 | |||
| 3 | RAW_DATA | Call by reference | Type reference (TYPE) | CL_RSTX_FONT_TTF=>T_RAW_DATA | Class Definition data transfered as raw data | 20130326 | |||
| 4 | REF | Value transfer | Object reference (TYPE REF TO) | CL_RSTX_FONT_CLASS_DEFINITION | Reference to new class definition | 20130326 |
Method CREATE on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_ALL_DATA_RAW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FONT_REF | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_FONT_TTF | Reference to font class of True Type Font | 20130327 | |||
| 2 | RAW_DATA_TAB | Call by reference | Type reference (TYPE) | CL_RSTX_FONT_TTF=>T_RAW_DATA_TAB | Table with all raw data | 20130326 |
Method GET_ALL_DATA_RAW on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_CLASS_DEFINITION Signature
Method GET_CLASS_DEFINITION on class CL_RSTX_FONT_CLASS_DEFINITION has no parameter.
Method GET_CLASS_DEFINITION on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_DATA_RAW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RAW_DATA | Call by reference | Type reference (TYPE) | CL_RSTX_FONT_TTF=>T_RAW_DATA | Entry with raw data | 20130326 |
Method GET_DATA_RAW on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_GLOBAL_OFFSET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | OFFSET | Value transfer | Type reference (TYPE) | I | Offset of Class Definition in font file | 20130326 |
Method GET_GLOBAL_OFFSET on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_GLYPH_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CLASS | Call by reference | Type reference (TYPE) | I | Number of Class | 20130326 | |||
| 2 | GLYPH_TABLE | Value transfer | Type reference (TYPE) | CL_RSTX_FONT_PARSER=>T_INTEGER_TABLE | Table of all glyphs with class number | 20130326 |
Method GET_GLYPH_LIST on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method GET_REF_FROM_OFFSET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FONT_REF | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_FONT_TTF | Reference to font class of True Type Font | 20130327 | |||
| 2 | OFFSET | Call by reference | Type reference (TYPE) | I | Offset of Class Definition in font file | 20130326 | |||
| 3 | RC | Call by reference | Type reference (TYPE) | I | Return code | 20130326 | |||
| 4 | REF | Call by reference | Object reference (TYPE REF TO) | CL_RSTX_FONT_CLASS_DEFINITION | Reference of Class Definition | 20130326 |
Method GET_REF_FROM_OFFSET on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
Method SET_DATA_RAW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RAW_DATA | Call by reference | Type reference (TYPE) | CL_RSTX_FONT_TTF=>T_RAW_DATA | Entry with raw data | 20130326 | |||
| 2 | RC | Value transfer | Attribute reference (LIKE) | SY-SUBRC | Return code | 20130326 |
Method SET_DATA_RAW on class CL_RSTX_FONT_CLASS_DEFINITION has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 740 |