public static String createAlignmentValue(boolean forceSplit,int wrapStyle,int indentStyle){
  int alignmentValue=0;
switch (wrapStyle) {
case WRAP_COMPACT:
    alignmentValue|=Alignment.M_COMPACT_SPLIT;
  break;
case WRAP_COMPACT_FIRST_BREAK:
alignmentValue|=Alignment.M_COMPACT_FIRST_BREAK_SPLIT;
break;
case WRAP_NEXT_PER_LINE:
alignmentValue|=Alignment.M_NEXT_PER_LINE_SPLIT;
break;
case WRAP_NEXT_SHIFTED:
alignmentValue|=Alignment.M_NEXT_SHIFTED_SPLIT;
break;
case WRAP_ONE_PER_LINE:
alignmentValue|=Alignment.M_ONE_PER_LINE_SPLIT;
break;
}
if (forceSplit) {
alignmentValue|=Alignment.M_FORCE;
}
switch (indentStyle) {
case INDENT_BY_ONE:
alignmentValue|=Alignment.M_INDENT_BY_ONE;
break;
case INDENT_ON_COLUMN:
alignmentValue|=Alignment.M_INDENT_ON_COLUMN;
}
return String.valueOf(alignmentValue);
}

public static String createAlignmentValue ( boolean forceSplit , int wrapStyle , int indentStyle ) { int alignmentValue = 0 ; switch ( wrapStyle ) { case WRAP_COMPACT : alignmentValue |= Alignment . M_COMPACT_SPLIT ; break ; case WRAP_COMPACT_FIRST_BREAK : alignmentValue |= Alignment . M_COMPACT_FIRST_BREAK_SPLIT ; break ; case WRAP_NEXT_PER_LINE : alignmentValue |= Alignment . M_NEXT_PER_LINE_SPLIT ; break ; case WRAP_NEXT_SHIFTED : alignmentValue |= Alignment . M_NEXT_SHIFTED_SPLIT ; break ; case WRAP_ONE_PER_LINE : alignmentValue |= Alignment . M_ONE_PER_LINE_SPLIT ; break ; } if ( forceSplit ) { alignmentValue |= Alignment . M_FORCE ; } switch ( indentStyle ) { case INDENT_BY_ONE : alignmentValue |= Alignment . M_INDENT_BY_ONE ; break ; case INDENT_ON_COLUMN : alignmentValue |= Alignment . M_INDENT_ON_COLUMN ; } return String . valueOf ( alignmentValue ) ; }
create a new alignment value according to the given values . this must be used to set up the alignment options .
