public abstract class KnuthElement extends ListElement
| Modifier and Type | Field and Description |
|---|---|
static int |
INFINITE
The value used as an infinite indicator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
KnuthElement(int width,
Position pos,
boolean auxiliary)
Creates a new
KnuthElement. |
| Modifier and Type | Method and Description |
|---|---|
int |
getPenalty() |
int |
getShrink() |
int |
getStretch() |
int |
getWidth() |
boolean |
isAuxiliary() |
boolean |
isUnresolvedElement() |
getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, setPositionpublic static final int INFINITE
protected KnuthElement(int width,
Position pos,
boolean auxiliary)
KnuthElement.width - the width of this elementpos - the Position stored in this elementauxiliary - is this an auxiliary element?public boolean isAuxiliary()
public int getWidth()
public int getPenalty()
public int getStretch()
public int getShrink()
public boolean isUnresolvedElement()
isUnresolvedElement in class ListElementCopyright © 2023 Apache Software Foundation. All rights reserved.