コード例 #1
0
ファイル: BuilderExample.java プロジェクト: dgkim11/examples
 public void example() {
   Stylesheet style =
       new Stylesheet.Builder(200, 500)
           .foregroundColor(new Color("yellow"))
           .backgroundColor(new Color("green"))
           .build();
   System.out.println("foregroundColor : " + style.getForegroundColor().getName());
   System.out.println("backgroundColor : " + style.getBackgroundColor().getName());
   System.out.println("fontSize : " + style.getFontSize());
   System.out.println("fontName : " + style.getFontName());
   System.out.println("width : " + style.getWidth());
   System.out.println("height : " + style.getHeight());
 }