|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.layoutmgr.inline.LineLayoutPossibilities
public class LineLayoutPossibilities
Line layout possibilities.
| Constructor Summary | |
|---|---|
LineLayoutPossibilities()
default constructor |
|
| Method Summary | |
|---|---|
void |
addBreakPosition(Position pos,
int i)
|
void |
addPossibility(int ln,
double dem)
Add possibility. |
int |
applyLineCountAdjustment(int adj)
|
boolean |
canUseLessLines()
|
boolean |
canUseMoreLines()
|
double |
getChosenDemerits()
|
int |
getChosenLineCount()
|
Position |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineLayoutPossibilities()
| Method Detail |
|---|
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(Position 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 index
public double getChosenDemerits()
public double getDemerits(int i)
i - the posibilities list index
public int getPossibilitiesNumber()
public Position getChosenPosition(int i)
i - the break position index
public int applyLineCountAdjustment(int adj)
adj - the adjustment
public void printAll()
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||