public class LineLayoutPossibilities
extends java.lang.Object
Constructor and Description |
---|
LineLayoutPossibilities()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addBreakPosition(org.apache.fop.layoutmgr.inline.LineLayoutManager.LineBreakPosition pos,
int i) |
void |
addPossibility(int ln,
double dem)
Add possibility.
|
int |
applyLineCountAdjustment(int adj) |
boolean |
canUseLessLines() |
boolean |
canUseMoreLines() |
double |
getChosenDemerits() |
int |
getChosenLineCount() |
org.apache.fop.layoutmgr.inline.LineLayoutManager.LineBreakPosition |
getChosenPosition(int i) |
double |
getDemerits(int i) |
int |
getLineCount(int i) |
int |
getMaxLineCount() |
int |
getMinLineCount() |
int |
getOptLineCount() |
int |
getPossibilitiesNumber() |
void |
printAll()
print all
|
void |
restorePossibilities()
Replace the Possibilities stored in possibilitiesList with
the ones stored in savedPossibilities and having the same line number.
|
void |
savePossibilities(boolean bSaveOptLineCount)
Save in a different array the computed Possibilities,
so possibilitiesList is ready to store different Possibilities.
|
public void addPossibility(int ln, double dem)
ln
- line numberdem
- demeritspublic void savePossibilities(boolean bSaveOptLineCount)
bSaveOptLineCount
- true if should save optimum line countpublic void restorePossibilities()
public void addBreakPosition(org.apache.fop.layoutmgr.inline.LineLayoutManager.LineBreakPosition pos, int i)
pos
- a positioni
- an index into posibilities listpublic boolean canUseMoreLines()
public boolean canUseLessLines()
public int getMinLineCount()
public int getOptLineCount()
public int getMaxLineCount()
public int getChosenLineCount()
public int getLineCount(int i)
i
- the posibilities list indexpublic double getChosenDemerits()
public double getDemerits(int i)
i
- the posibilities list indexpublic int getPossibilitiesNumber()
public org.apache.fop.layoutmgr.inline.LineLayoutManager.LineBreakPosition getChosenPosition(int i)
i
- the break position indexpublic int applyLineCountAdjustment(int adj)
adj
- the adjustmentpublic void printAll()
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.