public final class ColumnInfoRecordsAggregate extends RecordAggregate implements Duplicatable
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
Constructor and Description |
---|
ColumnInfoRecordsAggregate()
Creates an empty aggregate
|
ColumnInfoRecordsAggregate(ColumnInfoRecordsAggregate other) |
ColumnInfoRecordsAggregate(RecordStream rs) |
Modifier and Type | Method and Description |
---|---|
void |
collapseColumn(int columnIndex) |
ColumnInfoRecordsAggregate |
copy() |
void |
expandColumn(int columnIndex) |
ColumnInfoRecord |
findColumnInfo(int columnIndex)
Finds the
ColumnInfoRecord which contains the specified columnIndex
(查找包含指定 columnIndex 的 ColumnInfoRecord)
|
int |
getMaxColumnIndex() |
int |
getMaxOutlineLevel() |
int |
getMinColumnIndex() |
int |
getOutlineLevel(int columnIndex) |
void |
groupColumnRange(int fromColumnIx, int toColumnIx, boolean indent)
Creates an outline group for the specified columns, by setting the level field for each col info record in the range.
(通过为范围内的每个 col 信息记录设置级别字段,为指定列创建大纲组。)
|
void |
insertColumn(ColumnInfoRecord col)
Inserts a column into the aggregate (at the end of the list).
(在聚合中插入一列(在列表的末尾)。)
|
void |
setColumn(int targetColumnIx, java.lang.Short xfIndex, java.lang.Integer width, java.lang.Integer level, java.lang.Boolean hidden, java.lang.Boolean collapsed) |
void |
visitContainedRecords(RecordAggregate.RecordVisitor rv)
Visit each of the atomic BIFF records contained in this
RecordAggregate in the order that they should be written to file.
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。)
|
getRecordSize, serialize
public ColumnInfoRecordsAggregate()
public ColumnInfoRecordsAggregate(ColumnInfoRecordsAggregate other)
public ColumnInfoRecordsAggregate(RecordStream rs)
public ColumnInfoRecordsAggregate copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public void insertColumn(ColumnInfoRecord col)
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregate
RecordAggregate
in the order that they should be written to file. Implementors may or may not return the actual
Record
s being used to manage POI's internal implementation. Callers should not assume either way, and therefore only attempt to modify those
Record
s after cloning
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。实施者可能会或可能不会返回用于管理 POI 内部实施的实际记录。调用者不应采取任何一种方式,因此仅在克隆后尝试修改这些记录)
visitContainedRecords
in class
RecordAggregate
(类 RecordAggregate 中的 visitContainedRecords)
rv
- The visitor to use for callbacks while walking this object
(rv - 访问此对象时用于回调的访问者)
public void collapseColumn(int columnIndex)
public void expandColumn(int columnIndex)
public void setColumn(int targetColumnIx, java.lang.Short xfIndex, java.lang.Integer width, java.lang.Integer level, java.lang.Boolean hidden, java.lang.Boolean collapsed)
public void groupColumnRange(int fromColumnIx, int toColumnIx, boolean indent)
ColumnInfoRecord
s may be created, split or merged as a result of this operation.
(通过为范围内的每个 col 信息记录设置级别字段,为指定列创建大纲组。此操作可能会创建、拆分或合并 ColumnInfoRecords。)
fromColumnIx
- group from this column (inclusive)
(fromColumnIx - 此列中的组(包括))
toColumnIx
- group to this column (inclusive)
(toColumnIx - 分组到该列(包括))
indent
- if
true
the group will be indented by one level, if
false
indenting will be decreased by one level.
(indent - 如果为 true,则该组将缩进一级,如果为 false,则缩进一级。)
public ColumnInfoRecord findColumnInfo(int columnIndex)
columnIndex
- index of the column (not the index of the ColumnInfoRecord)
(columnIndex - 列的索引(不是 ColumnInfoRecord 的索引))
null
if no column info found for the specified column
(如果未找到指定列的列信息,则为 null)
public int getMaxOutlineLevel()
public int getOutlineLevel(int columnIndex)
public int getMinColumnIndex()
public int getMaxColumnIndex()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.