类 TableBasedTableBuilder<T extends Table>
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable.Builder<T>
com.google.typography.font.sfntly.table.Table.Builder<T>
com.google.typography.font.sfntly.table.TableBasedTableBuilder<T>
- 类型参数:
T- the type of table to be built
- 直接已知子类:
ByteArrayTableBuilder,FontHeaderTable.Builder,GenericTableBuilder,HorizontalDeviceMetricsTable.Builder,HorizontalHeaderTable.Builder,HorizontalMetricsTable.Builder,MaximumProfileTable.Builder,OS2Table.Builder,PostScriptTable.Builder
An abstract base to be used building tables in which the builder can use the
table itself to build from.
- 作者:
- Stuart Gill
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedTableBasedTableBuilder(Header header) protectedTableBasedTableBuilder(Header header, ReadableFontData data) Constructor.protectedTableBasedTableBuilder(Header header, WritableFontData data) Constructor. -
方法概要
修饰符和类型方法说明build()protected voidTell the subclass that the data has been changed and any structures must be discarded.protected intQuery if the subclass needs to serialize and how much data is required.protected booleanprotected intsubSerialize(WritableFontData newData) Serialize the table to the data provided.protected Ttable()从类继承的方法 com.google.typography.font.sfntly.table.Table.Builder
getBuilder, header, notifyPostTableBuild, toString从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable.Builder
changed, containedModelChanged, currentModelChanged, data, dataChanged, internalReadData, internalWriteData, modelChanged, readyToBuild, setData, setData, setModelChanged, setModelChanged, subBuildTable
-
字段详细资料
-
table
-
-
构造器详细资料
-
TableBasedTableBuilder
Constructor.- 参数:
header-data-
-
TableBasedTableBuilder
Constructor.- 参数:
header-data-
-
TableBasedTableBuilder
-
-
方法详细资料
-
table
-
subDataSet
protected void subDataSet()从类复制的说明:FontDataTable.BuilderTell the subclass that the data has been changed and any structures must be discarded.- 指定者:
subDataSet在类中FontDataTable.Builder<T extends Table>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.BuilderQuery if the subclass needs to serialize and how much data is required.- 指定者:
subDataSizeToSerialize在类中FontDataTable.Builder<T extends Table>- 返回:
- positive bytes needed to serialize if a fixed size; and zero or negative bytes as an estimate if growable data is needed
-
subReadyToSerialize
protected boolean subReadyToSerialize()- 指定者:
subReadyToSerialize在类中FontDataTable.Builder<T extends Table>- 返回:
- true if the subclass is ready to serialize it's structure into data
-
subSerialize
从类复制的说明:FontDataTable.BuilderSerialize the table to the data provided.- 指定者:
subSerialize在类中FontDataTable.Builder<T extends Table>- 参数:
newData- the data object to serialize to- 返回:
- the number of bytes written
-
build
- 覆盖:
build在类中FontDataTable.Builder<T extends Table>
-