Class Segment
java.lang.Object
org.ofdrw.layout.engine.Segment
- All Implemented Interfaces:
Iterable<Map.Entry<Div, Rectangle>>, Iterator<Map.Entry<Div, Rectangle>>
-
Constructor Details
-
Segment
public Segment(double width)
-
-
Method Details
-
getHeight
public double getHeight() -
tryAdd
向段中添加元素- Parameters:
div- 元素- Returns:
- 元素是否能加入段中 true - 可加入;false - 不可加入
-
isBlockable
public boolean isBlockable()段是否可拆分- Returns:
- true - 可拆分;false - 不可拆分
-
isEmpty
public boolean isEmpty()段是否是空段,也就是没有任何元素- Returns:
- true - 空段;false - 含有元素
-
isRemainAreaFiller
public boolean isRemainAreaFiller()是否是剩余填充空间- Returns:
- true - 填充; false - 非填充
-
getContent
-
getSizeList
-
iterator
-
hasNext
-
remove
-
getWidth
public double getWidth() -
next
-