|
From: Lukas P. <pe...@us...> - 2002-09-03 17:55:06
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets
In directory usw-pr-cvs1:/tmp/cvs-serv17624
Modified Files:
BacktraceItemSheet.java CallTreeItemSheet.java ClassSheet.java
FieldSheet.java MethodSheet.java PSelectorSheet.java
SheetFactory.java ThreadgroupSheet.java ThreadSheet.java
TraceSheet.java TypeSheet.java
Log Message:
updated javadoc
Index: BacktraceItemSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/BacktraceItemSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** BacktraceItemSheet.java 28 Aug 2002 18:06:27 -0000 1.1
--- BacktraceItemSheet.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 47,51 ****
import net.sourceforge.javaprofiler.jpi.CPUStat;
! /** Serves for creation of PropertySheet for call backtrace item.
* @author Lukas Petru
*/
--- 47,53 ----
import net.sourceforge.javaprofiler.jpi.CPUStat;
! /** This is a property sheet factory for Merg Trace item objects. It is
! * constructed for a key <code>FrameRef</code> and a list of child Merg Traces.
! * It shows properties of the Frame and CPU stats.
* @author Lukas Petru
*/
***************
*** 104,107 ****
--- 106,112 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:27 petrul
* property sheets for nodes ver 2
Index: CallTreeItemSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/CallTreeItemSheet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CallTreeItemSheet.java 31 Aug 2002 08:46:02 -0000 1.2
--- CallTreeItemSheet.java 3 Sep 2002 17:54:59 -0000 1.3
***************
*** 46,50 ****
import net.sourceforge.javaprofiler.jpi.CallTreeRef;
! /** Serves for creation of PropertySheet for call tree item.
* @author Lukas Petru
*/
--- 46,52 ----
import net.sourceforge.javaprofiler.jpi.CallTreeRef;
! /** This is a property sheet factory for Calltree item objects. It is
! * constructed for a <code>CallTreeRef</code>.
! * It shows properties of the Frame and CPU stats.
* @author Lukas Petru
*/
***************
*** 103,106 ****
--- 105,111 ----
/*
* $Log$
+ * Revision 1.3 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.2 2002/08/31 08:46:02 petrul
* added Class property
Index: ClassSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/ClassSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ClassSheet.java 28 Aug 2002 18:06:27 -0000 1.1
--- ClassSheet.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 45,48 ****
--- 45,53 ----
import net.sourceforge.javaprofiler.jpi.ClassRef;
+ /** This is a property sheet factory for Class objects. It is
+ * constructed for a <code>ClassRef</code>.
+ * It shows properties of the class.
+ * @author Lukas Petru
+ */
public class ClassSheet implements SheetFactory {
private ClassRef ref;
***************
*** 79,82 ****
--- 84,90 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:27 petrul
* property sheets for nodes ver 2
Index: FieldSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/FieldSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FieldSheet.java 28 Aug 2002 18:06:27 -0000 1.1
--- FieldSheet.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 45,48 ****
--- 45,53 ----
import net.sourceforge.javaprofiler.jpi.FieldRef;
+ /** This is a property sheet factory for Field objects. It is constructed for a
+ * <code>FieldRef</code>.
+ * It shows properties of the field.
+ * @author Lukas Petru
+ */
public class FieldSheet implements SheetFactory {
private FieldRef ref;
***************
*** 91,94 ****
--- 96,102 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:27 petrul
* property sheets for nodes ver 2
Index: MethodSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/MethodSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** MethodSheet.java 28 Aug 2002 18:06:27 -0000 1.1
--- MethodSheet.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 45,48 ****
--- 45,53 ----
import net.sourceforge.javaprofiler.jpi.MethodRef;
+ /** This is a property sheet factory for Method objects. It is constructed for a
+ * <code>MethodRef</code>.
+ * It shows properties of the method, Alloc, CPU and Mon stats.
+ * @author Lukas Petru
+ */
public class MethodSheet implements SheetFactory {
private MethodRef ref;
***************
*** 101,104 ****
--- 106,112 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:27 petrul
* property sheets for nodes ver 2
Index: PSelectorSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/PSelectorSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** PSelectorSheet.java 31 Aug 2002 08:47:05 -0000 1.1
--- PSelectorSheet.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 47,50 ****
--- 47,55 ----
import java.beans.PropertyEditorSupport;
+ /** This is a property sheet factory for PSelectorNode. It gets a <code>
+ * PDataChildren</code> and child type in constructor.
+ * It shows the children sort mode property.
+ * @author Lukas Petru
+ */
public class PSelectorSheet implements SheetFactory {
private final PDataChildren children;
***************
*** 83,88 ****
}
class DataSortEditor extends PropertyEditorSupport {
! private static String[] texts={"(unsorted)", "Name", "Alloc", "CPU", "Mon"};
private final int type;
--- 88,99 ----
}
+ /** This editor enables to choose a sort mode for children of some
+ * PSelectorNode. It gets a child type in a constructor and offers only sort
+ * modes adequate for that child type.
+ * @author Lukas Petru
+ */
class DataSortEditor extends PropertyEditorSupport {
! private static String[] texts={"(unsorted)", "Name", "Alloc Live",
! "Alloc Total", "CPU", "Mon"};
private final int type;
***************
*** 110,119 ****
res[i++]=texts[0];
res[i++]=texts[1];
! if (InterfaceRepository.hasAlloc(type))
res[i++]=texts[2];
- if (InterfaceRepository.hasCPU(type))
res[i++]=texts[3];
! if (InterfaceRepository.hasMon(type))
res[i++]=texts[4];
String[] res2=new String[i];
System.arraycopy(res, 0, res2, 0, i);
--- 121,132 ----
res[i++]=texts[0];
res[i++]=texts[1];
! if (InterfaceRepository.hasAlloc(type)) {
res[i++]=texts[2];
res[i++]=texts[3];
! }
! if (InterfaceRepository.hasCPU(type))
res[i++]=texts[4];
+ if (InterfaceRepository.hasMon(type))
+ res[i++]=texts[5];
String[] res2=new String[i];
System.arraycopy(res, 0, res2, 0, i);
***************
*** 124,127 ****
--- 137,143 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/31 08:47:05 petrul
* 'Sort by' property
Index: SheetFactory.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/SheetFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SheetFactory.java 28 Aug 2002 18:06:28 -0000 1.1
--- SheetFactory.java 3 Sep 2002 17:54:59 -0000 1.2
***************
*** 42,45 ****
--- 42,48 ----
*/
public interface SheetFactory {
+
+ /** New property sheet is created and returned when this method is called.
+ */
public Sheet create();
}
***************
*** 47,50 ****
--- 50,56 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:54:59 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:28 petrul
* property sheets for nodes ver 2
Index: ThreadgroupSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/ThreadgroupSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ThreadgroupSheet.java 28 Aug 2002 18:06:28 -0000 1.1
--- ThreadgroupSheet.java 3 Sep 2002 17:55:00 -0000 1.2
***************
*** 46,49 ****
--- 46,54 ----
import net.sourceforge.javaprofiler.jpi.ThreadGroupRef;
+ /** This is a property sheet factory for Threadgroup objects. It is constructed
+ * for a <code>ThreadGroupRef</code>.
+ * It shows properties of the thread group.
+ * @author Lukas Petru
+ */
public class ThreadgroupSheet implements SheetFactory {
private ThreadGroupRef ref;
***************
*** 74,77 ****
--- 79,85 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:55:00 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:28 petrul
* property sheets for nodes ver 2
Index: ThreadSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/ThreadSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ThreadSheet.java 28 Aug 2002 18:06:28 -0000 1.1
--- ThreadSheet.java 3 Sep 2002 17:55:00 -0000 1.2
***************
*** 46,49 ****
--- 46,54 ----
import net.sourceforge.javaprofiler.jpi.ThreadRef;
+ /** This is a property sheet factory for Thread objects. It is constructed
+ * for a <code>ThreadRef</code>.
+ * It shows properties of the thread and alloc stats.
+ * @author Lukas Petru
+ */
public class ThreadSheet implements SheetFactory {
private ThreadRef ref;
***************
*** 69,76 ****
String.class, "getName", null);
} else {
! pr=new PropertySupport.ReadOnly("", String.class, "", "") {
! public Object getValue() throws IllegalAccessException,
! InvocationTargetException {return "null";}
! };
}
pr.setName("ParentThread");
--- 74,79 ----
String.class, "getName", null);
} else {
! pr=new PropertySupport.Reflection(this,
! String.class, "none", null);
}
pr.setName("ParentThread");
***************
*** 98,105 ****
--- 101,115 ----
return sh;
}
+
+ public String none() {
+ return "(none)";
+ }
}
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:55:00 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:28 petrul
* property sheets for nodes ver 2
Index: TraceSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/TraceSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TraceSheet.java 31 Aug 2002 08:47:36 -0000 1.1
--- TraceSheet.java 3 Sep 2002 17:55:00 -0000 1.2
***************
*** 49,52 ****
--- 49,58 ----
import net.sourceforge.javaprofiler.module.nodes.*;
+ /** This is a property sheet factory for Trace objects. It is constructed
+ * for a <code>TraceRef</code>.
+ * It shows properties of the trace and according to the actual type of the
+ * object it shows alloc, CPU or mon stats.
+ * @author Lukas Petru
+ */
public class TraceSheet implements SheetFactory {
private final TraceRef ref;
***************
*** 96,99 ****
--- 102,108 ----
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:55:00 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/31 08:47:36 petrul
* added Frames property
Index: TypeSheet.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/sheets/TypeSheet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TypeSheet.java 28 Aug 2002 18:06:28 -0000 1.1
--- TypeSheet.java 3 Sep 2002 17:55:00 -0000 1.2
***************
*** 45,48 ****
--- 45,53 ----
import net.sourceforge.javaprofiler.jpi.TypeRef;
+ /** This is a property sheet factory for Type objects. It is constructed
+ * for a <code>TypeRef</code>.
+ * It shows properties of the type and alloc stats.
+ * @author Lukas Petru
+ */
public class TypeSheet implements SheetFactory {
private TypeRef ref;
***************
*** 68,75 ****
String.class, "toString", null);
} else {
! pr=new PropertySupport.ReadOnly("", String.class, "", "") {
! public Object getValue() throws IllegalAccessException,
! InvocationTargetException {return "null";}
! };
}
pr.setName("ComponentClass");
--- 73,78 ----
String.class, "toString", null);
} else {
! pr=new PropertySupport.Reflection(this,
! String.class, "none", null);
}
pr.setName("ComponentClass");
***************
*** 96,103 ****
--- 99,113 ----
return sh;
}
+
+ public String none() {
+ return "N/A";
+ }
}
/*
* $Log$
+ * Revision 1.2 2002/09/03 17:55:00 petrul
+ * updated javadoc
+ *
* Revision 1.1 2002/08/28 18:06:28 petrul
* property sheets for nodes ver 2
|