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()); }