public class TextCellRenderer extends TextImageRenderer
Modifier and Type | Field and Description |
---|---|
protected Color |
backgroundColor |
protected Color |
borderColor |
protected boolean |
drawBorder |
protected boolean |
drawText |
protected Halign |
h |
protected int |
n |
protected static int |
OFFSET_CONSTANT |
protected Coord3d |
sceneOffset |
protected Color |
textColor |
font, text
Constructor and Description |
---|
TextCellRenderer(int n,
String txt,
Font font) |
TextCellRenderer(int n,
String txt,
Font font,
Halign halign,
boolean drawBorder) |
Modifier and Type | Method and Description |
---|---|
Color |
getBorderColor() |
int |
getCharacterWidth() |
Halign |
getHorizontalAlignement() |
BufferedImageTexture |
getImage(float ratio) |
Coord3d |
getSceneOffset() |
Color |
getTextColor() |
protected IntegerCoord2d |
guessImageDimension(int n,
Font font) |
boolean |
isBorderDisplayed() |
boolean |
isTextDisplayed() |
void |
setBorderColor(Color borderColor) |
void |
setBorderDisplayed(boolean drawBorder) |
void |
setCharacterWidth(int n) |
void |
setHorizontalAlignement(Halign h) |
void |
setSceneOffset(Coord3d sceneOffset) |
void |
setTextColor(Color textColor) |
void |
setTextDisplayed(boolean drawText) |
getImage, guessImageDimension
protected static int OFFSET_CONSTANT
protected int n
protected Halign h
protected Color borderColor
protected Color backgroundColor
protected Color textColor
protected boolean drawBorder
protected boolean drawText
protected Coord3d sceneOffset
public BufferedImageTexture getImage(float ratio)
getImage
in class TextImageRenderer
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public Color getTextColor()
public void setTextColor(Color textColor)
public boolean isBorderDisplayed()
public void setBorderDisplayed(boolean drawBorder)
public boolean isTextDisplayed()
public void setTextDisplayed(boolean drawText)
public int getCharacterWidth()
public void setCharacterWidth(int n)
public Halign getHorizontalAlignement()
public void setHorizontalAlignement(Halign h)
public Coord3d getSceneOffset()
public void setSceneOffset(Coord3d sceneOffset)
protected IntegerCoord2d guessImageDimension(int n, Font font)
Copyright © 2016. All rights reserved.