|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.font.HieroSettings
public class HieroSettings
Holds the settings needed to configure a UnicodeFont.
Constructor Summary | |
---|---|
HieroSettings()
Default constructor for injection |
|
HieroSettings(java.io.InputStream in)
Create a new set of configuration from a file |
|
HieroSettings(java.lang.String hieroFileRef)
Create a new set of configuration from a file |
Method Summary | |
---|---|
java.util.List |
getEffects()
|
int |
getFontSize()
|
int |
getGlyphPageHeight()
|
int |
getGlyphPageWidth()
|
int |
getPaddingAdvanceX()
|
int |
getPaddingAdvanceY()
|
int |
getPaddingBottom()
|
int |
getPaddingLeft()
|
int |
getPaddingRight()
|
int |
getPaddingTop()
|
boolean |
isBold()
|
boolean |
isItalic()
|
void |
save(java.io.File file)
Saves the settings to a file. |
void |
setBold(boolean bold)
|
void |
setFontSize(int fontSize)
|
void |
setGlyphPageHeight(int glyphPageHeight)
|
void |
setGlyphPageWidth(int glyphPageWidth)
|
void |
setItalic(boolean italic)
|
void |
setPaddingAdvanceX(int paddingAdvanceX)
|
void |
setPaddingAdvanceY(int paddingAdvanceY)
|
void |
setPaddingBottom(int paddingBottom)
|
void |
setPaddingLeft(int paddingLeft)
|
void |
setPaddingRight(int paddingRight)
|
void |
setPaddingTop(int paddingTop)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HieroSettings()
public HieroSettings(java.lang.String hieroFileRef) throws SlickException
hieroFileRef
- The file system or classpath location of the Hiero settings file.
SlickException
- if the file could not be read.public HieroSettings(java.io.InputStream in) throws SlickException
in
- The stream from which to read the settings from
SlickException
- if the file could not be read.Method Detail |
---|
public int getPaddingTop()
UnicodeFont.getPaddingTop()
public void setPaddingTop(int paddingTop)
paddingTop
- The padding for the top of the glyph area in pixelsUnicodeFont.setPaddingTop(int)
public int getPaddingLeft()
UnicodeFont.getPaddingLeft()
public void setPaddingLeft(int paddingLeft)
paddingLeft
- The padding for the left of the glyph area in pixelsUnicodeFont.setPaddingLeft(int)
public int getPaddingBottom()
UnicodeFont.getPaddingBottom()
public void setPaddingBottom(int paddingBottom)
paddingBottom
- The padding for the bottom of the glyph area in pixelsUnicodeFont.setPaddingBottom(int)
public int getPaddingRight()
UnicodeFont.getPaddingRight()
public void setPaddingRight(int paddingRight)
paddingRight
- The padding for the right of the glyph area in pixelsUnicodeFont.setPaddingRight(int)
public int getPaddingAdvanceX()
UnicodeFont.getPaddingAdvanceX()
public void setPaddingAdvanceX(int paddingAdvanceX)
paddingAdvanceX
- The padding for the horizontal advance of each glyphUnicodeFont.setPaddingAdvanceX(int)
public int getPaddingAdvanceY()
UnicodeFont.getPaddingAdvanceY()
public void setPaddingAdvanceY(int paddingAdvanceY)
paddingAdvanceY
- The padding for the vertical advance of each glyphUnicodeFont.setPaddingAdvanceY(int)
public int getGlyphPageWidth()
UnicodeFont.getGlyphPageWidth()
public void setGlyphPageWidth(int glyphPageWidth)
glyphPageWidth
- The width of the generate glyph pagesUnicodeFont.setGlyphPageWidth(int)
public int getGlyphPageHeight()
UnicodeFont.getGlyphPageHeight()
public void setGlyphPageHeight(int glyphPageHeight)
glyphPageHeight
- The height of the generate glyph pagesUnicodeFont.setGlyphPageHeight(int)
public int getFontSize()
UnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public void setFontSize(int fontSize)
fontSize
- The point size of the font generatedUnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public boolean isBold()
UnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public void setBold(boolean bold)
bold
- True if the font was generated in bold typefaceUnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public boolean isItalic()
UnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public void setItalic(boolean italic)
italic
- True if the font was generated in italic typefaceUnicodeFont.UnicodeFont(String, int, boolean, boolean)
,
UnicodeFont.UnicodeFont(java.awt.Font, int, boolean, boolean)
public java.util.List getEffects()
UnicodeFont.getEffects()
public void save(java.io.File file) throws java.io.IOException
file
- The file we're saving to
java.io.IOException
- if the file could not be saved.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |