Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv2152
Modified Files:
AllocHistogramTable.java
Log Message:
new design
Index: AllocHistogramTable.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/AllocHistogramTable.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** AllocHistogramTable.java 8 Aug 2002 00:18:23 -0000 1.6
--- AllocHistogramTable.java 8 Aug 2002 23:32:42 -0000 1.7
***************
*** 161,169 ****
barMax = barMax * 2;
- //FIXME??invoke later
repaint();
}
bar.setValue( (int) ((100*alloc.getLiveInstancesCount())/barMax) );
if (isBordered) {
--- 161,173 ----
barMax = barMax * 2;
repaint();
}
bar.setValue( (int) ((100*alloc.getLiveInstancesCount())/barMax) );
+
+ //??
+ if ( bar.getValue() < 1 && alloc.getLiveInstancesCount() > 0) {
+ bar.setValue(1);
+ }
if (isBordered) {
***************
*** 182,192 ****
}
}
return this;
}
}
//end of Renderers
!
! //editors
! //private class LongStringEditor extends
!
}
--- 186,205 ----
}
}
+
+ //??
+ bar.setBackground( Color.white );
+ bar.setBorderPainted( false );
+ if (isBordered) {
+ if (isSelected) {
+ bar.setBackground( table.getSelectionBackground() );
+ } else {
+ bar.setBackground( table.getBackground() );
+ }
+ }
+
return this;
}
}
//end of Renderers
!
}
|