You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(204) |
Jul
(365) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ben...@id...> - 2004-05-22 12:09:34
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: <d3...@us...> - 2003-07-21 06:51:23
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv19699
Modified Files:
AnalyseFensterMenue.java AnalyseFenster.java
Log Message:
Menü Punkt Profiling und Unterpunkt Diagramm zu Menü Profiling hinzugefügt
Index: AnalyseFensterMenue.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalyseFensterMenue.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- AnalyseFensterMenue.java 18 Jul 2003 23:35:11 -0000 1.14
+++ AnalyseFensterMenue.java 21 Jul 2003 06:51:19 -0000 1.15
@@ -30,6 +30,7 @@
private static final String ANALYSEPUNKTMENU="Analysepunkt";
private static final String ANSICHTMENU="Ansicht";
private static final String HILFEMENU="Hilfe";
+ private static final String PROFILINGMENU="Profiling";
private static final String ANALYSEMENUSTART="starten";
private static final String ANALYSEMENUSTOP="stoppen";
private static final String ANALYSEMENULADEN="laden";
@@ -45,6 +46,7 @@
private static final String ANSICHTMENUTABELLE="Tabelle";
private static final String ANSICHTMENUSHELL="Shell";
private static final String HILFEMENUANZEIGEN="anzeigen";
+ private static final String PROFILINGFRAME = "Diagramm";
/**
* Menu-Bestandteile
@@ -53,6 +55,7 @@
JMenu analysePunkteMenue;
JMenu sichtMenue;
JMenu hilfeMenue;
+ JMenu profilingMenue;
JMenuItem analyseStart;
JMenuItem analyseStop;
// JMenuItem analyseLade;
@@ -71,6 +74,9 @@
JMenuItem ansichtShell;
JMenuItem hilfeAnzeigen;
+
+ JMenuItem profilingFrame;
+
//boolean tastenLeisteIstSichtbar=true;
@@ -91,11 +97,16 @@
sichtMenue= new JMenu(ANSICHTMENU);
initSichtMenue();
add(sichtMenue);
+
+ this.profilingMenue = new JMenu (PROFILINGMENU);
+ this.initProfilingMenue();
+ add (this.profilingMenue);
+
// Ordne Menupunkt Hilfe am rechten Rand an
add(Box.createHorizontalGlue());
hilfeMenue = new JMenu(HILFEMENU);
initHilfeMenue();
- add(hilfeMenue);
+ add(hilfeMenue);
}
private void initAnalyseMenue(){
@@ -139,6 +150,13 @@
sichtMenue.add(ansichtTab);
sichtMenue.add(ansichtGraph);
sichtMenue.add(ansichtShell);
+ }
+
+ private void initProfilingMenue()
+ {
+ this.profilingFrame = new JMenuItem (PROFILINGFRAME);
+
+ this.profilingMenue.add (this.profilingFrame);
}
private void initHilfeMenue(){
Index: AnalyseFenster.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalyseFenster.java,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- AnalyseFenster.java 20 Jul 2003 18:34:41 -0000 1.71
+++ AnalyseFenster.java 21 Jul 2003 06:51:19 -0000 1.72
@@ -36,6 +36,7 @@
import exdigsim.guilayer.debugger.StopKommando;
import exdigsim.guilayer.debugger.ShowShellKommando;
import exdigsim.guilayer.debugger.QuitShellKommando;
+import exdigsim.guilayer.profiling.ProfilingFrame;
import exdigsim.logiclayer.AbstractAnalysepunkt;
import exdigsim.logiclayer.AbstractBaustein;
import exdigsim.logiclayer.analysekomponenten.AnalysepunktImpl;
@@ -131,6 +132,8 @@
* Referenz zum Parent-Container
*/
private JDesktopPane desktop;
+
+ private ProfilingFrame profilingFrame;
//Konstruktor
@@ -460,6 +463,8 @@
System.getProperty("file.separator")+HILFEPFAD+HILFEDATEI;
hilfeDialog=new AnalyseFensterHilfe(null,HILFEFENSTERSTR,url);
hilfeDialog.setSize(HILFEFENSTERBREITE,HILFEFENSTERHOEHE);
+
+ this.profilingFrame = new ProfilingFrame (this.daten);
}
/**
* initialisiert die MenueLeiste
@@ -553,6 +558,12 @@
showHilfeDialog();
}});
+
+ menuLeiste.profilingFrame.addActionListener (new ActionListener() {
+ public void actionPerformed (ActionEvent e) {
+ profilingFrame.setVisible (true);
+ }
+ });
menuLeiste.analyseStart.setEnabled(false);
|
|
From: <d3...@us...> - 2003-07-21 06:39:12
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling
In directory sc8-pr-cvs1:/tmp/cvs-serv18003
Modified Files:
ProfilingFrame.java
Log Message:
Man sollte schon compilieren, was man commited...
Index: ProfilingFrame.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling/ProfilingFrame.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ProfilingFrame.java 21 Jul 2003 06:37:38 -0000 1.3
+++ ProfilingFrame.java 21 Jul 2003 06:39:07 -0000 1.4
@@ -78,7 +78,7 @@
{
if (on)
{
- if (!super.isVisbile())
+ if (!super.isVisible())
{
this.zaehlAnalysepunkte.clear();
this.wirklicheZaehlAnalysepunkte.clear();
|
|
From: <d3...@us...> - 2003-07-21 06:38:19
|
Update of /cvsroot/yacr/analysis
In directory sc8-pr-cvs1:/tmp/cvs-serv17891
Modified Files:
Makefile
Log Message:
Aktualisiert?
Index: Makefile
===================================================================
RCS file: /cvsroot/yacr/analysis/Makefile,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Makefile 19 Jul 2003 14:33:48 -0000 1.9
+++ Makefile 21 Jul 2003 06:38:12 -0000 1.10
@@ -6,7 +6,7 @@
JAVADOC = javadoc
-stepbystep: logicana debugger gui bausteine schnittstelle archive profiling
+stepbystep: logicana debugger gui bausteine archive profiling
all:
${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath ${MY_SOURCEPATH} -d ${OUTPUT_DIR} \
@@ -54,7 +54,7 @@
src/exdigsim/logiclayer/analysekomponenten/.files src/exdigsim/guilayer/bausteingui/.files \
src/schnittstellen/.files src/exdigsim/guilayer/profiling/.files > src/exdigsim/.allfiles
-archive: logicana debugger gui bausteine schnittstelle
+archive: logicana debugger gui bausteine
(cd bin; ${JAR} -c exdigsim > analysekomponenten.jar)
doc: src/exdigsim/.allfiles
|
|
From: <d3...@us...> - 2003-07-21 06:37:41
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling
In directory sc8-pr-cvs1:/tmp/cvs-serv17791/src/exdigsim/guilayer/profiling
Modified Files:
ProfilingFrame.java
Log Message:
setVisible() wird jetzt überschrieben, um den ProfilingFrame von den Daten zu deregistrieren
Index: ProfilingFrame.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling/ProfilingFrame.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ProfilingFrame.java 20 Jul 2003 23:58:46 -0000 1.2
+++ ProfilingFrame.java 21 Jul 2003 06:37:38 -0000 1.3
@@ -71,11 +71,27 @@
super.setSize (RESOLUTION_X / 3, RESOLUTION_Y / 3);
- this.initListe();
- this.initListener();
- this.daten.addListener (this);
-
-
+ this.initListener();
+ }
+
+ public void setVisible (boolean on)
+ {
+ if (on)
+ {
+ if (!super.isVisbile())
+ {
+ this.zaehlAnalysepunkte.clear();
+ this.wirklicheZaehlAnalysepunkte.clear();
+ this.initListen();
+ this.daten.addListener (this);
+ super.setVisible (on);
+ }
+ }
+ else
+ {
+ this.daten.removeListener (this);
+ super.setVisible (on);
+ }
}
public void onAnalysepunktAdd (AnalysepunktImpl p)
@@ -175,7 +191,7 @@
/**
* füge bereits existierende Analysepunkte zu den internen Listen hinzu
*/
- private void initListe()
+ private void initListen()
{
java.util.List analysepunkte = this.daten.getAnalysepunkte();
java.util.Iterator iter = analysepunkte.iterator();
|
|
From: <d3...@us...> - 2003-07-21 06:35:51
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/bausteingui
In directory sc8-pr-cvs1:/tmp/cvs-serv17568
Modified Files:
BausteinGUI.java
Log Message:
Offensichtlichen bug gefixt
Index: BausteinGUI.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/bausteingui/BausteinGUI.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- BausteinGUI.java 19 Jul 2003 14:31:30 -0000 1.5
+++ BausteinGUI.java 21 Jul 2003 06:35:48 -0000 1.6
@@ -40,7 +40,7 @@
this (b);
this.x = x;
- this.y = 0;
+ this.y = y;
}
/** Konstruktor des BausteinGUI -Objekts */
|
|
From: <d3...@us...> - 2003-07-20 23:59:13
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling
In directory sc8-pr-cvs1:/tmp/cvs-serv30678
Modified Files:
ProfilingObjectLookupTable.java
Log Message:
Aktualisiert
Index: ProfilingObjectLookupTable.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling/ProfilingObjectLookupTable.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ProfilingObjectLookupTable.java 19 Jul 2003 12:09:38 -0000 1.1
+++ ProfilingObjectLookupTable.java 20 Jul 2003 23:59:08 -0000 1.2
@@ -7,7 +7,10 @@
* Grain stellt die `Genauigkeit' der Tabelle dar, was nichts anderes heissen soll als
* die Reduktion der Auflösung. Die Auflösung wird durch `resolutionX'
* `resolutionY' bestimmt. `resolutionX' steht für die Anzahl der Pixel in `X-Richtung'
- * und `resolutionY' für die in `Y-Richtung'.
+ * und `resolutionY' für die in `Y-Richtung'.<br>
+ * Die LookupTabelle ist für das ProfilingDiagramm, damit wenn der Benutzer in
+ * dem Fenster klickt, der passende Analysepunkt aufgesucht und in dem GUI-Fenster
+ * der Analysepunkt `angesprungen' wird.
*/
class ProfilingObjectLookupTable
{
@@ -15,15 +18,15 @@
private int resolutionX;
private int resolutionY;
- private int resolutionGrainX;
- private int resolutionGrainY;
+ private float resolutionGrainX;
+ private float resolutionGrainY;
private int tableXLen;
private int tableYLen;
public ProfilingObjectLookupTable (int resolutionX,
int resolutionY,
- int resolutionGrainX,
- int resolutionGrainY)
+ float resolutionGrainX,
+ float resolutionGrainY)
{
this.resolutionX = resolutionX;
this.resolutionY = resolutionY;
@@ -31,8 +34,8 @@
this.resolutionGrainY = resolutionGrainY;
// Minimum ist `1' der Kantenlänge der Tabelle
- this.tableXLen = resolutionX / resolutionGrainX + 1;
- this.tableYLen = resolutionY / resolutionGrainY + 1;
+ this.tableXLen = (int)Math.min (resolutionX / resolutionGrainX, 1f);
+ this.tableYLen = (int)Math.min (resolutionY / resolutionGrainY, 1f);
this.table = createTable (this.tableXLen, this.tableYLen);
}
@@ -44,12 +47,18 @@
public int getResolutionY()
{ return this.resolutionY; }
- public int getResolutionGrainX()
+ public float getResolutionGrainX()
{ return this.resolutionGrainX; }
- public int getResolutionGrainY()
+ public float getResolutionGrainY()
{ return this.resolutionGrainY; }
+ public int getTableXLen()
+ { return this.tableXLen; }
+
+ public int getTableYLen()
+ { return this.tableYLen; }
+
/**
* Verändert die Größe der Tabelle bei gleicher Körnigkeit
*/
@@ -60,8 +69,8 @@
newY == this.resolutionY)
return;
- newX = resolutionX / this.resolutionGrainX + 1;
- newY = resolutionY / this.resolutionGrainY + 1;
+ newX = Math.min (1, (int)((float)resolutionX / this.resolutionGrainX));
+ newY = Math.min (1, (int)((float)resolutionY / this.resolutionGrainY));
final int minY = newY < this.tableYLen ? newY : this.tableYLen;
final int minX = newX < this.tableXLen ? newX : this.tableXLen;
@@ -96,13 +105,14 @@
* @param x x-Koordinate des Analysepunktes (grain nicht berechnet!)
* @param y y-Koordinate des Analysepunktes (grain nicht berechnet!)
*
- * @return Analysepunkt unter den angegebenen Koordinaten. <b>Achtung</b>: Rückgabe kann null sein, sofern
- * kein Analysepunkt für dieser Stelle eingefügt worden ist, oder die Koordinaten nicht valide sind
+ * @return Analysepunkt unter den angegebenen Koordinaten. <b>Achtung</b>: Rückgabe kann null sein,
+ * sofern kein Analysepunkt für dieser Stelle eingefügt worden ist, oder die
+ * Koordinaten nicht valide sind
*/
public AnalysepunktImpl lookup (int x, int y)
{
- int xReal = x / this.resolutionGrainX;
- int yReal = y / this.resolutionGrainY;
+ int xReal = (int)((float)x / this.resolutionGrainX);
+ int yReal = (int)((float)y / this.resolutionGrainY);
if (xReal > this.tableXLen ||
yReal > this.tableYLen)
@@ -120,8 +130,8 @@
*/
public boolean erase (int x, int y)
{
- int xReal = x / this.resolutionGrainX;
- int yReal = y / this.resolutionGrainY;
+ int xReal = (int)((float)x / this.resolutionGrainX);
+ int yReal = (int)((float)y / this.resolutionGrainY);
if (xReal > this.tableXLen ||
yReal > this.tableYLen)
@@ -139,14 +149,15 @@
*
* @param x x-Koordinate des Analysepunktes (grain nicht berechnet!)
* @param y y-Koordinate des Analysepunktes (grain nicht berechnet!)
- * @return impl ist nicht null, die Koordinaten sind valide und der Analysepunkt wurde in die Tabelle eingefügt
+ * @return impl ist nicht null, die Koordinaten sind valide und der Analysepunkt wurde in die
+ * Tabelle eingefügt
*/
public boolean insert (AnalysepunktImpl impl,
int x,
int y)
{
- int xReal = x / this.resolutionGrainX;
- int yReal = y / this.resolutionGrainY;
+ int xReal = (int)((float)x / this.resolutionGrainX);
+ int yReal = (int)((float)y / this.resolutionGrainY);
if (impl == null ||
@@ -162,6 +173,9 @@
return true;
}
+ /**
+ * Legt 2-dimensionale Tabelle an
+ */
private static AnalysepunktImpl[][] createTable (int x, int y)
{
AnalysepunktImpl[][] table = new AnalysepunktImpl[x][];
|
|
From: <d3...@us...> - 2003-07-20 23:58:49
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling
In directory sc8-pr-cvs1:/tmp/cvs-serv30632
Modified Files:
ProfilingFrame.java
Log Message:
Aktualisiert
Index: ProfilingFrame.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling/ProfilingFrame.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ProfilingFrame.java 19 Jul 2003 12:09:38 -0000 1.1
+++ ProfilingFrame.java 20 Jul 2003 23:58:46 -0000 1.2
@@ -3,6 +3,8 @@
import javax.swing.JDialog;
import javax.swing.JButton;
import javax.swing.JPanel;
+import javax.swing.JSlider;
+import javax.swing.BoxLayout;
import java.awt.BorderLayout;
import java.awt.Graphics2D;
import java.awt.event.ActionListener;
@@ -28,6 +30,7 @@
private JButton schliessenButton;
private JButton aktualisierenButton;
private ProfilingDiagramm ausgabePanel;
+ private JSlider slider;
private final AnalyseFensterDaten daten;
/**
@@ -39,7 +42,14 @@
* wo auch ZusammengesetzteAnalysepunkte vorkommen können)
*/
private final ArrayList wirklicheZaehlAnalysepunkte = new ArrayList (20);
+ /**
+ * Lookup-Tabelle für das Diagramm
+ */
+ private ProfilingObjectLookupTable lookupTable;
+ private HeatMatrix heatMatrix;
+
+
public ProfilingFrame (AnalyseFensterDaten daten)
{
super ();
@@ -52,6 +62,8 @@
this.aktualisierenButton = new JButton ("Aktualisieren");
this.ausgabePanel = new ProfilingDiagramm (this,
RESOLUTION_X, RESOLUTION_Y);
+ this.slider = new JSlider (JSlider.HORIZONTAL, 2, Math.max (RESOLUTION_X, 15),
+ Math.min (10, Math.max (RESOLUTION_X, 15)));
this.daten = daten;
this.initDialog();
@@ -60,7 +72,10 @@
super.setSize (RESOLUTION_X / 3, RESOLUTION_Y / 3);
this.initListe();
+ this.initListener();
this.daten.addListener (this);
+
+
}
public void onAnalysepunktAdd (AnalysepunktImpl p)
@@ -121,12 +136,45 @@
*/
public void aktualisiere()
{
- System.out.println ("Aktualisieren");
+ float grainX = 0.0f;
+ float grainY = 0.0f;
+
+ grainX = ((float)this.slider.getValue()) / ((float)RESOLUTION_X);
+ grainY = ((float)this.slider.getValue()) / ((float)RESOLUTION_Y);
+
+ // Lege neue Tabelle an.
+ // Leider müssen wir das ständig machen, denn wir haben keine Möglichkeit,
+ // über Baustein-verschiebungen informiert zu werden!
+ // (daher gibt es auch den Aktualisieren button)
+ this.lookupTable =
+ new ProfilingObjectLookupTable (RESOLUTION_X,
+ RESOLUTION_Y,
+ grainX,
+ grainY);
+ this.heatMatrix = new HeatMatrix (this.slider.getValue(), this.slider.getValue());
+
+ for (int i = 0; i < this.zaehlAnalysepunkte.size(); ++i)
+ {
+ ZaehlAnalysepunkt a = (ZaehlAnalysepunkt)this.zaehlAnalysepunkte.get (i);
+ BausteinGUI gui = a.getGatterGUI();
+ int x = gui.getX();
+ int y = gui.getY();
+
+
+ this.lookupTable.insert (a, x, y);
+ this.heatMatrix.add (a.getCounter(), (int)((float)x * grainX), (int)((float)y * grainY));
+ }
+
+ this.heatMatrix.berechneOverlayMatrix();
this.ausgabePanel.setAnalysepunkte (this.wirklicheZaehlAnalysepunkte);
+ this.ausgabePanel.setHeatMatrix (this.heatMatrix);
this.ausgabePanel.repaint();
}
+ /**
+ * füge bereits existierende Analysepunkte zu den internen Listen hinzu
+ */
private void initListe()
{
java.util.List analysepunkte = this.daten.getAnalysepunkte();
@@ -155,12 +203,34 @@
}
+ private void initListener()
+ {
+// this.ausgabePanel.addMouseListener ( new java.awt.event.MouseEventAdapter() {
+// public void mouseClicked (java.awt.event.MouseEvent e) {
+// System.out.println ("mouseClicked");
+// }
+ //});
+ }
+
private void initDialog()
{
super.getContentPane().setLayout (new BorderLayout());
JPanel buttonPanel = new JPanel();
JPanel diagrammPanel = new JPanel();
+ JPanel sliderPanel = new JPanel();
+ javax.swing.JLabel sliderLabel = new javax.swing.JLabel ("Grain");
+ JPanel sliderButtonPanel = new JPanel();
+
+ this.slider.setBackground (java.awt.Color.white);
+ // this.slider.setInverted (true);
+ sliderLabel.setBackground (java.awt.Color.white);
+ sliderLabel.setPreferredSize (sliderLabel.getMinimumSize());
+
+ sliderPanel.setLayout (new BoxLayout (sliderPanel, BoxLayout.X_AXIS));
+
+ sliderPanel.add (sliderLabel);
+ sliderPanel.add (slider);
diagrammPanel.setLayout (new BorderLayout());
diagrammPanel.setBorder (javax.swing.BorderFactory.createTitledBorder ("Profiling-Diagramm"));
@@ -173,7 +243,12 @@
buttonPanel.add (this.aktualisierenButton);
buttonPanel.add (this.schliessenButton);
- this.getContentPane().add (buttonPanel, BorderLayout.SOUTH);
+ sliderButtonPanel.setLayout (new BoxLayout (sliderButtonPanel, BoxLayout.Y_AXIS));
+
+ sliderButtonPanel.add (sliderPanel);
+ sliderButtonPanel.add (buttonPanel);
+
+ this.getContentPane().add (sliderButtonPanel, BorderLayout.SOUTH);
this.getContentPane().add (diagrammPanel, BorderLayout.CENTER);
super.pack();
@@ -192,11 +267,13 @@
});
}
+ /**
+ *
+ */
private static ZaehlAnalysepunkt getZaehlAnalysepunkt (AnalysepunktImpl p)
{
ZaehlAnalysepunkt real;
- // hole wirklichen Analysepunkt (dirty...)
if (p.getEigenschaften().istZusammengesetzt())
{
real = ((ZusammengesetzterAnalysepunkt)p).getZaehlAnalysepunkt();
@@ -207,23 +284,34 @@
return real;
}
+ /**
+ * Aktualisiert LookupTable und HeatMatrix für das Diagramm
+ * (Es werden nur Hitze-Werte in die HitzeMatrix eingetragen aber noch nicht
+ * endgültig berechnet)
+ */
+ private void updateData()
+ {
+
+ }
+
+
public static void main (String[] args)
{
AnalyseFensterDaten daten = new AnalyseFensterDaten();
BausteinGUI
gui1 = new BausteinGUI (null,
- (int)(Math.random()*RESOLUTION_X) % RESOLUTION_X,
- (int)(Math.random()*RESOLUTION_Y) % RESOLUTION_Y),
+ (int)(Math.random()*RESOLUTION_X),
+ (int)(Math.random()*RESOLUTION_Y)),
gui2 = new BausteinGUI (null,
- (int)(Math.random()*RESOLUTION_X) % RESOLUTION_X,
- (int)(Math.random()*RESOLUTION_Y) % RESOLUTION_Y),
+ (int)(Math.random()*RESOLUTION_X),
+ (int)(Math.random()*RESOLUTION_Y)),
gui3 = new BausteinGUI (null,
- (int)(Math.random()*RESOLUTION_X) % RESOLUTION_X,
- (int)(Math.random()*RESOLUTION_Y) % RESOLUTION_Y),
+ (int)(Math.random()*RESOLUTION_X),
+ (int)(Math.random()*RESOLUTION_Y)),
gui4 = new BausteinGUI (null,
- (int)(Math.random()*RESOLUTION_X) % RESOLUTION_X,
- (int)(Math.random()*RESOLUTION_Y) % RESOLUTION_Y);
+ (int)(Math.random()*RESOLUTION_X),
+ (int)(Math.random()*RESOLUTION_Y));
ZaehlAnalysepunkt
@@ -232,6 +320,11 @@
impl3 = new ZaehlAnalysepunkt (2, daten, "muh3", gui3),
impl4 = new ZaehlAnalysepunkt (3, daten, "muh4", gui4);
+
+ impl1.setCounter ((int)(Math.random()* 100));
+ impl2.setCounter ((int)(Math.random()* 100));
+ impl3.setCounter ((int)(Math.random()* 100));
+ impl4.setCounter ((int)(Math.random()* 100));
daten.addAnalysepunkt (impl1);
daten.addAnalysepunkt (impl2);
@@ -244,3 +337,4 @@
frame.setVisible (true);
}
}
+
|
|
From: <d3...@us...> - 2003-07-20 23:57:52
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling
In directory sc8-pr-cvs1:/tmp/cvs-serv30541
Modified Files:
ProfilingDiagramm.java
Log Message:
Sync
Index: ProfilingDiagramm.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling/ProfilingDiagramm.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ProfilingDiagramm.java 19 Jul 2003 12:09:38 -0000 1.1
+++ ProfilingDiagramm.java 20 Jul 2003 23:57:49 -0000 1.2
@@ -1,22 +1,36 @@
package exdigsim.guilayer.profiling;
import javax.swing.JPanel;
+import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
+import java.awt.event.MouseEvent;
import java.util.ArrayList;
import exdigsim.logiclayer.analysekomponenten.ZaehlAnalysepunkt;
import exdigsim.guilayer.bausteingui.BausteinGUI;
class ProfilingDiagramm extends JPanel
{
- private ArrayList analysepunkte = null;
- private final ProfilingFrame frame;
- private ProfilingObjectLookupTable lookupTable;
+ private static final int OVAL_X = 7;
+ private static final int OVAL_Y = 7;
+ private static final Color COLOR_TABLE[];
+
+ static
+ {
+ COLOR_TABLE = new Color[256];
+
+ for (int i = 0; i < COLOR_TABLE.length; ++i)
+ COLOR_TABLE[i] = new Color (255, 255-i, i/3);
+ }
+
+
+ private ArrayList analysepunkte = null;
+ private final ProfilingFrame frame;
+ private HeatMatrix heatMatrix;
+
private int resolutionX;
private int resolutionY;
- private int grainX = 0;
- private int grainY = 0;
public ProfilingDiagramm (ProfilingFrame frame,
@@ -28,8 +42,8 @@
this.frame = frame;
this.resolutionX = resolutionX;
this.resolutionY = resolutionY;
- this.grainX = 0;
- this.grainY = 0;
+
+ //TODO: füge Mouse
}
@@ -45,29 +59,14 @@
public int getResolutionY ()
{ return this.resolutionY; }
- public int getGrainX()
- { return this.grainX; }
-
- public int getGrainY()
- { return this.grainY; }
-
-
public void setAnalysepunkte (ArrayList l)
{ this.analysepunkte = l; }
- public void repaint()
- {}
-
- public void update (Graphics g)
- {
- System.out.println ("update()");
- paint (g);
- }
+ public void setHeatMatrix (HeatMatrix m)
+ { this.heatMatrix = m; }
public void paint (Graphics g)
{
- System.out.println ("paint");
-
if (g == null)
return;
g.setColor (java.awt.Color.white);
@@ -89,55 +88,79 @@
return;
}
- graphics.setColor (java.awt.Color.black);
+
- for (int i = 0; i < this.analysepunkte.size(); ++i)
- {
- ZaehlAnalysepunkt p = (ZaehlAnalysepunkt)this.analysepunkte.get (i);
+ float grainX = 0.0f;
+ float grainY = 0.0f;
+ float grainMatrixX = 0.0f;
+ float grainMatrixY = 0.0f;
+ float hitzeVerhaeltnis = 0.0f;
- if (p == null)
+ grainX = ((float)super.getWidth()) / ((float)this.resolutionX);
+ grainY = (float)super.getWidth() / ((float)this.resolutionY);
+ grainMatrixX = ((float)super.getWidth()) / ((float)this.heatMatrix.getWidth());
+ grainMatrixY = ((float)super.getHeight()) / ((float)this.heatMatrix.getHeight());
+ hitzeVerhaeltnis = 255f / (float)this.heatMatrix.getMax();
+
+ final int grainMatrixXInt = (int)grainMatrixX;
+ final int grainMatrixYInt = (int)grainMatrixY;
+
+ for (int i = 0; i < this.heatMatrix.getHeight(); ++i)
+ {
+ for (int j = 0; j < this.heatMatrix.getWidth(); ++j)
{
- System.err.println ("BUGME: ProfilingFrame::aktualisieren");
- continue;
- }
+ int wert = this.heatMatrix.get (i, j);
- BausteinGUI gui = p.getGatterGUI();
+ if (wert == 0)
+ continue;
- int x = gui.getX() * grainX;
- int y = gui.getY() * grainY;
+ final int colorIndex = (int)((float)wert * hitzeVerhaeltnis);;
+ int x = (int)(i*grainMatrixX);
+ int y = (int)(j*grainMatrixY);
- graphics.fillOval (x, y,
- this.grainX, this.grainY);
+ graphics.setColor (COLOR_TABLE[colorIndex/2]);
+ graphics.fillRect (x, y, grainMatrixXInt, grainMatrixYInt);
+
+ graphics.setColor (COLOR_TABLE[colorIndex]);
+ graphics.fillOval (x, y, grainMatrixXInt, grainMatrixYInt);
+
+ if (wert > 1)
+ { // _dreckiger_ Workaround
+ String s = String.valueOf (wert);
+ char sb[] = s.toCharArray();
+ java.awt.FontMetrics metrics = g.getFontMetrics();
+
+ graphics.setColor (Color.black);
+
+ graphics.drawChars (sb, 0, sb.length, x+(grainMatrixXInt-metrics.charsWidth (sb, 0, sb.length))/2, y+(metrics.getHeight()+grainMatrixYInt)/2);
+ }
+ }
}
- }
- public void aktualisiere ()
- {
- this.updateLookupTable();
- this.repaint();
- }
- private void updateLookupTable()
- {
- if (this.analysepunkte == null)
- return;
-
- this.grainX = this.resolutionX / super.getWidth();
- this.grainY = this.resolutionY / super.getHeight();
+// graphics.setColor (java.awt.Color.black);
- this.lookupTable =
- new ProfilingObjectLookupTable (this.resolutionX,
- this.resolutionY,
- this.grainX,
- this.grainY);
+// for (int i = 0; i < this.analysepunkte.size(); ++i)
+// {
+// ZaehlAnalysepunkt p = (ZaehlAnalysepunkt)this.analysepunkte.get (i);
-
- for (int i = 0; i < this.analysepunkte.size(); ++i)
- {
- ZaehlAnalysepunkt a = (ZaehlAnalysepunkt)this.analysepunkte.get (i);
- BausteinGUI gui = a.getGatterGUI();
-
- this.lookupTable.insert (a, gui.getX(), gui.getY());
- }
+// if (p == null)
+// {
+// System.err.println ("BUGME: ProfilingFrame::aktualisieren");
+// continue;
+// }
+
+// BausteinGUI gui = p.getGatterGUI();
+
+// int x = (int)(gui.getX() * grainX);
+// int y = (int)(gui.getY() * grainY);
+
+// graphics.fillOval (x, y, OVAL_X, OVAL_Y);
+// }
+ }
+
+ protected void processMouseEvent (MouseEvent e)
+ {
+ System.out.println ("processMouseEvent");
}
}
|
|
From: <d3...@us...> - 2003-07-20 23:57:09
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/profiling In directory sc8-pr-cvs1:/tmp/cvs-serv30493 Added Files: HeatMatrix.java Log Message: Hinzugefügt --- NEW FILE: HeatMatrix.java --- (This appears to be a binary file; contents omitted.) |
|
From: <yr...@us...> - 2003-07-20 18:37:29
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer In directory sc8-pr-cvs1:/tmp/cvs-serv14325/srcak/exdigsim/guilayer Modified Files: TODO Log Message: update Index: TODO =================================================================== RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/TODO,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- TODO 18 Jul 2003 17:33:40 -0000 1.27 +++ TODO 20 Jul 2003 18:37:26 -0000 1.28 @@ -17,9 +17,8 @@ erst im Laufe des Wochenendes noch implementiert werden... o Füge Kommando `load' hinzu mit Funktionalität: Lade Analysefensterdaten unter einer angegebenen Datei -o Füge dem Menü Lade und Save Einträge hinzu, sofern Schnittstellen der Programmlogik vorhanden (Dirk) +o Füge dem Menü Lade und Save Einträge hinzu, sofern Schnittstellen der Programmlogik vorhanden o Füge ein Dialog zum Speichern bestimmter Eigenschaften hinzu (Aliase, Standartsicht -(welche teilkomponenten im Fenster sichtbar sind), history), sofern Schnittstellen dieser Programmlogik vorhanden (Dirk) -o Methode um Ausgaben in die Shell zu schreiben, ohne dass sie in der History-erfasst werden +(welche teilkomponenten im Fenster sichtbar sind), history), sofern Schnittstellen dieser Programmlogik vorhanden o das pics verzeichnis im guilayer löschen -o Tabellenfunktionalität: mehr als 7 Einträge sichtbar machen + |
|
From: <yr...@us...> - 2003-07-20 18:35:40
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer In directory sc8-pr-cvs1:/tmp/cvs-serv14102/srcak/exdigsim/guilayer Modified Files: BUGS Log Message: BUG-squash Index: BUGS =================================================================== RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/BUGS,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- BUGS 19 Jul 2003 14:20:20 -0000 1.7 +++ BUGS 20 Jul 2003 18:35:38 -0000 1.8 @@ -1,5 +1,3 @@ -o Schlechte Darstellung der Tabelle im Fensteraufbau (wer kann?) o wenn man die arbeitsfläche minimiert und wieder vergrössert kommt das analysefenster nicht mehr in den vordergrund genauso hängt es immer hinter dem fenster mit der bausteinauswahl -o wenn die konsole voll ist scrollt sie nicht mit nach unten -o Das Hinzufuegen von Analysepunkten GLEICHEN Namens wird in der Tabelle als nur EIN vorhandener Analysepunkt aufgezeigt \ No newline at end of file + |
|
From: <yr...@us...> - 2003-07-20 18:34:44
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv13973/srcak/exdigsim/guilayer
Modified Files:
AnalyseFenster.java
Log Message:
ueberlegung zum adden eines analysepunktes
Index: AnalyseFenster.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalyseFenster.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- AnalyseFenster.java 19 Jul 2003 14:46:47 -0000 1.70
+++ AnalyseFenster.java 20 Jul 2003 18:34:41 -0000 1.71
@@ -595,12 +595,25 @@
modifiziereAnalysepunkt(p);
}});
+ tastenLeiste.hinzuBtn.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ //TODO greife Wegepunkt von der BausteinGUI ab
+ //BausteinGUI baustein = getAktivesSchaltplanFenster().getaktivenBaustein()
+ //Lsgsansatz: registrieren uns als Listener bei der BausteinGUI
+ //speichern den aktuell gewählten, darunterliegenden Baustein
+ //bei knopfdruck ADD wird auf Wegepunkt (->Fehlerdialog) getestet und entscheiden
+ //bei Bestand eines Analysepunktes entweder auf addAnapkt() oder modAnapkt()
+
+ BausteinGUI baustein=new BausteinGUI();
+ addAnalysepunkt(baustein);
+ }});
+
tastenLeiste.startBtn.setEnabled(false);
tastenLeiste.zurueckBtn.setEnabled(false);
tastenLeiste.vorBtn.setEnabled(false);
tastenLeiste.stopBtn.setEnabled(false);
- tastenLeiste.hinzuBtn.setEnabled(false);
+ tastenLeiste.hinzuBtn.setEnabled(true);
tastenLeiste.loeschBtn.setEnabled(true);
tastenLeiste.modBtn.setEnabled(true);
}
|
|
From: <yr...@us...> - 2003-07-20 17:44:43
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv6329/src/exdigsim/guilayer
Modified Files:
AnalysepunktTabelle.java
Log Message:
Index: AnalysepunktTabelle.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalysepunktTabelle.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- AnalysepunktTabelle.java 20 Jul 2003 17:08:03 -0000 1.16
+++ AnalysepunktTabelle.java 20 Jul 2003 17:44:40 -0000 1.17
@@ -4,7 +4,6 @@
import exdigsim.logiclayer.analysekomponenten.AnalysepunktEigenschaften;
import exdigsim.logiclayer.analysekomponenten.AnalysepunktImpl;
-import javax.swing.JViewport;
import javax.swing.KeyStroke;
import javax.swing.JComponent;
import javax.swing.table.TableCellRenderer;
@@ -81,9 +80,14 @@
super.setModel (this.model);
+
+ super.setMinimumSize (new java.awt.Dimension (150, 150));
+ //super.setPreferredSize (new java.awt.Dimension (150, 120)); BUGFIX
+
//super.setMinimumSize (new java.awt.Dimension (150, 80));
//super.setPreferredSize (new java.awt.Dimension (150, 120)); BUGFIX
+
this.init();
}
@@ -167,7 +171,10 @@
// benachrichtige Tabelle über Anderung
super.setTableHeader (header);
-
+ setShowGrid(true);
+ setShowHorizontalLines(true);
+
+
/**
* registriere Keyboard handlers für:
*
@@ -200,11 +207,11 @@
if (!isCellSelected(rowIndex, vColIndex)){
AnalysepunktEigenschaften pkt=getAnalysepunkt(rowIndex).getEigenschaften();
if (pkt.istZusammengesetzt()){c.setBackground(new java.awt.Color(245,245,245)); }else //hellgrau
- if (pkt.zeichnetGraph()){c.setBackground(new java.awt.Color(0,0,255));}else //blau
- if (pkt.zaehltBenutzung()){c.setBackground(new java.awt.Color(255,255,0));}else //gelb
- if (pkt.stopptSimulation()) {c.setBackground(new java.awt.Color(204,0,51));}else //rot
+ if (pkt.zeichnetGraph()){c.setBackground(new java.awt.Color(147,159,210));}else //blau
+ if (pkt.zaehltBenutzung()){c.setBackground(new java.awt.Color(255,255,102));}else //gelb
+ if (pkt.stopptSimulation()) {c.setBackground(new java.awt.Color(187,38,38));}else //rot
c.setBackground(getBackground());
- }
+ }else {c.setBackground(java.awt.Color.LIGHT_GRAY);}
return c;
//TODO Farbkonstanten mit in die AnalysepunktEigenschaften aufnehmen
}
|
|
From: <yr...@us...> - 2003-07-20 17:10:18
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv32678/srcak/exdigsim/guilayer
Modified Files:
AnalysepunktTabelleFrame.java
Log Message:
Viewport-eigenschaft modifiziert
Index: AnalysepunktTabelleFrame.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalysepunktTabelleFrame.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- AnalysepunktTabelleFrame.java 18 Jul 2003 16:55:57 -0000 1.11
+++ AnalysepunktTabelleFrame.java 20 Jul 2003 17:10:14 -0000 1.12
@@ -19,8 +19,8 @@
* <p>Copyright: Copyright (c) 2003</p>
* @author Wei Song
* @author Oliver Ruloff
- * @author ...
- * @version 1.1
+ * @author ...
+ * @version 1.2
*/
public class AnalysepunktTabelleFrame extends JTabbedPane {
@@ -119,14 +119,20 @@
super.add(jScrollPane1, "Zusammenfassung");
jScrollPane1.getViewport().add(this.tabellen[0], null);
+ jScrollPane1.getViewport().setBackground(Color.WHITE);
+ //jScrollPane1.getViewport().setOpaque(true);
super.add(jScrollPane2, "StopAnalysepunkt");
jScrollPane2.getViewport().add(this.tabellen[1], null);
+ jScrollPane2.getViewport().setBackground(Color.WHITE);
super.add(jScrollPane3, "ZaehltAnalysepunkt");
jScrollPane3.getViewport().add(this.tabellen[2], null);
+ jScrollPane3.getViewport().setBackground(Color.WHITE);
super.add(jScrollPane4, "OsziloskopAnalysepunkt");
jScrollPane4.getViewport().add(this.tabellen[3], null);
+ jScrollPane4.getViewport().setBackground(Color.WHITE);
super.add(jScrollPane5, "ZusammengesetzterAnalysepunkt");
jScrollPane5.getViewport().add(this.tabellen[4], null);
+ jScrollPane5.getViewport().setBackground(Color.WHITE);
}
/**
|
|
From: <yr...@us...> - 2003-07-20 17:08:05
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv32350/srcak/exdigsim/guilayer
Modified Files:
AnalysepunktTabelle.java
Log Message:
Rendering hinzugefuegt
Index: AnalysepunktTabelle.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalysepunktTabelle.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- AnalysepunktTabelle.java 20 Jul 2003 03:16:07 -0000 1.15
+++ AnalysepunktTabelle.java 20 Jul 2003 17:08:03 -0000 1.16
@@ -3,8 +3,13 @@
import javax.swing.JTable;
import exdigsim.logiclayer.analysekomponenten.AnalysepunktEigenschaften;
import exdigsim.logiclayer.analysekomponenten.AnalysepunktImpl;
+
+import javax.swing.JViewport;
import javax.swing.KeyStroke;
import javax.swing.JComponent;
+import javax.swing.table.TableCellRenderer;
+
+import java.awt.Component;
import java.awt.event.MouseEvent;
import java.awt.event.InputEvent;
@@ -12,12 +17,17 @@
* Komponente des DebuggerFensters. Visualisiert alle gesetzten Analysepunkt in einer
* Excel-ähnlichen Tabelle.<br>
*
- * @version 0.4
+ * @version 0.5
* @author Martin Scholl
+ * @author Dirk Schaefer
*
*
* Changelog:
* ^^^^^^^^^
+ * 0.5:
+ * ---
+ * prepareRenderer hinzugefuegt
+ *
* 0.4:
* ---
* Neuen Konstruktor hinzugefügt
@@ -135,6 +145,7 @@
if (((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK ) &&
(e.getClickCount() == 2))
{
+ if (getSelektierteAnalysepunkt()!=null)
this.modifiziereSelektiertenAnalysepunkt();
}
else
@@ -182,4 +193,21 @@
KeyStroke.getKeyStroke (java.awt.event.KeyEvent.VK_ENTER, 0, true),
JComponent.WHEN_FOCUSED);
}
+
+ public Component prepareRenderer(TableCellRenderer renderer,
+ int rowIndex, int vColIndex) {
+ Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
+ if (!isCellSelected(rowIndex, vColIndex)){
+ AnalysepunktEigenschaften pkt=getAnalysepunkt(rowIndex).getEigenschaften();
+ if (pkt.istZusammengesetzt()){c.setBackground(new java.awt.Color(245,245,245)); }else //hellgrau
+ if (pkt.zeichnetGraph()){c.setBackground(new java.awt.Color(0,0,255));}else //blau
+ if (pkt.zaehltBenutzung()){c.setBackground(new java.awt.Color(255,255,0));}else //gelb
+ if (pkt.stopptSimulation()) {c.setBackground(new java.awt.Color(204,0,51));}else //rot
+ c.setBackground(getBackground());
+ }
+ return c;
+ //TODO Farbkonstanten mit in die AnalysepunktEigenschaften aufnehmen
+ }
+
+
}
|
|
From: <yr...@us...> - 2003-07-20 04:22:35
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/debugger
In directory sc8-pr-cvs1:/tmp/cvs-serv24742/srcak/exdigsim/guilayer/debugger
Modified Files:
DebuggerShellTextArea.java
Log Message:
Index: DebuggerShellTextArea.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/debugger/DebuggerShellTextArea.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- DebuggerShellTextArea.java 19 Jul 2003 00:22:17 -0000 1.6
+++ DebuggerShellTextArea.java 20 Jul 2003 04:22:32 -0000 1.7
@@ -6,7 +6,7 @@
/**
* Ausgabefenster für DebuggerShellFenster
*
- * @version 0.1
+ * @version 0.2
* @author Martin Scholl
*/
public class DebuggerShellTextArea extends JTextArea {
@@ -158,6 +158,8 @@
// invalidiere Kommandoliste
this.kommandoListeIndex = 0;
this.kommandoListeLaenge = 0;
+
+ setCaretPosition(getDocument().getLength()); //workaround(automatisches Scrollen)
}
/**
|
|
From: <yr...@us...> - 2003-07-20 03:16:10
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv16972/srcak/exdigsim/guilayer
Modified Files:
AnalysepunktTabelle.java
Log Message:
Index: AnalysepunktTabelle.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalysepunktTabelle.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- AnalysepunktTabelle.java 17 Jul 2003 18:16:13 -0000 1.14
+++ AnalysepunktTabelle.java 20 Jul 2003 03:16:07 -0000 1.15
@@ -71,8 +71,8 @@
super.setModel (this.model);
- super.setMinimumSize (new java.awt.Dimension (150, 80));
- super.setPreferredSize (new java.awt.Dimension (150, 120));
+ //super.setMinimumSize (new java.awt.Dimension (150, 80));
+ //super.setPreferredSize (new java.awt.Dimension (150, 120)); BUGFIX
this.init();
}
|
|
From: <yr...@us...> - 2003-07-19 14:46:50
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv7891/src/exdigsim/guilayer
Modified Files:
AnalyseFenster.java
Log Message:
Hoehenanteile
Index: AnalyseFenster.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalyseFenster.java,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- AnalyseFenster.java 19 Jul 2003 14:24:19 -0000 1.69
+++ AnalyseFenster.java 19 Jul 2003 14:46:47 -0000 1.70
@@ -406,6 +406,12 @@
* initialisiere Komponenten
*/
private void initAnalyseFenster() {
+ //initiiere Subkomponenten (Dialoge,Menu,Werkzeugleiste)
+ initDialoge();
+ initMenue();
+ initTastenLeiste();
+
+
//Instanziierungen
this.analysepunktTabelleFrame = new AnalysepunktTabelleFrame (this.daten);
this.shellFenster = new DebuggerShellFenster (this.daten);
@@ -414,22 +420,15 @@
this.split2=new JSplitPane (JSplitPane.VERTICAL_SPLIT);
this.split3=new JSplitPane (JSplitPane.VERTICAL_SPLIT);
- //stelle Groessenanteile ein
- //ANTEILGRAPH=30; //%
- //private static final int ANTEILSHELL=35; //%
- //private static final int ANTEILTAB=35;
-
- int anteilEff=(int)((ANTEILTAB*fensterHoehe)/100);
+ //Hoehenanteile
+ System.out.println(tastenLeiste.getHeight());
+ int anteilEff=(int)((ANTEILTAB*(fensterHoehe-32))/100);
analysepunktTabelleFrame.setPreferredSize(new Dimension(fensterBreite,anteilEff));
- anteilEff=(int)((ANTEILSHELL*fensterHoehe)/100);
+ anteilEff=(int)((ANTEILSHELL*(fensterHoehe-32))/100);
shellFenster.getContainer().setPreferredSize(new Dimension(fensterBreite,anteilEff));
- anteilEff=(int)((ANTEILGRAPH*fensterHoehe)/100);
+ anteilEff=(int)((ANTEILGRAPH*(fensterHoehe-32))/100);
graphenSchreiber.setPreferredSize(new Dimension(fensterBreite,anteilEff));
- //initiiere Subkomponenten (Dialoge,Menu,Werkzeugleiste)
- initDialoge();
- initMenue();
- initTastenLeiste();
//komponiere es zum Ganzen
split1.setTopComponent(tastenLeiste);
|
|
From: <d3...@us...> - 2003-07-19 14:33:51
|
Update of /cvsroot/yacr/analysis
In directory sc8-pr-cvs1:/tmp/cvs-serv5859
Modified Files:
Makefile
Log Message:
Aktualisiert
Index: Makefile
===================================================================
RCS file: /cvsroot/yacr/analysis/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile 8 Jul 2003 21:16:13 -0000 1.8
+++ Makefile 19 Jul 2003 14:33:48 -0000 1.9
@@ -6,7 +6,7 @@
JAVADOC = javadoc
-stepbystep: logicana debugger gui bausteine schnittstelle archive
+stepbystep: logicana debugger gui bausteine schnittstelle archive profiling
all:
${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath ${MY_SOURCEPATH} -d ${OUTPUT_DIR} \
@@ -26,6 +26,10 @@
${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath ${MY_SOURCEPATH} -d ${OUTPUT_DIR} \
@src/exdigsim/guilayer/.files
+ggui:
+ ${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath ${MY_SOURCEPATH} -d ${OUTPUT_DIR} \
+ @src/gui/.files
+
bausteine:
${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath ${MY_SOURCEPATH} -d ${OUTPUT_DIR} \
@src/exdigsim/guilayer/bausteingui/.files
@@ -34,16 +38,21 @@
${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath src/schnittstellen -d ${OUTPUT_DIR} \
@src/schnittstellen/.files
+profiling:
+ ${JAVAC} -classpath ${MY_CLASSPATH} -sourcepath src/exdigsim/guilayer/profiling/.files -d ${OUTPUT_DIR} \
+ @src/exdigsim/guilayer/profiling/.files
+
updatefiles:
ls src/exdigsim/guilayer/debugger/*.java > src/exdigsim/guilayer/debugger/.files
ls src/exdigsim/guilayer/*.java > src/exdigsim/guilayer/.files
ls src/RISC/*.java > src/RISC/.files
ls src/exdigsim/logiclayer/analysekomponenten/*.java > src/exdigsim/logiclayer/analysekomponenten/.files
ls src/exdigsim/guilayer/bausteingui/*.java > src/exdigsim/guilayer/bausteingui/.files
+ ls src/exdigsim/guilayer/profiling/*.java > src/exdigsim/guilayer/profiling/.files
find src/schnittstellen/ -name '*.java' > src/schnittstellen/.files
cat src/exdigsim/guilayer/debugger/.files src/exdigsim/guilayer/.files \
src/exdigsim/logiclayer/analysekomponenten/.files src/exdigsim/guilayer/bausteingui/.files \
- src/schnittstellen/.files > src/exdigsim/.allfiles
+ src/schnittstellen/.files src/exdigsim/guilayer/profiling/.files > src/exdigsim/.allfiles
archive: logicana debugger gui bausteine schnittstelle
(cd bin; ${JAR} -c exdigsim > analysekomponenten.jar)
|
|
From: <d3...@us...> - 2003-07-19 14:32:57
|
Update of /cvsroot/yacr/analysis/src/exdigsim/logiclayer/analysekomponenten
In directory sc8-pr-cvs1:/tmp/cvs-serv5726
Modified Files:
StopAnalysepunkt.java
Log Message:
Geändert, damit es wieder compilierbar wird
Index: StopAnalysepunkt.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/logiclayer/analysekomponenten/StopAnalysepunkt.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- StopAnalysepunkt.java 19 Jul 2003 00:28:59 -0000 1.5
+++ StopAnalysepunkt.java 19 Jul 2003 14:32:54 -0000 1.6
@@ -4,7 +4,7 @@
import exdigsim.guilayer.AnalyseFenster;
import exdigsim.guilayer.debugger.DebuggerShellTextArea;
import exdigsim.guilayer.bausteingui.BausteinGUI;
-import exdigsim.guilayer.Simulation;
+// import exdigsim.guilayer.Simulation;
/**
* Ein Analysepunkt, der die Simulation in seiner hit() methode stoppt.
@@ -89,14 +89,14 @@
fenster.moveToFront();
}
- Thread t = Thread.currentThread();
+// Thread t = Thread.currentThread();
- if (t instanceof Simulation)
- {
- Simulation s = (Simulation) t;
+// if (t instanceof Simulation)
+// {
+// Simulation s = (Simulation) t;
- s.unterbrecheSimulation();
- }
+// s.unterbrecheSimulation();
+// }
}
public boolean serialize (java.io.OutputStream out)
|
|
From: <d3...@us...> - 2003-07-19 14:31:33
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer/bausteingui
In directory sc8-pr-cvs1:/tmp/cvs-serv5569
Modified Files:
BausteinGUI.java
Log Message:
Ganz vergessen zu commiten...
Index: BausteinGUI.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/bausteingui/BausteinGUI.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- BausteinGUI.java 19 Jul 2003 08:27:34 -0000 1.4
+++ BausteinGUI.java 19 Jul 2003 14:31:30 -0000 1.5
@@ -22,11 +22,26 @@
private AbstractBaustein m_LogikEigenschaften;
private String bausteinTyp;
+ private int x = 0;
+ private int y = 0;
public BausteinGUI(AbstractBaustein b) {
super();
m_LogikEigenschaften = b;
}
+
+ /*
+ * Für's Debugging
+ */
+ public BausteinGUI (AbstractBaustein b,
+ int x,
+ int y)
+ {
+ this (b);
+
+ this.x = x;
+ this.y = 0;
+ }
/** Konstruktor des BausteinGUI -Objekts */
public BausteinGUI() {
@@ -63,6 +78,21 @@
*/
public void setBausteinTyp(String string) {
bausteinTyp = string;
+ }
+
+ public void setFocus()
+ {
+ System.out.println ("setFocus() aufgerufen");
+ }
+
+ public int getX()
+ {
+ return x;
+ }
+
+ public int getY()
+ {
+ return y;
}
}
|
|
From: <d3...@us...> - 2003-07-19 14:28:22
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv5195
Modified Files:
Graph.java
Log Message:
fill wird nun nicht mehr aufgerufen
Index: Graph.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/Graph.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Graph.java 13 Jul 2003 21:40:50 -0000 1.18
+++ Graph.java 19 Jul 2003 14:28:18 -0000 1.19
@@ -47,7 +47,7 @@
this.analysepunkt = analysepunkt;
// debugging...
- this.fill();
+ //this.fill();
}
/**
@@ -111,8 +111,9 @@
public void addEintrag (int i)
{
- this.speicher.add (new Integer (i));
+ this.speicher.add (new Integer (i));
//TODO aktualisiere panel möglichst effizient
+ this.repaint();
}
private void fill()
|
|
From: <d3...@us...> - 2003-07-19 14:24:22
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer
In directory sc8-pr-cvs1:/tmp/cvs-serv4598
Modified Files:
AnalyseFenster.java
Log Message:
Methode hinzugefügt
Index: AnalyseFenster.java
===================================================================
RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/AnalyseFenster.java,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- AnalyseFenster.java 19 Jul 2003 14:13:01 -0000 1.68
+++ AnalyseFenster.java 19 Jul 2003 14:24:19 -0000 1.69
@@ -398,6 +398,9 @@
public AnalyseFensterDaten getDaten()
{ return this.daten; }
+ public DebuggerShellFenster getShellFenster()
+ { return this.shellFenster; }
+
/**
* initialisiere Komponenten
|
|
From: <yr...@us...> - 2003-07-19 14:20:25
|
Update of /cvsroot/yacr/analysis/src/exdigsim/guilayer In directory sc8-pr-cvs1:/tmp/cvs-serv4214/src/exdigsim/guilayer Modified Files: BUGS Log Message: Index: BUGS =================================================================== RCS file: /cvsroot/yacr/analysis/src/exdigsim/guilayer/BUGS,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- BUGS 18 Jul 2003 17:41:00 -0000 1.6 +++ BUGS 19 Jul 2003 14:20:20 -0000 1.7 @@ -1,4 +1,5 @@ o Schlechte Darstellung der Tabelle im Fensteraufbau (wer kann?) o wenn man die arbeitsfläche minimiert und wieder vergrössert kommt das analysefenster nicht mehr in den vordergrund genauso hängt es immer hinter dem fenster mit der bausteinauswahl -o wenn die konsole voll ist scrollt sie nicht mit nach unten \ No newline at end of file +o wenn die konsole voll ist scrollt sie nicht mit nach unten +o Das Hinzufuegen von Analysepunkten GLEICHEN Namens wird in der Tabelle als nur EIN vorhandener Analysepunkt aufgezeigt \ No newline at end of file |