|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdaoc.editor.image.Font
Reads in a camelot font file.
| Constructor Summary | |
Font(AssetNode n)
|
|
| Method Summary | |
void |
drawRow(java.awt.Graphics g,
MultiColumnString mcs,
int textoffset,
java.awt.image.ImageObserver obs,
java.awt.Color col,
int iconsize)
Draws a row of strings. |
void |
drawString(java.awt.Graphics g,
int x,
int y,
java.lang.String msg,
java.awt.image.ImageObserver obs,
java.awt.Color col,
int maxchars,
int linepadding,
int width,
int height,
boolean multi)
|
int |
getHeight()
The font height is the height of the tallest character. |
java.awt.image.BufferedImage |
getImage()
|
java.awt.image.BufferedImage[] |
getMapForColor(java.awt.Color c)
Grabs a color map from the cache. |
java.lang.String |
getName()
|
AssetNode |
getNode()
|
int |
getWidth(java.lang.String msg)
Returns the pixel width of the given string in this font. |
void |
update(AssetNode n)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Font(AssetNode n)
| Method Detail |
public void update(AssetNode n)
public java.lang.String getName()
getName in interface Assetpublic java.awt.image.BufferedImage getImage()
getImage in interface Assetpublic AssetNode getNode()
public int getHeight()
public int getWidth(java.lang.String msg)
public final void drawString(java.awt.Graphics g,
int x,
int y,
java.lang.String msg,
java.awt.image.ImageObserver obs,
java.awt.Color col,
int maxchars,
int linepadding,
int width,
int height,
boolean multi)
public void drawRow(java.awt.Graphics g,
MultiColumnString mcs,
int textoffset,
java.awt.image.ImageObserver obs,
java.awt.Color col,
int iconsize)
public java.awt.image.BufferedImage[] getMapForColor(java.awt.Color c)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||