Class TextCellRenderer
- java.lang.Object
-
- org.jzy3d.plot3d.text.drawable.TextImageRenderer
-
- org.jzy3d.plot3d.text.drawable.cells.TextCellRenderer
-
public class TextCellRenderer extends TextImageRenderer
Experimental Wraps a Text into a cell with an assigned number of char width.- Author:
- Martin
-
-
Field Summary
Fields Modifier and Type Field Description protected ColorbackgroundColorprotected ColorborderColorprotected booleandrawBorderprotected booleandrawTextprotected Horizontalhprotected intnprotected static intOFFSET_CONSTANTprotected Coord3dsceneOffsetprotected ColortextColor-
Fields inherited from class org.jzy3d.plot3d.text.drawable.TextImageRenderer
font, text
-
-
Constructor Summary
Constructors Constructor Description TextCellRenderer(int n, String txt, Font font)TextCellRenderer(int n, String txt, Font font, Horizontal halign, boolean drawBorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBorderColor()intgetCharacterWidth()HorizontalgetHorizontalAlignement()BufferedImageTexturegetImage(float ratio)Coord3dgetSceneOffset()ColorgetTextColor()protected IntegerCoord2dguessImageDimension(int n, Font font)booleanisBorderDisplayed()booleanisTextDisplayed()voidsetBorderColor(Color borderColor)voidsetBorderDisplayed(boolean drawBorder)voidsetCharacterWidth(int n)voidsetHorizontalAlignement(Horizontal h)voidsetSceneOffset(Coord3d sceneOffset)voidsetTextColor(Color textColor)voidsetTextDisplayed(boolean drawText)-
Methods inherited from class org.jzy3d.plot3d.text.drawable.TextImageRenderer
getImage, guessImageDimension
-
-
-
-
Field Detail
-
OFFSET_CONSTANT
protected static int OFFSET_CONSTANT
-
n
protected int n
-
h
protected Horizontal h
-
borderColor
protected Color borderColor
-
backgroundColor
protected Color backgroundColor
-
textColor
protected Color textColor
-
drawBorder
protected boolean drawBorder
-
drawText
protected boolean drawText
-
sceneOffset
protected Coord3d sceneOffset
-
-
Constructor Detail
-
TextCellRenderer
public TextCellRenderer(int n, String txt, Font font, Horizontal halign, boolean drawBorder)
-
-
Method Detail
-
getImage
public BufferedImageTexture getImage(float ratio)
- Overrides:
getImagein classTextImageRenderer
-
getBorderColor
public Color getBorderColor()
-
setBorderColor
public void setBorderColor(Color borderColor)
-
getTextColor
public Color getTextColor()
-
setTextColor
public void setTextColor(Color textColor)
-
isBorderDisplayed
public boolean isBorderDisplayed()
-
setBorderDisplayed
public void setBorderDisplayed(boolean drawBorder)
-
isTextDisplayed
public boolean isTextDisplayed()
-
setTextDisplayed
public void setTextDisplayed(boolean drawText)
-
getCharacterWidth
public int getCharacterWidth()
-
setCharacterWidth
public void setCharacterWidth(int n)
-
getHorizontalAlignement
public Horizontal getHorizontalAlignement()
-
setHorizontalAlignement
public void setHorizontalAlignement(Horizontal h)
-
getSceneOffset
public Coord3d getSceneOffset()
-
setSceneOffset
public void setSceneOffset(Coord3d sceneOffset)
-
guessImageDimension
protected IntegerCoord2d guessImageDimension(int n, Font font)
-
-