|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CDelayedDraw
public class CDelayedDraw
Simple class permitting the delayed drawing of Strings when drawing the DasherNodes to the screen.
The idea is that we can both
a) Cause all text to appear above other drawn objects, and
b) Draw text at the same time as its Node, allowing the
drawing process to remain modular.
Essentially, all strings which are drawn with this class are added to a list, which is emptied and drawn when Draw is called.
| Nested Class Summary | |
|---|---|
protected class |
CDelayedDraw.CTextString
Class representing a String to be drawn plus information needed to draw it |
| Field Summary | |
|---|---|
protected java.util.ArrayList<CDelayedDraw.CTextString> |
m_DrawTextString
Internal list of objects we are waiting to draw |
| Constructor Summary | |
|---|---|
CDelayedDraw()
|
|
| Method Summary | |
|---|---|
void |
DelayDrawText(java.lang.String str,
int x1,
int y1,
long Size)
Queues up a piece of text for drawing. |
void |
Draw(CDasherScreen screen)
Draws all queued up text to a given screen, and clears the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<CDelayedDraw.CTextString> m_DrawTextString
| Constructor Detail |
|---|
public CDelayedDraw()
| Method Detail |
|---|
public void DelayDrawText(java.lang.String str,
int x1,
int y1,
long Size)
str - String to drawx1 - x co-ordinate of top-left corner of the string's bounding boxy1 - y co-ordinate of top-left corner of the string's bounding boxSize - Font size to usepublic void Draw(CDasherScreen screen)
screen - Screen to which we should draw
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||