|
From: Carlos <ma...@us...> - 2007-10-22 22:22:27
|
Update of /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv8647/src/java/net/sf/tails/swing/frame Modified Files: Index.java Log Message: Update. Index: Index.java =================================================================== RCS file: /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame/Index.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** Index.java 22 Oct 2007 21:28:17 -0000 1.28 --- Index.java 22 Oct 2007 22:22:27 -0000 1.29 *************** *** 90,93 **** --- 90,95 ---- private javax.swing.JButton moveLeftButton; private javax.swing.JButton moveRightButton; + private javax.swing.JButton jumpLeftButton; + private javax.swing.JButton jumpRightButton; private javax.swing.JButton helpButton; private javax.swing.JScrollPane reportScrollPane; *************** *** 173,177 **** completeGraphButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("GRAPH"))); moveLeftButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("MOVE_LEFT"))); ! moveRightButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("MOVE_RIGHT"))); helpButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("HELP"))); --- 175,181 ---- completeGraphButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("GRAPH"))); moveLeftButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("MOVE_LEFT"))); ! moveRightButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("MOVE_RIGHT"))); ! jumpLeftButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("JUMP_LEFT"))); ! jumpRightButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("JUMP_RIGHT"))); helpButton = new javax.swing.JButton(new ImageIcon(iconBundle.getString("HELP"))); *************** *** 393,396 **** --- 397,418 ---- }); + jumpLeftButton.setToolTipText("Jump Left"); + jumpLeftButton.setMaximumSize(new java.awt.Dimension(25, 25)); + jumpLeftButton.setMinimumSize(new java.awt.Dimension(25, 25)); + jumpLeftButton.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jumpLeftButtonActionPerformed(evt); + } + }); + + jumpRightButton.setToolTipText("Jump Right"); + jumpRightButton.setMaximumSize(new java.awt.Dimension(25, 25)); + jumpRightButton.setMinimumSize(new java.awt.Dimension(25, 25)); + jumpRightButton.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jumpRightButtonActionPerformed(evt); + } + }); + helpButton.setToolTipText("Help"); helpButton.setMaximumSize(new java.awt.Dimension(25, 25)); *************** *** 508,514 **** .addComponent(completeGraphButton) .addGap(2) .addComponent(moveLeftButton) .addGap(2) ! .addComponent(moveRightButton) .addGap(4) .addComponent(separator6) --- 530,540 ---- .addComponent(completeGraphButton) .addGap(2) + .addComponent(jumpLeftButton) + .addGap(2) .addComponent(moveLeftButton) .addGap(2) ! .addComponent(moveRightButton) ! .addGap(2) ! .addComponent(jumpRightButton) .addGap(4) .addComponent(separator6) *************** *** 541,546 **** --- 567,574 ---- .addComponent(separator6) .addComponent(completeGraphButton) + .addComponent(jumpLeftButton) .addComponent(moveLeftButton) .addComponent(moveRightButton) + .addComponent(jumpRightButton) .addComponent(separator7) .addComponent(helpButton) *************** *** 560,570 **** } ! protected void moveLeftButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveLeft(); seriesChart = new SeriesChart(seriesDataset); seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); if(chartsPane.getComponentCount() > 1) { ! criteriaDataset.moveLeft(); criteriaChart = new CriteriaChart(criteriaDataset); criteriaPanel = new ChartPanel(criteriaChart.createChart("", true)); --- 588,622 ---- } ! protected void jumpLeftButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveLeft(stockAnalysis.getSlicer().getSlice(0).getSize()); ! seriesChart = new SeriesChart(seriesDataset); ! seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); ! if(chartsPane.getComponentCount() > 1) ! { ! criteriaDataset.moveLeft(); ! criteriaChart = new CriteriaChart(criteriaDataset); ! criteriaPanel = new ChartPanel(criteriaChart.createChart("", true)); ! } ! } ! ! protected void moveLeftButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveLeft(1); ! seriesChart = new SeriesChart(seriesDataset); ! seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); ! if(chartsPane.getComponentCount() > 1) ! { ! criteriaDataset.moveLeft(); ! criteriaChart = new CriteriaChart(criteriaDataset); ! criteriaPanel = new ChartPanel(criteriaChart.createChart("", true)); ! } ! } ! ! protected void jumpRightButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveRight(stockAnalysis.getSlicer().getSlice(0).getSize()); seriesChart = new SeriesChart(seriesDataset); seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); if(chartsPane.getComponentCount() > 1) { ! criteriaDataset.moveRight(); criteriaChart = new CriteriaChart(criteriaDataset); criteriaPanel = new ChartPanel(criteriaChart.createChart("", true)); *************** *** 573,577 **** protected void moveRightButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveRight(); seriesChart = new SeriesChart(seriesDataset); seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); --- 625,629 ---- protected void moveRightButtonActionPerformed(ActionEvent evt) { ! seriesDataset.moveRight(1); seriesChart = new SeriesChart(seriesDataset); seriesPanel = new org.jfree.chart.ChartPanel(seriesChart.createChart("", true)); |