类 EbdtTable.Builder
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.SubTableContainerTable.Builder<EbdtTable>
com.google.typography.font.sfntly.table.bitmap.EbdtTable.Builder
- 封闭类:
EbdtTable
-
字段概要
字段修饰符和类型字段说明private List<Map<Integer,
BitmapGlyph.Builder<? extends BitmapGlyph>>> private List<Map<Integer,
BitmapGlyphInfo>> private final int
-
构造器概要
构造器限定符构造器说明protected
Builder
(Header header, ReadableFontData data) protected
Builder
(Header header, WritableFontData data) -
方法概要
修饰符和类型方法说明static EbdtTable.Builder
createBuilder
(Header header, ReadableFontData data) Create a new builder using the header information and data provided.static EbdtTable.Builder
createBuilder
(Header header, WritableFontData data) Create a new builder using the header information and data provided.private List<Map<Integer,
BitmapGlyph.Builder<? extends BitmapGlyph>>> List<Map<Integer,
BitmapGlyph.Builder<? extends BitmapGlyph>>> Gets the List of glyph builders for the glyph table builder.private static List<Map<Integer,
BitmapGlyph.Builder<? extends BitmapGlyph>>> initialize
(ReadableFontData data, List<Map<Integer, BitmapGlyphInfo>> locaList) void
revert()
void
setGlyphBuilders
(List<Map<Integer, BitmapGlyph.Builder<? extends BitmapGlyph>>> glyphBuilders) Replace the internal glyph builders with the one provided.void
setLoca
(List<Map<Integer, BitmapGlyphInfo>> locaList) protected EbdtTable
Build a table with the data provided.protected void
Tell the subclass that the data has been changed and any structures must be discarded.protected int
Query if the subclass needs to serialize and how much data is required.protected boolean
protected int
subSerialize
(WritableFontData newData) Serialize the table to the data provided.从类继承的方法 com.google.typography.font.sfntly.table.Table.Builder
getBuilder, header, notifyPostTableBuild, toString
从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable.Builder
build, changed, containedModelChanged, currentModelChanged, data, dataChanged, internalReadData, internalWriteData, modelChanged, readyToBuild, setData, setData, setModelChanged, setModelChanged
-
字段详细资料
-
version
private final int version- 另请参阅:
-
glyphLoca
-
glyphBuilders
-
-
构造器详细资料
-
Builder
-
Builder
-
-
方法详细资料
-
createBuilder
Create a new builder using the header information and data provided.- 参数:
header
- the header informationdata
- the data holding the table- 返回:
- a new builder
-
createBuilder
Create a new builder using the header information and data provided.- 参数:
header
- the header informationdata
- the data holding the table- 返回:
- a new builder
-
setLoca
-
generateLocaList
-
glyphBuilders
Gets the List of glyph builders for the glyph table builder. These may be manipulated in any way by the caller and the changes will be reflected in the final glyph table produced. If there is no current data for the glyph builder or the glyph builders have not been previously set then this will return an empty glyph builder List. If there is current data (i.e. data read from an existing font) and theloca
list has not been set or is null, empty, or invalid, then an empty glyph builder List will be returned.- 返回:
- the list of glyph builders
-
setGlyphBuilders
public void setGlyphBuilders(List<Map<Integer, BitmapGlyph.Builder<? extends BitmapGlyph>>> glyphBuilders) Replace the internal glyph builders with the one provided. The provided list and all contained objects belong to this builder. This call is only required if the entire set of glyphs in the glyph table builder are being replaced. If the glyph builder list provided from theglyphBuilders()
is being used and modified then those changes will already be reflected in the glyph table builder.- 参数:
glyphBuilders
- the new glyph builders
-
getGlyphBuilders
-
revert
public void revert() -
initialize
private static List<Map<Integer,BitmapGlyph.Builder<? extends BitmapGlyph>>> initialize(ReadableFontData data, List<Map<Integer, BitmapGlyphInfo>> locaList) -
subBuildTable
从类复制的说明:FontDataTable.Builder
Build a table with the data provided.- 指定者:
subBuildTable
在类中FontDataTable.Builder<EbdtTable>
- 参数:
data
- the data to use to build the table- 返回:
- a table
-
subDataSet
protected void subDataSet()从类复制的说明:FontDataTable.Builder
Tell the subclass that the data has been changed and any structures must be discarded.- 指定者:
subDataSet
在类中FontDataTable.Builder<EbdtTable>
-
subDataSizeToSerialize
protected int subDataSizeToSerialize()从类复制的说明:FontDataTable.Builder
Query if the subclass needs to serialize and how much data is required.- 指定者:
subDataSizeToSerialize
在类中FontDataTable.Builder<EbdtTable>
- 返回:
- 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<EbdtTable>
- 返回:
- true if the subclass is ready to serialize it's structure into data
-
subSerialize
从类复制的说明:FontDataTable.Builder
Serialize the table to the data provided.- 指定者:
subSerialize
在类中FontDataTable.Builder<EbdtTable>
- 参数:
newData
- the data object to serialize to- 返回:
- the number of bytes written
-