Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views
In directory usw-pr-cvs1:/tmp/cvs-serv14290
Modified Files:
ActiveThreadsView.java
Log Message:
added new constructor
Index: ActiveThreadsView.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/views/ActiveThreadsView.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ActiveThreadsView.java 29 Jul 2002 16:41:58 -0000 1.1
--- ActiveThreadsView.java 30 Jul 2002 12:23:04 -0000 1.2
***************
*** 43,47 ****
import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
! /** This component provides is a panel containing graph of active threads and
* two labels showing the maximum and current count of active threads.
* @author Lukas Petru
--- 43,47 ----
import net.sourceforge.javaprofiler.jpiimpl.realtime.*;
! /** This component provides a panel containing graph of active threads and
* two labels showing the maximum and current count of active threads.
* @author Lukas Petru
***************
*** 56,64 ****
/** Constructs a panel and an associated TimerTask. The graph is updated
* whenewer the associated TimerTask is run.
*/
! public ActiveThreadsView(final ImageR image) {
super(new BorderLayout());
graph=new TimeSeriesGraph();
add(graph, BorderLayout.CENTER);
--- 56,66 ----
/** Constructs a panel and an associated TimerTask. The graph is updated
* whenewer the associated TimerTask is run.
+ * @param size number of samples shown in the graph
*/
! public ActiveThreadsView(final ImageR image, int size) {
super(new BorderLayout());
graph=new TimeSeriesGraph();
+ graph.setGraphColor(new java.awt.Color(0x008000));
add(graph, BorderLayout.CENTER);
***************
*** 75,78 ****
--- 77,81 ----
sPanel.add(label2);
sPanel.add(label1);
+ sPanel.setBackground(null);
add(sPanel, BorderLayout.SOUTH);
***************
*** 96,99 ****
--- 99,109 ----
}
};
+ }
+
+ /** Constructs a panel and an associated TimerTask. The graph is updated
+ * whenewer the associated TimerTask is run.
+ */
+ public ActiveThreadsView(final ImageR image) {
+ this(image, 30);
}
|