System.out.println();
}
- private static void createSplitWriters( File out_dir, String my_outfile, Map<Character, Writer> split_writers )
- throws IOException {
+ private static void createSplitWriters( final File out_dir,
+ final String my_outfile,
+ final Map<Character, Writer> split_writers ) throws IOException {
split_writers.put( 'a', new BufferedWriter( new FileWriter( out_dir + ForesterUtil.FILE_SEPARATOR + my_outfile
+ "_domains_A.html" ) ) );
split_writers.put( 'b', new BufferedWriter( new FileWriter( out_dir + ForesterUtil.FILE_SEPARATOR + my_outfile
private double _max_distance_to_root = -1;
private int _dynamic_hiding_factor = 0;
private boolean _edited = false;
- private Popup _node_desc_popup;
+ private Popup _node_desc_popup;
private JTextArea _rollover_popup;
// private final int _box_size;
// private final int _half_box_size;
else {
sb.append( " " );
}
-
-
final Property p = properties.getProperty( ref );
-
sb.append( getPartAfterColon( p.getRef() ) );
sb.append( "=" );
sb.append( p.getValue() );
}
return sb;
}
-
+
final private static String getPartAfterColon( final String s ) {
final int i = s.indexOf( ':' );
- if ( (i < 1) ||( i == ( s.length()-1)) ) {
+ if ( ( i < 1 ) || ( i == ( s.length() - 1 ) ) ) {
return s;
}
return s.substring( i + 1, s.length() );
}
}
}
-
if ( _popup_buffer.length() > 0 ) {
if ( !getConfiguration().isUseNativeUI() ) {
_rollover_popup
System.out.println( "Pearsonian skewness : n/a" );
}
}
-
- if ( single_writer != null && ( split_writers == null || split_writers.isEmpty() ) ) {
+ if ( ( single_writer != null ) && ( ( split_writers == null ) || split_writers.isEmpty() ) ) {
split_writers = new HashMap<Character, Writer>();
split_writers.put( '_', single_writer );
-
}
-
switch ( print_option ) {
case SIMPLE_TAB_DELIMITED:
break;
case HTML:
- for (Writer w : split_writers.values()) {
+ for( final Writer w : split_writers.values() ) {
w.write( "<html>" );
w.write( SurfacingConstants.NL );
addHtmlHead( w, "SURFACING :: " + html_title );
}
break;
}
- for (Writer w : split_writers.values()) {
+ for( final Writer w : split_writers.values() ) {
w.write( SurfacingConstants.NL );
}
for( final DomainSimilarity similarity : similarities ) {
single_writer.write( similarity.toStringBuffer( print_option ).toString() );
}
else {
- Writer local_writer = split_writers.get( ( similarity.getDomainId().getId().charAt( 0 ) + "" ).toLowerCase().charAt( 0 ) );
+ Writer local_writer = split_writers.get( ( similarity.getDomainId().getId().charAt( 0 ) + "" )
+ .toLowerCase().charAt( 0 ) );
if ( local_writer == null ) {
local_writer = split_writers.get( '0' );
- }
+ }
local_writer.write( similarity.toStringBuffer( print_option ).toString() );
}
- for (Writer w : split_writers.values()) {
+ for( final Writer w : split_writers.values() ) {
w.write( SurfacingConstants.NL );
}
}
switch ( print_option ) {
case HTML:
- for (Writer w : split_writers.values()) {
- w.write( SurfacingConstants.NL );
- w.write( "</table>" );
- w.write( SurfacingConstants.NL );
- w.write( "</font>" );
- w.write( SurfacingConstants.NL );
- w.write( "</body>" );
- w.write( SurfacingConstants.NL );
- w.write( "</html>" );
- w.write( SurfacingConstants.NL );
+ for( final Writer w : split_writers.values() ) {
+ w.write( SurfacingConstants.NL );
+ w.write( "</table>" );
+ w.write( SurfacingConstants.NL );
+ w.write( "</font>" );
+ w.write( SurfacingConstants.NL );
+ w.write( "</body>" );
+ w.write( SurfacingConstants.NL );
+ w.write( "</html>" );
+ w.write( SurfacingConstants.NL );
}
break;
}
- for (Writer w : split_writers.values()) {
- w.close();
+ for( final Writer w : split_writers.values() ) {
+ w.close();
}
return stats;
}