/** * Adds a line of text that will be displayed using the specified font. * * @param text the text. * @param font the font. * @param paint the paint. */ public void addLine(final String text, final Font font, final Paint paint) { addLine(new TextLine(text, font, paint)); }
/** * Adds a line of text that will be displayed using the specified font. * * @param text the text. * @param font the font. * @param paint the paint. */ public void addLine(final String text, final Font font, final Paint paint) { addLine(new TextLine(text, font, paint)); }
/** * Adds a line of text that will be displayed using the specified font. * * @param text the text. * @param font the font. * @param paint the paint. */ public void addLine(final String text, final Font font, final Paint paint) { addLine(new TextLine(text, font, paint)); }
/** * Creates a text box. * * @param text the text. */ public TextBox(final String text) { this((TextBlock) null); if (text != null) { this.textBlock = new TextBlock(); this.textBlock.addLine( text, new Font("SansSerif", Font.PLAIN, 10), Color.black ); } }
/** * Creates a text box. * * @param text the text. */ public TextBox(final String text) { this((TextBlock) null); if (text != null) { this.textBlock = new TextBlock(); this.textBlock.addLine( text, new Font("SansSerif", Font.PLAIN, 10), Color.black ); } }
/** * Creates a text box. * * @param text the text. */ public TextBox(final String text) { this((TextBlock) null); if (text != null) { this.textBlock = new TextBlock(); this.textBlock.addLine( text, new Font("SansSerif", Font.PLAIN, 10), Color.black ); } }
TextLine line = new TextLine(s, this.sublabelFont, this.sublabelPaint); label.addLine(line);