public class KnuthGlue extends KnuthElement
INFINITE
Constructor and Description |
---|
KnuthGlue(int width,
int stretch,
int shrink,
Adjustment adjustmentClass,
Position pos,
boolean auxiliary)
Creates a new
KnuthGlue . |
KnuthGlue(int width,
int stretch,
int shrink,
Position pos,
boolean auxiliary)
Creates a new
KnuthGlue . |
KnuthGlue(MinOptMax minOptMax,
Position pos,
boolean auxiliary)
Creates a new
KnuthGlue . |
Modifier and Type | Method and Description |
---|---|
Adjustment |
getAdjustmentClass() |
int |
getShrink() |
int |
getStretch() |
boolean |
isGlue() |
String |
toString() |
getPenalty, getWidth, isAuxiliary, isUnresolvedElement
getLayoutManager, getPosition, isBox, isForcedBreak, isPenalty, setPosition
public KnuthGlue(MinOptMax minOptMax, Position pos, boolean auxiliary)
KnuthGlue
.minOptMax
- a MinOptMax
where the opt-value
is
mapped to the width, the stretchability
is mapped to the stretchability and the the shrinkability
is mapped to the shrinkabilitypos
- the Position stored in this glueauxiliary
- is this glue auxiliary?public KnuthGlue(int width, int stretch, int shrink, Position pos, boolean auxiliary)
KnuthGlue
.width
- the width of this gluestretch
- the stretchability of this glueshrink
- the shrinkability of this gluepos
- the Position stored in this glueauxiliary
- is this glue auxiliary?public KnuthGlue(int width, int stretch, int shrink, Adjustment adjustmentClass, Position pos, boolean auxiliary)
KnuthGlue
.width
- the width of this gluestretch
- the stretchability of this glueshrink
- the shrinkability of this glueadjustmentClass
- the adjsutment classpos
- the Position stored in this glueauxiliary
- is this glue auxiliary?public boolean isGlue()
isGlue
in class ListElement
public int getStretch()
getStretch
in class KnuthElement
public int getShrink()
getShrink
in class KnuthElement
public Adjustment getAdjustmentClass()
Copyright © 2025 Apache Software Foundation. All rights reserved.