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, setPosition
public 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 ListElement
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.