예제 #1
0
 void renderSubtitle(Graphics2D g) {
   subtitleDuration--;
   subtitleStyle.renderString(
       subtitle,
       new Point(WIDTH / 2.0, 30),
       TextStyle.ReferencePointLocation.BOTTOM_CENTER,
       g,
       null);
 }
예제 #2
0
 void renderTitle(Graphics2D g) {
   titleDuration--;
   titleStyle.renderString(
       title,
       new Point(WIDTH / 2.0, HEIGHT / 2.0),
       TextStyle.ReferencePointLocation.CENTER,
       g,
       null);
 }