|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdox.gui.StringPlacer
A class to do some calculating on a String used for scrolling on the AboutPane, so that the String always is placed in the middle. This class also stores the position of the String. A call to setHeight sets the current positiont to -1, reset, resets the currentHeight to the original height.
AboutDialog| Constructor Summary | |
StringPlacer(java.lang.String na,
java.awt.FontMetrics fm,
int w,
int h,
int xL)
Construct a new StringPlacer Object with given parameters. |
|
| Method Summary | |
int |
getCenterPosition()
Returns the x position of the String to center it. |
int |
getCurrentHeight()
returns the current position of the text on the backgroundimage. |
java.lang.String |
getString()
Returns the String used in this StringPlacer. |
void |
reset()
Resets all the standard settings. |
void |
setCurrentHeight()
Sets the current y position -1. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringPlacer(java.lang.String na,
java.awt.FontMetrics fm,
int w,
int h,
int xL)
na - the String to do the calculating on,fm - the FontMetrics with which the text will be drawn, used to calculate the center of the String,w - the imageWidth,h - the imageHeight,xL - the start offset of the nextLines, 0 for first 13 for second, 26.... etc| Method Detail |
public int getCenterPosition()
public void reset()
public int getCurrentHeight()
public void setCurrentHeight()
public java.lang.String getString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||