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() |
java.lang.String |
toString() |
getPenalty, getWidth, isAuxiliary, isUnresolvedElementgetLayoutManager, getPosition, isBox, isForcedBreak, isPenalty, setPositionpublic 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 ListElementpublic int getStretch()
getStretch in class KnuthElementpublic int getShrink()
getShrink in class KnuthElementpublic Adjustment getAdjustmentClass()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.