Step 6 (Extra):

Modify the app so that the text appears within the TV screen.

Hints:
Do this part in steps.
First, modify
drawStringAsSpecified to accept and to make use an additional Dimension parameter (representing the bounding box). To start, just pass the value of getSize() as the parameter value. You can manually text alterations to the width and height.

Next, modify
drawStringAsSpecified to accept and to make use an additional Point parameter (representing the anchor). To start, just pass the value of (0,0) as the parameter value. You can manually test different anchor points.

Last, use the Shape that is outline for the screen as the source of the bounding box and anchor information. Only draw the text and not the Shape.


Pasted Graphic
Pasted Graphic 1