|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.tools.generic.DisplayTool.Measurements
public static class DisplayTool.Measurements
Measures the dimensions of the string given to its constructor. Height is the number of lines in the string. Width is the number of characters in the longest line.
Field Summary | |
---|---|
private int |
height
|
private int |
width
|
Constructor Summary | |
---|---|
DisplayTool.Measurements(java.lang.String s)
|
Method Summary | |
---|---|
int |
getHeight()
|
int |
getWidth()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int height
private int width
Constructor Detail |
---|
public DisplayTool.Measurements(java.lang.String s)
Method Detail |
---|
public int getHeight()
public int getWidth()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |