public class BlockInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_END |
static int |
ALIGN_FULL |
static int |
ALIGN_MIDDLE |
static int |
ALIGN_START |
protected int |
alignment |
protected float |
ascent |
protected float |
bottom |
protected float |
descent |
protected boolean |
flowRegionBreak |
protected Map |
fontAttrs |
protected List |
fontList |
protected float |
indent |
protected float |
left |
protected float |
lineHeight |
protected float |
right |
protected float |
top |
Constructor and Description |
---|
BlockInfo(float top,
float right,
float bottom,
float left,
float indent,
int alignment,
float lineHeight,
List fontList,
Map fontAttrs,
boolean flowRegionBreak) |
BlockInfo(float margin,
int alignment) |
Modifier and Type | Method and Description |
---|---|
float |
getAscent() |
float |
getBottomMargin() |
float |
getDescent() |
Map |
getFontAttrs() |
List |
getFontList() |
float |
getIndent() |
float |
getLeftMargin() |
float |
getLineHeight() |
float |
getRightMargin() |
int |
getTextAlignment() |
float |
getTopMargin() |
void |
initLineInfo(FontRenderContext frc) |
boolean |
isFlowRegionBreak() |
void |
setMargin(float margin) |
public static final int ALIGN_START
public static final int ALIGN_MIDDLE
public static final int ALIGN_END
public static final int ALIGN_FULL
protected float top
protected float right
protected float bottom
protected float left
protected float indent
protected int alignment
protected float lineHeight
protected List fontList
protected Map fontAttrs
protected float ascent
protected float descent
protected boolean flowRegionBreak
public BlockInfo(float top, float right, float bottom, float left, float indent, int alignment, float lineHeight, List fontList, Map fontAttrs, boolean flowRegionBreak)
public BlockInfo(float margin, int alignment)
public void setMargin(float margin)
public void initLineInfo(FontRenderContext frc)
public float getTopMargin()
public float getRightMargin()
public float getBottomMargin()
public float getLeftMargin()
public float getIndent()
public int getTextAlignment()
public float getLineHeight()
public List getFontList()
public Map getFontAttrs()
public float getAscent()
public float getDescent()
public boolean isFlowRegionBreak()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.