コード例 #1
0
 /**
  * Sets the title.
  *
  * <p>The font names understood are those understood by java.awt.Font.decode(). If the font name
  * is null, the font remains unchanged.
  *
  * @param title
  * @param font_name an optional font name
  */
 public void setTitle(String title, String font_name) {
   axisLabel.setText(title);
   if ((font_name == null) || font_name.equals("")) { // $NON-NLS-1$
     return;
   }
   axisLabel.setFont(Font.decode(font_name));
 }
コード例 #2
0
 /**
  * Sets the title.
  *
  * @param title
  */
 public void setTitle(String title) {
   axisLabel.setText(title);
 }