We now generalize DrawableString to handle an array of strings: class DrawableStrings extends Font { int n; String[] string; Color color; DrawableStrings( String[] string ); void centerDraw( Component c ); } |
The API of the DrawableStrings class is essentially the same as before |