KnuthBox
, KnuthGlue
, KnuthPenalty
public abstract class KnuthElement extends ListElement
Modifier and Type | Field | Description |
---|---|---|
static int |
INFINITE |
The value used as an infinite indicator.
|
Modifier | Constructor | Description |
---|---|---|
protected |
KnuthElement(int width,
Position pos,
boolean auxiliary) |
Creates a new
KnuthElement . |
Modifier and Type | Method | 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-2016 The Apache Software Foundation. All Rights Reserved.