|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openpcl.pclrenderimage.render.PriDrawText
public class PriDrawText
Handle all the text drawing. The extra optional code is if a boolean is set true, it draws a box around each character cell and draws left and right guidlines to see if each character is centered horizontally in its character cell box. Then there is more optional code that centers each char in it char cell box. Then the 3rd optional code draws an underline below the chars that were bumped to center the char in its cell. The user can hit Ctrl-B to toggle on and off the underlines below the chars that were centered.
Field Summary | |
---|---|
protected Graphics2D |
mGraphics2D
|
protected int |
mNumWidthPixelsInternalPrinterFont
|
protected PclRenderImage |
mPclRenderImage
|
protected PriBitmapCharacter |
mPriBitmapCharacter
|
protected PriBitmapFont |
mPriBitmapFont
|
protected PriFontBase |
mPriFontBase
|
protected PriFontManager |
mPriFontManager
|
protected PriPclContext |
mPriPclContext
|
protected int |
mSelectedSoftFontId
|
Constructor Summary | |
---|---|
PriDrawText(PclRenderImage pPclRenderImage)
Constructor without passing the Graphics2D. |
|
PriDrawText(PclRenderImage pPclRenderImage,
Graphics2D pGraphics2D)
Constructor |
Method Summary | |
---|---|
void |
drawBufferedUpCharsAs1String()
Draw buffered up chars as one String. |
void |
drawThisChar(char pCharToDraw)
Draw one char on the image. |
void |
freeUpMemory()
When the user is done with this rendering session, then free up memory. |
void |
setToInitialValues()
Set to initial values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PclRenderImage mPclRenderImage
protected Graphics2D mGraphics2D
protected int mSelectedSoftFontId
protected int mNumWidthPixelsInternalPrinterFont
protected PriPclContext mPriPclContext
protected PriFontManager mPriFontManager
protected PriFontBase mPriFontBase
protected PriBitmapFont mPriBitmapFont
protected PriBitmapCharacter mPriBitmapCharacter
Constructor Detail |
---|
public PriDrawText(PclRenderImage pPclRenderImage, Graphics2D pGraphics2D)
pPclRenderImage
- pGraphics2D
- public PriDrawText(PclRenderImage pPclRenderImage)
pPclRenderImage
- Method Detail |
---|
public void setToInitialValues()
setToInitialValues
in interface IPluginHooksPriDrawText
public void freeUpMemory()
freeUpMemory
in interface IPluginHooksPriDrawText
public void drawThisChar(char pCharToDraw)
drawThisChar
in interface IPluginHooksPriDrawText
public void drawBufferedUpCharsAs1String()
drawBufferedUpCharsAs1String
in interface IPluginHooksPriDrawText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |