Package com.jme3.font
Class BitmapCharacter
java.lang.Object
com.jme3.font.BitmapCharacter
Represents a single bitmap character.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addKerning
(int second, int amount) clone()
char
getChar()
int
int
getKerning
(int second) int
getPage()
int
getWidth()
int
getX()
int
int
int
getY()
int
void
read
(JmeImporter im) void
setChar
(char c) void
setHeight
(int height) void
setPage
(int page) void
setWidth
(int width) void
setX
(int x) void
setXAdvance
(int advance) void
setXOffset
(int offset) void
setY
(int y) void
setYOffset
(int offset) void
write
(JmeExporter ex)
-
Constructor Details
-
BitmapCharacter
public BitmapCharacter() -
BitmapCharacter
public BitmapCharacter(char c)
-
-
Method Details
-
clone
-
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getXOffset
public int getXOffset() -
setXOffset
public void setXOffset(int offset) -
getYOffset
public int getYOffset() -
setYOffset
public void setYOffset(int offset) -
getXAdvance
public int getXAdvance() -
setXAdvance
public void setXAdvance(int advance) -
setPage
public void setPage(int page) -
getPage
public int getPage() -
getChar
public char getChar() -
setChar
public void setChar(char c) -
addKerning
public void addKerning(int second, int amount) -
getKerning
public int getKerning(int second) -
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-