Class TextCellRenderer
java.lang.Object
org.jzy3d.plot3d.text.drawable.TextImageRenderer
org.jzy3d.plot3d.text.drawable.cells.TextCellRenderer
Experimental Wraps a Text into a cell with an assigned number of char width.
- Author:
- Martin
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected Color
protected boolean
protected boolean
protected Horizontal
protected int
protected static int
protected Coord3d
protected Color
Fields inherited from class org.jzy3d.plot3d.text.drawable.TextImageRenderer
font, text
-
Constructor Summary
ConstructorDescriptionTextCellRenderer
(int n, String txt, Font font) TextCellRenderer
(int n, String txt, Font font, Horizontal halign, boolean drawBorder) -
Method Summary
Modifier and TypeMethodDescriptionint
getImage
(float ratio) protected IntegerCoord2d
guessImageDimension
(int n, Font font) boolean
boolean
void
setBorderColor
(Color borderColor) void
setBorderDisplayed
(boolean drawBorder) void
setCharacterWidth
(int n) void
void
setSceneOffset
(Coord3d sceneOffset) void
setTextColor
(Color textColor) void
setTextDisplayed
(boolean drawText) Methods inherited from class org.jzy3d.plot3d.text.drawable.TextImageRenderer
getImage, guessImageDimension
-
Field Details
-
OFFSET_CONSTANT
protected static int OFFSET_CONSTANT -
n
protected int n -
h
-
borderColor
-
backgroundColor
-
textColor
-
drawBorder
protected boolean drawBorder -
drawText
protected boolean drawText -
sceneOffset
-
-
Constructor Details
-
TextCellRenderer
-
TextCellRenderer
-
-
Method Details
-
getImage
- Overrides:
getImage
in classTextImageRenderer
-
getBorderColor
-
setBorderColor
-
getTextColor
-
setTextColor
-
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
-
setHorizontalAlignement
-
getSceneOffset
-
setSceneOffset
-
guessImageDimension
-