Package jexer.tackboard
Class Text
- java.lang.Object
-
- jexer.tackboard.TackboardItem
-
- jexer.tackboard.Bitmap
-
- jexer.tackboard.Text
-
- All Implemented Interfaces:
java.lang.Comparable<TackboardItem>
public class Text extends Bitmap
Text is a raw bitmap image.
-
-
Field Summary
-
Fields inherited from class jexer.tackboard.TackboardItem
dirty
-
-
Constructor Summary
Constructors Constructor Description Text(int x, int y, int z, java.lang.String text, java.awt.Font font, int fontSize, java.awt.Color color)
Public constructor.Text(int x, int y, int z, java.lang.String text, java.lang.String fontName, int fontSize, java.awt.Color color)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object rhs)
Comparison check.java.awt.image.BufferedImage
getImage(int textWidth, int textHeight)
Get this item rendered to a bitmap, offset to align on a grid of cells with pixel dimensions (textWidth, textHeight).int
hashCode()
Hashcode uses all fields in equals().java.lang.String
toString()
Make human-readable description of this item.
-
-
-
Constructor Detail
-
Text
public Text(int x, int y, int z, java.lang.String text, java.lang.String fontName, int fontSize, java.awt.Color color)
Public constructor.- Parameters:
x
- X pixel coordinatey
- Y pixel coordinatez
- Z coordinatetext
- the text stringfontName
- the font namefontSize
- the font size in pointscolor
- the color of the text
-
Text
public Text(int x, int y, int z, java.lang.String text, java.awt.Font font, int fontSize, java.awt.Color color)
Public constructor.- Parameters:
x
- X pixel coordinatey
- Y pixel coordinatez
- Z coordinatetext
- the text stringfont
- the fontfontSize
- the font size in pointscolor
- the color of the text
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object rhs)
Comparison check. All fields must match to return true.
-
hashCode
public int hashCode()
Hashcode uses all fields in equals().
-
toString
public java.lang.String toString()
Make human-readable description of this item.
-
getImage
public java.awt.image.BufferedImage getImage(int textWidth, int textHeight)
Get this item rendered to a bitmap, offset to align on a grid of cells with pixel dimensions (textWidth, textHeight).
-
-