I have a font object and a String. I want to return a Shape Object that is a representation of the String. I have a whole bunch of other classes that will display the String and take care of it.
I'm having trouble figuring out how to do this when I do not have a graphics/graphics2d object. Any Help? I have searched the net but had trouble finding helpful links.
public class SpecializationOfTester extends ParentTester {
private String str;
private Font font;
public SpecializationOfTester(String str, Font font) {
this.font = font;
this.str = str;
}
public Shape getShape()
{
Shape s;
//
//
return s;
}
}
Thanks