public void setToDefault ( String propertyGroup ) { if ( COLOR . equals ( propertyGroup ) ) { setProperty ( COLOR_FG , new Color ( 0 , 0 , 0 ) ) ; setProperty ( COLOR_BG , new Color ( 255 , 255 , 255 ) ) ; return ; } if ( CHARACTER . equals ( propertyGroup ) ) { setProperty ( CHARACTER_BOLD , 0 ) ; setProperty ( CHARACTER_UNDERLINE , 0 ) ; setProperty ( CHARACTER_ITALIC , 0 ) ; setProperty ( CHARACTER_SIZE , 24 ) ; // 1/2 pt sizes setProperty ( CHARACTER_FONT , 0 ) ; return ; } if ( PARAGRAPH . equals ( propertyGroup ) ) { setProperty ( PARAGRAPH_INDENT_LEFT , 0 ) ; setProperty ( PARAGRAPH_INDENT_RIGHT , 0 ) ; setProperty ( PARAGRAPH_INDENT_FIRST_LINE , 0 ) ; setProperty ( PARAGRAPH_JUSTIFICATION , JUSTIFY_LEFT ) ; setProperty ( PARAGRAPH_BORDER , PARAGRAPH_BORDER_NIL ) ; setProperty ( PARAGRAPH_BORDER_CELL , PARAGRAPH_BORDER_NIL ) ; return ; } if ( SECTION . equals ( propertyGroup ) ) { setProperty ( SECTION_NUMBER_OF_COLUMNS , 0 ) ; setProperty ( SECTION_BREAK_TYPE , SBK_NONE ) ; setProperty ( SECTION_PAGE_NUMBER_POSITION_X , 0 ) ; setProperty ( SECTION_PAGE_NUMBER_POSITION_Y , 0 ) ; setProperty ( SECTION_PAGE_NUMBER_FORMAT , PGN_DECIMAL ) ; return ; } if ( DOCUMENT . equals ( propertyGroup ) ) { setProperty ( DOCUMENT_PAGE_WIDTH_TWIPS , 12240 ) ; setProperty ( DOCUMENT_PAGE_HEIGHT_TWIPS , 15480 ) ; setProperty ( DOCUMENT_MARGIN_LEFT_TWIPS , 1800 ) ; setProperty ( DOCUMENT_MARGIN_TOP_TWIPS , 1440 ) ; setProperty ( DOCUMENT_MARGIN_RIGHT_TWIPS , 1800 ) ; setProperty ( DOCUMENT_MARGIN_BOTTOM_TWIPS , 1440 ) ; setProperty ( DOCUMENT_PAGE_NUMBER_START , 1 ) ; setProperty ( DOCUMENT_ENABLE_FACING_PAGES , 1 ) ; setProperty ( DOCUMENT_PAGE_ORIENTATION , PAGE_PORTRAIT ) ; setProperty ( DOCUMENT_DEFAULT_FONT_NUMER , 0 ) ; return ; } }
Set individual property group to default values .