예제 #1
0
 /**
  * Render the text in the given font in the given colour with the default style.
  *
  * @param <F> the font
  * @param text the text
  * @param pt the coordinate to render at
  * @param f the font
  * @param sz the size
  * @param col the font colour
  */
 public <F extends Font<F>> void drawText(
     final String text, final Point2d pt, final F f, final int sz, final Q col) {
   final FontStyle<Q> sty = f.createStyle(this);
   sty.setFontSize(sz);
   sty.setColour(col);
   f.getRenderer(this).renderText(this, text, (int) pt.getX(), (int) pt.getY(), sty);
 }
예제 #2
0
 /**
  * Render the text with the given {@link FontStyle}.
  *
  * @param text the text
  * @param pt the coordinate to render at
  * @param f the font style
  */
 public void drawText(final String text, final Point2d pt, final FontStyle<Q> f) {
   f.getRenderer(this).renderText(this, text, (int) pt.getX(), (int) pt.getY(), f);
 }
예제 #3
0
 /**
  * Render the text with the given {@link FontStyle}.
  *
  * @param text the text
  * @param x the x-ordinate
  * @param y the y-ordinate
  * @param f the font style
  */
 public void drawText(final String text, final int x, final int y, final FontStyle<Q> f) {
   f.getRenderer(this).renderText(this, text, x, y, f);
 }
예제 #4
0
 /**
  * Render the text in the given font with the default style.
  *
  * @param <F> the font
  * @param text the text
  * @param x the x-ordinate
  * @param y the y-ordinate
  * @param f the font
  * @param sz the size
  */
 public <F extends Font<F>> void drawText(
     final String text, final int x, final int y, final F f, final int sz) {
   final FontStyle<Q> sty = f.createStyle(this);
   sty.setFontSize(sz);
   f.getRenderer(this).renderText(this, text, x, y, sty);
 }