|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.uml.line.LabelSizeComputation
public class LabelSizeComputation
Class responsible for computing the size of a label
Method Summary | |
---|---|
org.acm.seguin.uml.line.TextInfo |
compute(java.lang.String text,
java.awt.Font font)
Computes the size of a piece of text given a font |
int |
computeHeight(java.lang.String text,
java.awt.Font font)
Computes the size of a piece of text given a font |
static LabelSizeComputation |
get()
Factory method for this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public org.acm.seguin.uml.line.TextInfo compute(java.lang.String text, java.awt.Font font)
text
- the textfont
- the font
public int computeHeight(java.lang.String text, java.awt.Font font)
text
- the textfont
- the font
public static LabelSizeComputation get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |