|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.util.DeviceString
This immutable class represents a string on a specific device. The dimensions of the string might depend on the resolution and the print capabilities of the device (e.g. ligature).
Constructor Summary | |
DeviceString(java.lang.String text,
java.awt.FontMetrics fm)
Constructs a new DeviceString using the given text and font metrics. |
Method Summary | |
float |
ascent()
Returns the ascent of the text. |
float |
descent()
Returns the descent of the text. |
float |
height()
Returns the height of the string. |
java.lang.String |
text()
Returns the text of this DeviceString . |
float |
width()
Returns the with of the string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeviceString(java.lang.String text, java.awt.FontMetrics fm)
DeviceString
using the given text and font metrics.
text
- The text, might also be null.fm
- The font metrics, not null.Method Detail |
public float width()
public float height()
public java.lang.String text()
DeviceString
.
public float ascent()
public float descent()
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |