mathlib-commitlog Mailing List for JMathLib - Octave, Matlab clone in java
Status: Beta
Brought to you by:
st_mueller
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(4) |
Aug
(150) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(233) |
Feb
(86) |
Mar
(32) |
Apr
(26) |
May
(73) |
Jun
(45) |
Jul
(23) |
Aug
(23) |
Sep
(5) |
Oct
(80) |
Nov
(11) |
Dec
(11) |
2008 |
Jan
|
Feb
|
Mar
(13) |
Apr
(3) |
May
(7) |
Jun
(30) |
Jul
(12) |
Aug
(12) |
Sep
|
Oct
|
Nov
(78) |
Dec
(78) |
2009 |
Jan
(214) |
Feb
(79) |
Mar
(20) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <st_...@us...> - 2009-03-26 20:42:03
|
Revision: 910 http://mathlib.svn.sourceforge.net/mathlib/?rev=910&view=rev Author: st_mueller Date: 2009-03-26 20:41:53 +0000 (Thu, 26 Mar 2009) Log Message: ----------- just some blank functions. Nothing really useful inside. Added Paths: ----------- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/errordlg.java JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/helpdlg.java JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/inputdlg.java JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/msgbox.java JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/warndlg.java Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/errordlg.java =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/errordlg.java (rev 0) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/errordlg.java 2009-03-26 20:41:53 UTC (rev 910) @@ -0,0 +1,125 @@ +package jmathlib.toolbox.jmathlib.ui; + +import jmathlib.core.tokens.numbertokens.DoubleNumberToken; +import jmathlib.core.tokens.Token; +import jmathlib.core.tokens.OperandToken; +import jmathlib.core.functions.ExternalFunction; +import jmathlib.core.interpreter.GlobalValues; + +import java.awt.*; +import java.awt.event.*; + + +public class errordlg extends ExternalFunction +{ + public OperandToken evaluate(Token[] operands, GlobalValues globals) + { + + // exactly one operand + if (getNArgIn(operands) != 1) + throwMathLibException("fix: number of arguments != 1"); + + // only works on numbers + if(!(operands[0] instanceof DoubleNumberToken)) + throwMathLibException("fix: only works on numbers"); + + Frame f = new Frame(); + ModalDialog m = new ModalDialog(f,"kk","What do you want?",new String[]{"ok","not ok","maybe"}); + + + //f.show(); + m.show(); + + debugLine("questdlg: "+m.str); + + DoubleNumberToken matrix = ((DoubleNumberToken)operands[0]); + OperandToken temp = ((OperandToken)matrix.clone()); + + double[][] reValues = matrix.getValuesRe(); + double[][] imValues = matrix.getValuesIm(); + for(int y = 0; y < matrix.getSizeY(); y++) + { + for(int x = 0; x < matrix.getSizeX(); x++) + { + if(reValues[y][x] >=0 ) + { + // e.g. fix(3.2) => 3 + reValues[y][x] = java.lang.Math.floor(reValues[y][x]); + } + else + { + // e.g. fix(-3.2) => -3 + reValues[y][x] = java.lang.Math.ceil(reValues[y][x]); + } + if(imValues[y][x] >=0 ) + { + // e.g. fix(3.2i) => 3 + imValues[y][x] = java.lang.Math.floor(imValues[y][x]); + } + else + { + // e.g. fix(-3.2i) => -3 + imValues[y][x] = java.lang.Math.ceil(imValues[y][x]); + } + } + } + return new DoubleNumberToken(reValues, imValues); + + } + + class ModalDialog extends Dialog implements ActionListener + { + public String str = "XX"; + + public ModalDialog(Frame owner, String title, String msg, String[] buttons) + { + super(owner, title, true); + + setBackground(Color.lightGray); + setLayout(new BorderLayout()); + setResizable(false); + add(new Label(msg), BorderLayout.CENTER); + + Panel panel = new Panel(); + panel.setLayout(new FlowLayout(FlowLayout.CENTER)); + + for (int i=0; i<buttons.length; i++) + { + Button button = new Button(buttons[i]); + button.addActionListener(this); + panel.add(button); + } + + + add(panel, BorderLayout.SOUTH); + pack(); + + + } + + public void actionPerformed(ActionEvent event) + { + str = event.getActionCommand(); + setVisible(false); + dispose(); + } + + } +} + +/* +@GROUP +ui +@SYNTAX +button = questdlg(question, title, button1, button2, options); +@DOC +Rounds the element to the nearest element towards zero. +@EXAMPLES +<programlisting> +button = questdlg("do you like JMathLib","What about JMathLib","yes","even mor","yes"); +</programlisting> +@NOTES +@SEE + +**/ + Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/helpdlg.java =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/helpdlg.java (rev 0) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/helpdlg.java 2009-03-26 20:41:53 UTC (rev 910) @@ -0,0 +1,125 @@ +package jmathlib.toolbox.jmathlib.ui; + +import jmathlib.core.tokens.numbertokens.DoubleNumberToken; +import jmathlib.core.tokens.Token; +import jmathlib.core.tokens.OperandToken; +import jmathlib.core.functions.ExternalFunction; +import jmathlib.core.interpreter.GlobalValues; + +import java.awt.*; +import java.awt.event.*; + + +public class helpdlg extends ExternalFunction +{ + public OperandToken evaluate(Token[] operands, GlobalValues globals) + { + + // exactly one operand + if (getNArgIn(operands) != 1) + throwMathLibException("fix: number of arguments != 1"); + + // only works on numbers + if(!(operands[0] instanceof DoubleNumberToken)) + throwMathLibException("fix: only works on numbers"); + + Frame f = new Frame(); + ModalDialog m = new ModalDialog(f,"kk","What do you want?",new String[]{"ok","not ok","maybe"}); + + + //f.show(); + m.show(); + + debugLine("questdlg: "+m.str); + + DoubleNumberToken matrix = ((DoubleNumberToken)operands[0]); + OperandToken temp = ((OperandToken)matrix.clone()); + + double[][] reValues = matrix.getValuesRe(); + double[][] imValues = matrix.getValuesIm(); + for(int y = 0; y < matrix.getSizeY(); y++) + { + for(int x = 0; x < matrix.getSizeX(); x++) + { + if(reValues[y][x] >=0 ) + { + // e.g. fix(3.2) => 3 + reValues[y][x] = java.lang.Math.floor(reValues[y][x]); + } + else + { + // e.g. fix(-3.2) => -3 + reValues[y][x] = java.lang.Math.ceil(reValues[y][x]); + } + if(imValues[y][x] >=0 ) + { + // e.g. fix(3.2i) => 3 + imValues[y][x] = java.lang.Math.floor(imValues[y][x]); + } + else + { + // e.g. fix(-3.2i) => -3 + imValues[y][x] = java.lang.Math.ceil(imValues[y][x]); + } + } + } + return new DoubleNumberToken(reValues, imValues); + + } + + class ModalDialog extends Dialog implements ActionListener + { + public String str = "XX"; + + public ModalDialog(Frame owner, String title, String msg, String[] buttons) + { + super(owner, title, true); + + setBackground(Color.lightGray); + setLayout(new BorderLayout()); + setResizable(false); + add(new Label(msg), BorderLayout.CENTER); + + Panel panel = new Panel(); + panel.setLayout(new FlowLayout(FlowLayout.CENTER)); + + for (int i=0; i<buttons.length; i++) + { + Button button = new Button(buttons[i]); + button.addActionListener(this); + panel.add(button); + } + + + add(panel, BorderLayout.SOUTH); + pack(); + + + } + + public void actionPerformed(ActionEvent event) + { + str = event.getActionCommand(); + setVisible(false); + dispose(); + } + + } +} + +/* +@GROUP +ui +@SYNTAX +button = questdlg(question, title, button1, button2, options); +@DOC +Rounds the element to the nearest element towards zero. +@EXAMPLES +<programlisting> +button = questdlg("do you like JMathLib","What about JMathLib","yes","even mor","yes"); +</programlisting> +@NOTES +@SEE + +**/ + Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/inputdlg.java =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/inputdlg.java (rev 0) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/inputdlg.java 2009-03-26 20:41:53 UTC (rev 910) @@ -0,0 +1,125 @@ +package jmathlib.toolbox.jmathlib.ui; + +import jmathlib.core.tokens.numbertokens.DoubleNumberToken; +import jmathlib.core.tokens.Token; +import jmathlib.core.tokens.OperandToken; +import jmathlib.core.functions.ExternalFunction; +import jmathlib.core.interpreter.GlobalValues; + +import java.awt.*; +import java.awt.event.*; + + +public class inputdlg extends ExternalFunction +{ + public OperandToken evaluate(Token[] operands, GlobalValues globals) + { + + // exactly one operand + if (getNArgIn(operands) != 1) + throwMathLibException("fix: number of arguments != 1"); + + // only works on numbers + if(!(operands[0] instanceof DoubleNumberToken)) + throwMathLibException("fix: only works on numbers"); + + Frame f = new Frame(); + ModalDialog m = new ModalDialog(f,"kk","What do you want?",new String[]{"ok","not ok","maybe"}); + + + //f.show(); + m.show(); + + debugLine("questdlg: "+m.str); + + DoubleNumberToken matrix = ((DoubleNumberToken)operands[0]); + OperandToken temp = ((OperandToken)matrix.clone()); + + double[][] reValues = matrix.getValuesRe(); + double[][] imValues = matrix.getValuesIm(); + for(int y = 0; y < matrix.getSizeY(); y++) + { + for(int x = 0; x < matrix.getSizeX(); x++) + { + if(reValues[y][x] >=0 ) + { + // e.g. fix(3.2) => 3 + reValues[y][x] = java.lang.Math.floor(reValues[y][x]); + } + else + { + // e.g. fix(-3.2) => -3 + reValues[y][x] = java.lang.Math.ceil(reValues[y][x]); + } + if(imValues[y][x] >=0 ) + { + // e.g. fix(3.2i) => 3 + imValues[y][x] = java.lang.Math.floor(imValues[y][x]); + } + else + { + // e.g. fix(-3.2i) => -3 + imValues[y][x] = java.lang.Math.ceil(imValues[y][x]); + } + } + } + return new DoubleNumberToken(reValues, imValues); + + } + + class ModalDialog extends Dialog implements ActionListener + { + public String str = "XX"; + + public ModalDialog(Frame owner, String title, String msg, String[] buttons) + { + super(owner, title, true); + + setBackground(Color.lightGray); + setLayout(new BorderLayout()); + setResizable(false); + add(new Label(msg), BorderLayout.CENTER); + + Panel panel = new Panel(); + panel.setLayout(new FlowLayout(FlowLayout.CENTER)); + + for (int i=0; i<buttons.length; i++) + { + Button button = new Button(buttons[i]); + button.addActionListener(this); + panel.add(button); + } + + + add(panel, BorderLayout.SOUTH); + pack(); + + + } + + public void actionPerformed(ActionEvent event) + { + str = event.getActionCommand(); + setVisible(false); + dispose(); + } + + } +} + +/* +@GROUP +ui +@SYNTAX +button = questdlg(question, title, button1, button2, options); +@DOC +Rounds the element to the nearest element towards zero. +@EXAMPLES +<programlisting> +button = questdlg("do you like JMathLib","What about JMathLib","yes","even mor","yes"); +</programlisting> +@NOTES +@SEE + +**/ + Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/msgbox.java =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/msgbox.java (rev 0) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/msgbox.java 2009-03-26 20:41:53 UTC (rev 910) @@ -0,0 +1,125 @@ +package jmathlib.toolbox.jmathlib.ui; + +import jmathlib.core.tokens.numbertokens.DoubleNumberToken; +import jmathlib.core.tokens.Token; +import jmathlib.core.tokens.OperandToken; +import jmathlib.core.functions.ExternalFunction; +import jmathlib.core.interpreter.GlobalValues; + +import java.awt.*; +import java.awt.event.*; + + +public class msgbox extends ExternalFunction +{ + public OperandToken evaluate(Token[] operands, GlobalValues globals) + { + + // exactly one operand + if (getNArgIn(operands) != 1) + throwMathLibException("fix: number of arguments != 1"); + + // only works on numbers + if(!(operands[0] instanceof DoubleNumberToken)) + throwMathLibException("fix: only works on numbers"); + + Frame f = new Frame(); + ModalDialog m = new ModalDialog(f,"kk","What do you want?",new String[]{"ok","not ok","maybe"}); + + + //f.show(); + m.show(); + + debugLine("questdlg: "+m.str); + + DoubleNumberToken matrix = ((DoubleNumberToken)operands[0]); + OperandToken temp = ((OperandToken)matrix.clone()); + + double[][] reValues = matrix.getValuesRe(); + double[][] imValues = matrix.getValuesIm(); + for(int y = 0; y < matrix.getSizeY(); y++) + { + for(int x = 0; x < matrix.getSizeX(); x++) + { + if(reValues[y][x] >=0 ) + { + // e.g. fix(3.2) => 3 + reValues[y][x] = java.lang.Math.floor(reValues[y][x]); + } + else + { + // e.g. fix(-3.2) => -3 + reValues[y][x] = java.lang.Math.ceil(reValues[y][x]); + } + if(imValues[y][x] >=0 ) + { + // e.g. fix(3.2i) => 3 + imValues[y][x] = java.lang.Math.floor(imValues[y][x]); + } + else + { + // e.g. fix(-3.2i) => -3 + imValues[y][x] = java.lang.Math.ceil(imValues[y][x]); + } + } + } + return new DoubleNumberToken(reValues, imValues); + + } + + class ModalDialog extends Dialog implements ActionListener + { + public String str = "XX"; + + public ModalDialog(Frame owner, String title, String msg, String[] buttons) + { + super(owner, title, true); + + setBackground(Color.lightGray); + setLayout(new BorderLayout()); + setResizable(false); + add(new Label(msg), BorderLayout.CENTER); + + Panel panel = new Panel(); + panel.setLayout(new FlowLayout(FlowLayout.CENTER)); + + for (int i=0; i<buttons.length; i++) + { + Button button = new Button(buttons[i]); + button.addActionListener(this); + panel.add(button); + } + + + add(panel, BorderLayout.SOUTH); + pack(); + + + } + + public void actionPerformed(ActionEvent event) + { + str = event.getActionCommand(); + setVisible(false); + dispose(); + } + + } +} + +/* +@GROUP +ui +@SYNTAX +button = questdlg(question, title, button1, button2, options); +@DOC +Rounds the element to the nearest element towards zero. +@EXAMPLES +<programlisting> +button = questdlg("do you like JMathLib","What about JMathLib","yes","even mor","yes"); +</programlisting> +@NOTES +@SEE + +**/ + Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/warndlg.java =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/warndlg.java (rev 0) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ui/warndlg.java 2009-03-26 20:41:53 UTC (rev 910) @@ -0,0 +1,125 @@ +package jmathlib.toolbox.jmathlib.ui; + +import jmathlib.core.tokens.numbertokens.DoubleNumberToken; +import jmathlib.core.tokens.Token; +import jmathlib.core.tokens.OperandToken; +import jmathlib.core.functions.ExternalFunction; +import jmathlib.core.interpreter.GlobalValues; + +import java.awt.*; +import java.awt.event.*; + + +public class warndlg extends ExternalFunction +{ + public OperandToken evaluate(Token[] operands, GlobalValues globals) + { + + // exactly one operand + if (getNArgIn(operands) != 1) + throwMathLibException("fix: number of arguments != 1"); + + // only works on numbers + if(!(operands[0] instanceof DoubleNumberToken)) + throwMathLibException("fix: only works on numbers"); + + Frame f = new Frame(); + ModalDialog m = new ModalDialog(f,"kk","What do you want?",new String[]{"ok","not ok","maybe"}); + + + //f.show(); + m.show(); + + debugLine("questdlg: "+m.str); + + DoubleNumberToken matrix = ((DoubleNumberToken)operands[0]); + OperandToken temp = ((OperandToken)matrix.clone()); + + double[][] reValues = matrix.getValuesRe(); + double[][] imValues = matrix.getValuesIm(); + for(int y = 0; y < matrix.getSizeY(); y++) + { + for(int x = 0; x < matrix.getSizeX(); x++) + { + if(reValues[y][x] >=0 ) + { + // e.g. fix(3.2) => 3 + reValues[y][x] = java.lang.Math.floor(reValues[y][x]); + } + else + { + // e.g. fix(-3.2) => -3 + reValues[y][x] = java.lang.Math.ceil(reValues[y][x]); + } + if(imValues[y][x] >=0 ) + { + // e.g. fix(3.2i) => 3 + imValues[y][x] = java.lang.Math.floor(imValues[y][x]); + } + else + { + // e.g. fix(-3.2i) => -3 + imValues[y][x] = java.lang.Math.ceil(imValues[y][x]); + } + } + } + return new DoubleNumberToken(reValues, imValues); + + } + + class ModalDialog extends Dialog implements ActionListener + { + public String str = "XX"; + + public ModalDialog(Frame owner, String title, String msg, String[] buttons) + { + super(owner, title, true); + + setBackground(Color.lightGray); + setLayout(new BorderLayout()); + setResizable(false); + add(new Label(msg), BorderLayout.CENTER); + + Panel panel = new Panel(); + panel.setLayout(new FlowLayout(FlowLayout.CENTER)); + + for (int i=0; i<buttons.length; i++) + { + Button button = new Button(buttons[i]); + button.addActionListener(this); + panel.add(button); + } + + + add(panel, BorderLayout.SOUTH); + pack(); + + + } + + public void actionPerformed(ActionEvent event) + { + str = event.getActionCommand(); + setVisible(false); + dispose(); + } + + } +} + +/* +@GROUP +ui +@SYNTAX +button = questdlg(question, title, button1, button2, options); +@DOC +Rounds the element to the nearest element towards zero. +@EXAMPLES +<programlisting> +button = questdlg("do you like JMathLib","What about JMathLib","yes","even mor","yes"); +</programlisting> +@NOTES +@SEE + +**/ + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-08 21:42:38
|
Revision: 909 http://mathlib.svn.sourceforge.net/mathlib/?rev=909&view=rev Author: st_mueller Date: 2009-03-08 21:42:32 +0000 (Sun, 08 Mar 2009) Log Message: ----------- Removed Paths: ------------- JMathLib/trunk/src/src/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-08 19:39:26
|
Revision: 908 http://mathlib.svn.sourceforge.net/mathlib/?rev=908&view=rev Author: st_mueller Date: 2009-03-08 19:39:11 +0000 (Sun, 08 Mar 2009) Log Message: ----------- Modified Paths: -------------- JMathLib/trunk/build.properties Modified: JMathLib/trunk/build.properties =================================================================== --- JMathLib/trunk/build.properties 2009-03-04 05:53:24 UTC (rev 907) +++ JMathLib/trunk/build.properties 2009-03-08 19:39:11 UTC (rev 908) @@ -31,12 +31,10 @@ dist.dir = ${build.dir}/upload/jmathlib web.dest = ${build.dir}/upload/website -# packages=MathLib.Tokens,MathLib.Interpreter,MathLib.Functions,MathLib.Casts,MathLib.GUI,MathLib.Functions.Matrix,MathLib.Functions.Graphics,MathLib.Functions.General,MathLib.Functions.IO,MathLib.Functions.Polynomial,MathLib.Functions.String,MathLib.Functions.System,MathLib.Functions.Trigonometric,MathLib.Constants,MathLib.Graphics,MathLib.Functions.Graphics.Graph2d,MathLib.Functions.Graphics.Graph3d,MathLib.TUI - - +# path the top test class test.class=jmathlibtests.AllTests - +# path to installer nsis.path=c:/programme/nsis/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-04 05:53:28
|
Revision: 907 http://mathlib.svn.sourceforge.net/mathlib/?rev=907&view=rev Author: st_mueller Date: 2009-03-04 05:53:24 +0000 (Wed, 04 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/constants/ErrorCodes.java JMathLib/trunk/src/jmathlib/core/constants/TokenConstants.java Modified: JMathLib/trunk/src/jmathlib/core/constants/ErrorCodes.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/constants/ErrorCodes.java 2009-03-01 15:27:27 UTC (rev 906) +++ JMathLib/trunk/src/jmathlib/core/constants/ErrorCodes.java 2009-03-04 05:53:24 UTC (rev 907) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: + * (c) 2005-2009 + */ package jmathlib.core.constants; public interface ErrorCodes Modified: JMathLib/trunk/src/jmathlib/core/constants/TokenConstants.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/constants/TokenConstants.java 2009-03-01 15:27:27 UTC (rev 906) +++ JMathLib/trunk/src/jmathlib/core/constants/TokenConstants.java 2009-03-04 05:53:24 UTC (rev 907) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: + * (c) 2005-2009 + */ package jmathlib.core.constants; /** a set of constants used by the Token classes*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:27:31
|
Revision: 906 http://mathlib.svn.sourceforge.net/mathlib/?rev=906&view=rev Author: st_mueller Date: 2009-03-01 15:27:27 +0000 (Sun, 01 Mar 2009) Log Message: ----------- deletet ConsoleKeyhandler.java. Instead use jmathlib.ui.common.ConsoleKeyHandler Removed Paths: ------------- JMathLib/trunk/src/jmathlib/ui/awt/ConsoleKeyHandler.java Deleted: JMathLib/trunk/src/jmathlib/ui/awt/ConsoleKeyHandler.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/awt/ConsoleKeyHandler.java 2009-03-01 15:00:59 UTC (rev 905) +++ JMathLib/trunk/src/jmathlib/ui/awt/ConsoleKeyHandler.java 2009-03-01 15:27:27 UTC (rev 906) @@ -1,59 +0,0 @@ -package jmathlib.ui.awt; - -import java.awt.event.*; - -/**Class for handling key events -It only works with the Console class*/ -public class ConsoleKeyHandler implements KeyListener -{ - public ConsoleKeyHandler() - { - } - - public void keyTyped(KeyEvent e){} - - /**Interpret key presses*/ - public void keyPressed(KeyEvent e) - { - Console input = ((Console)e.getSource()); - int keyValue = e.getKeyCode(); - - if((keyValue == KeyEvent.VK_UP) || - (keyValue == KeyEvent.VK_DOWN) ) - { - //consume the key event so the cursor doesn't move - e.consume(); - - if(keyValue == KeyEvent.VK_UP) //up cursor - input.prevCommand(); - else if(keyValue == KeyEvent.VK_DOWN) //down cursor - input.nextCommand(); - - } - else if(keyValue == KeyEvent.VK_LEFT) //left cursor - { - //check the cursor isn't moving off the current line - input.checkPosition(); - } - else if(keyValue == KeyEvent.VK_ENTER) - { - //stop the enter from working - e.consume(); - } - } - - - public void keyReleased(KeyEvent e) - { - Console input = ((Console)e.getSource()); - int keyValue = e.getKeyCode(); - - if(keyValue == KeyEvent.VK_ENTER) - input.interpretLine(); - else if(keyValue == KeyEvent.VK_HOME) - input.home(); - else if((keyValue == KeyEvent.VK_UP) || - (keyValue == KeyEvent.VK_DOWN) ) - input.end(); - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:01:05
|
Revision: 905 http://mathlib.svn.sourceforge.net/mathlib/?rev=905&view=rev Author: st_mueller Date: 2009-03-01 15:00:59 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/PropertySet.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/PropertySet.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/PropertySet.java 2009-03-01 15:00:45 UTC (rev 904) +++ JMathLib/trunk/src/jmathlib/core/graphics/PropertySet.java 2009-03-01 15:00:59 UTC (rev 905) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... and others + * (c) 2008-2009 + */ package jmathlib.core.graphics; import jmathlib.core.graphics.properties.*; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:00:50
|
Revision: 904 http://mathlib.svn.sourceforge.net/mathlib/?rev=904&view=rev Author: st_mueller Date: 2009-03-01 15:00:45 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/Matrix3D.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/Matrix3D.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/Matrix3D.java 2009-03-01 15:00:37 UTC (rev 903) +++ JMathLib/trunk/src/jmathlib/core/graphics/Matrix3D.java 2009-03-01 15:00:45 UTC (rev 904) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... and others + * (c) 2008-2009 + */ package jmathlib.core.graphics; /** A fairly conventional 3D matrix object that can transform sets of This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:00:48
|
Revision: 903 http://mathlib.svn.sourceforge.net/mathlib/?rev=903&view=rev Author: st_mueller Date: 2009-03-01 15:00:37 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/GraphicsManager.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/GraphicsManager.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/GraphicsManager.java 2009-03-01 15:00:27 UTC (rev 902) +++ JMathLib/trunk/src/jmathlib/core/graphics/GraphicsManager.java 2009-03-01 15:00:37 UTC (rev 903) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... and others + * (c) 2008-2009 + */ package jmathlib.core.graphics; import java.util.Vector; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:00:33
|
Revision: 902 http://mathlib.svn.sourceforge.net/mathlib/?rev=902&view=rev Author: st_mueller Date: 2009-03-01 15:00:27 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/HandleObject.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/HandleObject.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/HandleObject.java 2009-03-01 15:00:09 UTC (rev 901) +++ JMathLib/trunk/src/jmathlib/core/graphics/HandleObject.java 2009-03-01 15:00:27 UTC (rev 902) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... and others + * (c) 2008-2009 + */ package jmathlib.core.graphics; import java.util.HashMap; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:00:17
|
Revision: 901 http://mathlib.svn.sourceforge.net/mathlib/?rev=901&view=rev Author: st_mueller Date: 2009-03-01 15:00:09 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/GraphicalObject.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/GraphicalObject.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/GraphicalObject.java 2009-03-01 14:59:56 UTC (rev 900) +++ JMathLib/trunk/src/jmathlib/core/graphics/GraphicalObject.java 2009-03-01 15:00:09 UTC (rev 901) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... and others + * (c) 2008-2009 + */ package jmathlib.core.graphics; import java.awt.*; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 15:00:02
|
Revision: 900 http://mathlib.svn.sourceforge.net/mathlib/?rev=900&view=rev Author: st_mueller Date: 2009-03-01 14:59:56 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/core/graphics/FigureObject.java Modified: JMathLib/trunk/src/jmathlib/core/graphics/FigureObject.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/graphics/FigureObject.java 2009-03-01 13:29:03 UTC (rev 899) +++ JMathLib/trunk/src/jmathlib/core/graphics/FigureObject.java 2009-03-01 14:59:56 UTC (rev 900) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: + * (c) 2008-2009 + */ package jmathlib.core.graphics; import jmathlib.core.interpreter.ErrorLogger; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:29:06
|
Revision: 899 http://mathlib.svn.sourceforge.net/mathlib/?rev=899&view=rev Author: st_mueller Date: 2009-03-01 13:29:03 +0000 (Sun, 01 Mar 2009) Log Message: ----------- use Console.java from jmathlib.ui.common Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/text/TextUI.java Modified: JMathLib/trunk/src/jmathlib/ui/text/TextUI.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/text/TextUI.java 2009-03-01 13:27:42 UTC (rev 898) +++ JMathLib/trunk/src/jmathlib/ui/text/TextUI.java 2009-03-01 13:29:03 UTC (rev 899) @@ -1,12 +1,21 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... + * (c) 2008-2009 + */ package jmathlib.ui.text; import jmathlib.core.interpreter.*; -import jmathlib.core.interfaces.*; -import jmathlib.ui.common.Console; +import jmathlib.core.interfaces.RemoteAccessible; +import jmathlib.core.interfaces.JMathLibOutput; import java.io.*; -public class TextUI implements RemoteAccesible, JMathLibOutput +/** text GUI for JMathLib */ +public class TextUI implements RemoteAccessible, JMathLibOutput { /**store whether executing lines or entering a function def*/ private boolean interactiveMode; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:27:55
|
Revision: 898 http://mathlib.svn.sourceforge.net/mathlib/?rev=898&view=rev Author: st_mueller Date: 2009-03-01 13:27:42 +0000 (Sun, 01 Mar 2009) Log Message: ----------- use Console.java from jmathlib.ui.common Added Paths: ----------- JMathLib/trunk/src/jmathlib/ui/common/Console.java Removed Paths: ------------- JMathLib/trunk/src/jmathlib/ui/common/Console.java Deleted: JMathLib/trunk/src/jmathlib/ui/common/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 13:25:51 UTC (rev 897) +++ JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 13:27:42 UTC (rev 898) @@ -1,168 +0,0 @@ -/* - * This file is part or JMathLib - * - * Check it out at http://www.jmathlib.de - * - * Author: st...@he... - * (c) 2006-2009 - */ -package jmathlib.ui.common; - -import jmathlib.core.interfaces.RemoteAccessible; - -import java.awt.*; -import java.awt.event.*; -import java.util.Vector; - -/**Class implementing a console style window -It needs the ConsoleKeyHandler class to work*/ -public class Console extends TextArea -{ - int commandNo; - - /**store for previous commands*/ - Vector previousCommands; - - /**The position of the start of the line*/ - int lineStart; - - /**The applet containing the console*/ - RemoteAccessible callerClass; - - /**Event Handler used for handling key events*/ - //public KeyListener keyHandler; - - /**Construct the console*/ - public Console(RemoteAccessible _callerClass) - { - - commandNo = 0; - previousCommands = new Vector(10, 10); - lineStart = getText().length() + 1; - - callerClass = _callerClass; - - KeyListener keyHandler = new ConsoleKeyHandler(); - - addKeyListener(keyHandler); - } - - public void addKeyListener(KeyListener keyHandler) - { - //System.out.println("KEYLISTENER"); - System.out.println("KEY "+keyHandler); - super.addKeyListener(keyHandler); - } - - /**display the previous command in the list*/ - public void prevCommand() - { - commandNo--; - - String text = ""; - if(commandNo >= 0 && commandNo < previousCommands.size()) - { - text = ((String)previousCommands.elementAt(commandNo)).trim(); - } - else if(commandNo < 0) - { - text = ""; - commandNo = -1; - } - - // replace current command with previous command - String textArea = getText(); - int pos1 = textArea.lastIndexOf("> ") + 2; - setText(textArea.substring(0,pos1)+text); - - // set cursor at the end of the text area - setCaretPosition(getText().length()); - } - - /**display the next command in the list*/ - public void nextCommand() - { - commandNo++; - - String text = ""; - if(commandNo >= 0 && commandNo < previousCommands.size()) - { - text = ((String)previousCommands.elementAt(commandNo)).trim(); - } - else if(commandNo >= previousCommands.size()) - { - text = ""; - commandNo = previousCommands.size(); - } - - // replace current command with next command - String textArea = getText(); - int pos1 = textArea.lastIndexOf("> ") + 2; - setText(textArea.substring(0,pos1)+text); - - // set cursor at the end of the text area - setCaretPosition(getText().length()); - } - - /**Check that the cursor hasn't moved beyond the start - of the line*/ - public void checkPosition() - { - if(getCaretPosition() < lineStart) - setCaretPosition(lineStart); - } - - /**Go to the home position*/ - public void home() - { - setCaretPosition(lineStart - 1); - } - - /**Go to the end of the line*/ - public void end() - { - setCaretPosition(getText().length()); - } - - /**Interpret the current line*/ - public void interpretLine() - { - //get the text on the current line - String text = getText(); - String inputString = text.substring(text.lastIndexOf("> ") + 2, text.length()); - - /* exit application */ - if(inputString.equals("quit") || - inputString.equals("exit") ) - { - callerClass.close(); - } - - - append("\n"); - callerClass.interpretLine(inputString); - previousCommands.addElement(inputString); - commandNo = previousCommands.size(); - } - - /**Display the command prompt*/ - public void displayPrompt() - { - append("> "); - lineStart = getText().length() + 1; - setCaretPosition(lineStart); - } - - //Display a new line*/ - public void newLine() - { - append("\n"); - } - - /**Display some text on a new line*/ - public void displayText(String text) - { - append( text + "\n" ); - } - -} Added: JMathLib/trunk/src/jmathlib/ui/common/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/common/Console.java (rev 0) +++ JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 13:27:42 UTC (rev 898) @@ -0,0 +1,168 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... + * (c) 2006-2009 + */ +package jmathlib.ui.common; + +import jmathlib.core.interfaces.RemoteAccessible; + +import java.awt.*; +import java.awt.event.*; +import java.util.Vector; + +/**Class implementing a console style window +It needs the ConsoleKeyHandler class to work*/ +public class Console extends TextArea +{ + int commandNo; + + /**store for previous commands*/ + Vector previousCommands; + + /**The position of the start of the line*/ + int lineStart; + + /**The applet containing the console*/ + RemoteAccessible callerClass; + + /**Event Handler used for handling key events*/ + //public KeyListener keyHandler; + + /**Construct the console*/ + public Console(RemoteAccessible _callerClass) + { + + commandNo = 0; + previousCommands = new Vector(10, 10); + lineStart = getText().length() + 1; + + callerClass = _callerClass; + + KeyListener keyHandler = new ConsoleKeyHandler(); + + addKeyListener(keyHandler); + } + + public void addKeyListener(KeyListener keyHandler) + { + //System.out.println("KEYLISTENER"); + System.out.println("KEY "+keyHandler); + super.addKeyListener(keyHandler); + } + + /**display the previous command in the list*/ + public void prevCommand() + { + commandNo--; + + String text = ""; + if(commandNo >= 0 && commandNo < previousCommands.size()) + { + text = ((String)previousCommands.elementAt(commandNo)).trim(); + } + else if(commandNo < 0) + { + text = ""; + commandNo = -1; + } + + // replace current command with previous command + String textArea = getText(); + int pos1 = textArea.lastIndexOf("> ") + 2; + setText(textArea.substring(0,pos1)+text); + + // set cursor at the end of the text area + setCaretPosition(getText().length()); + } + + /**display the next command in the list*/ + public void nextCommand() + { + commandNo++; + + String text = ""; + if(commandNo >= 0 && commandNo < previousCommands.size()) + { + text = ((String)previousCommands.elementAt(commandNo)).trim(); + } + else if(commandNo >= previousCommands.size()) + { + text = ""; + commandNo = previousCommands.size(); + } + + // replace current command with next command + String textArea = getText(); + int pos1 = textArea.lastIndexOf("> ") + 2; + setText(textArea.substring(0,pos1)+text); + + // set cursor at the end of the text area + setCaretPosition(getText().length()); + } + + /**Check that the cursor hasn't moved beyond the start + of the line*/ + public void checkPosition() + { + if(getCaretPosition() < lineStart) + setCaretPosition(lineStart); + } + + /**Go to the home position*/ + public void home() + { + setCaretPosition(lineStart - 1); + } + + /**Go to the end of the line*/ + public void end() + { + setCaretPosition(getText().length()); + } + + /**Interpret the current line*/ + public void interpretLine() + { + //get the text on the current line + String text = getText(); + String inputString = text.substring(text.lastIndexOf("> ") + 2, text.length()); + + /* exit application */ + if(inputString.equals("quit") || + inputString.equals("exit") ) + { + callerClass.close(); + } + + + append("\n"); + callerClass.interpretLine(inputString); + previousCommands.addElement(inputString); + commandNo = previousCommands.size(); + } + + /**Display the command prompt*/ + public void displayPrompt() + { + append("> "); + lineStart = getText().length() + 1; + setCaretPosition(lineStart); + } + + //Display a new line*/ + public void newLine() + { + append("\n"); + } + + /**Display some text on a new line*/ + public void displayText(String text) + { + append( text + "\n" ); + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:25:54
|
Revision: 897 http://mathlib.svn.sourceforge.net/mathlib/?rev=897&view=rev Author: st_mueller Date: 2009-03-01 13:25:51 +0000 (Sun, 01 Mar 2009) Log Message: ----------- use Console.java from jmathlib.ui.common Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/awt/GUI.java Modified: JMathLib/trunk/src/jmathlib/ui/awt/GUI.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-03-01 13:23:39 UTC (rev 896) +++ JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-03-01 13:25:51 UTC (rev 897) @@ -4,6 +4,7 @@ import jmathlib.core.interpreter.Interpreter; import jmathlib.core.interfaces.JMathLibOutput; import jmathlib.core.interfaces.RemoteAccessible; +import jmathlib.ui.common.Console; import java.awt.*; import java.awt.event.*; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:23:41
|
Revision: 896 http://mathlib.svn.sourceforge.net/mathlib/?rev=896&view=rev Author: st_mueller Date: 2009-03-01 13:23:39 +0000 (Sun, 01 Mar 2009) Log Message: ----------- removed Console.java Removed Paths: ------------- JMathLib/trunk/src/jmathlib/ui/awt/Console.java Deleted: JMathLib/trunk/src/jmathlib/ui/awt/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/awt/Console.java 2009-03-01 13:16:51 UTC (rev 895) +++ JMathLib/trunk/src/jmathlib/ui/awt/Console.java 2009-03-01 13:23:39 UTC (rev 896) @@ -1,162 +0,0 @@ -package jmathlib.ui.awt; - -import jmathlib.core.interfaces.RemoteAccessible; - -import java.awt.*; -import java.awt.event.*; -import java.util.Vector; - -/** - * Class implementing a console style window - * It needs the ConsoleKeyHandler class to work - */ -public class Console extends TextArea -{ - int commandNo; - - /**store for previous commands*/ - Vector previousCommands; - - /**The position of the start of the line*/ - int lineStart; - - /**The applet containing the console*/ - RemoteAccessible callerClass; - - /**Event Handler used for handling key events*/ - //public KeyListener keyHandler; - - /**Construct the console*/ - public Console(RemoteAccessible _callerClass) - { - - commandNo = 0; - previousCommands = new Vector(10, 10); - lineStart = getText().length() + 1; - - callerClass = _callerClass; - - KeyListener keyHandler = new ConsoleKeyHandler(); - - addKeyListener(keyHandler); - } - - public void addKeyListener(KeyListener keyHandler) - { - //System.out.println("KEYLISTENER"); - System.out.println("KEY "+keyHandler); - super.addKeyListener(keyHandler); - } - - /**display the previous command in the list*/ - public void prevCommand() - { - commandNo--; - - String text = ""; - if(commandNo >= 0 && commandNo < previousCommands.size()) - { - text = ((String)previousCommands.elementAt(commandNo)).trim(); - } - else if(commandNo < 0) - { - text = ""; - commandNo = -1; - } - - // replace current command with previous command - String textArea = getText(); - int pos1 = textArea.lastIndexOf("> ") + 2; - setText(textArea.substring(0,pos1)+text); - - // set cursor at the end of the text area - setCaretPosition(getText().length()); - } - - /**display the next command in the list*/ - public void nextCommand() - { - commandNo++; - - String text = ""; - if(commandNo >= 0 && commandNo < previousCommands.size()) - { - text = ((String)previousCommands.elementAt(commandNo)).trim(); - } - else if(commandNo >= previousCommands.size()) - { - text = ""; - commandNo = previousCommands.size(); - } - - // replace current command with next command - String textArea = getText(); - int pos1 = textArea.lastIndexOf("> ") + 2; - setText(textArea.substring(0,pos1)+text); - - // set cursor at the end of the text area - setCaretPosition(getText().length()); - } - - /**Check that the cursor hasn't moved beyond the start - of the line*/ - public void checkPosition() - { - if(getCaretPosition() < lineStart) - setCaretPosition(lineStart); - } - - /**Go to the home position*/ - public void home() - { - setCaretPosition(lineStart - 1); - } - - /**Go to the end of the line*/ - public void end() - { - setCaretPosition(getText().length()); - } - - /**Interpret the current line*/ - public void interpretLine() - { - //get the text on the current line - String text = getText(); - String inputString = text.substring(text.lastIndexOf("> ") + 2, text.length()); - - /* exit application */ - /* if(inputString.equals("quit") || - inputString.equals("exit") ) - { - callerClass.close(); - }*/ - - - append("\n"); - callerClass.interpretLine(inputString); - previousCommands.addElement(inputString); - commandNo = previousCommands.size(); - } - - /**Display the command prompt*/ - public void displayPrompt() - { - append("> "); - lineStart = getText().length() + 1; - setCaretPosition(lineStart); - } - - //Display a new line*/ - public void newLine() - { - append("\n"); - } - - /**Display some text on a new line*/ - public void displayText(String text) - { - append( text + "\n" ); - } - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:17:03
|
Revision: 895 http://mathlib.svn.sourceforge.net/mathlib/?rev=895&view=rev Author: st_mueller Date: 2009-03-01 13:16:51 +0000 (Sun, 01 Mar 2009) Log Message: ----------- renamed RemoteAccesible.java to RemoteAccessible.java Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/awt/Console.java JMathLib/trunk/src/jmathlib/ui/awt/GUI.java JMathLib/trunk/src/jmathlib/ui/common/Console.java Modified: JMathLib/trunk/src/jmathlib/ui/awt/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/awt/Console.java 2009-03-01 13:11:14 UTC (rev 894) +++ JMathLib/trunk/src/jmathlib/ui/awt/Console.java 2009-03-01 13:16:51 UTC (rev 895) @@ -1,6 +1,6 @@ package jmathlib.ui.awt; -import jmathlib.core.interfaces.RemoteAccesible; +import jmathlib.core.interfaces.RemoteAccessible; import java.awt.*; import java.awt.event.*; @@ -21,13 +21,13 @@ int lineStart; /**The applet containing the console*/ - RemoteAccesible callerClass; + RemoteAccessible callerClass; /**Event Handler used for handling key events*/ //public KeyListener keyHandler; /**Construct the console*/ - public Console(RemoteAccesible _callerClass) + public Console(RemoteAccessible _callerClass) { commandNo = 0; Modified: JMathLib/trunk/src/jmathlib/ui/awt/GUI.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-03-01 13:11:14 UTC (rev 894) +++ JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2009-03-01 13:16:51 UTC (rev 895) @@ -1,9 +1,9 @@ package jmathlib.ui.awt; -import jmathlib.core.interfaces.RemoteAccesible; import jmathlib.core.interpreter.ErrorLogger; import jmathlib.core.interpreter.Interpreter; import jmathlib.core.interfaces.JMathLibOutput; +import jmathlib.core.interfaces.RemoteAccessible; import java.awt.*; import java.awt.event.*; @@ -22,7 +22,7 @@ * </ul> * </p> */ -public class GUI extends Frame implements JMathLibOutput, WindowListener, ActionListener, RemoteAccesible, ClipboardOwner +public class GUI extends Frame implements JMathLibOutput, WindowListener, ActionListener, RemoteAccessible, ClipboardOwner { /*The menubar container.*/ private MenuBar mainMenuBar; Modified: JMathLib/trunk/src/jmathlib/ui/common/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 13:11:14 UTC (rev 894) +++ JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 13:16:51 UTC (rev 895) @@ -8,7 +8,7 @@ */ package jmathlib.ui.common; -import jmathlib.core.interfaces.RemoteAccesible; +import jmathlib.core.interfaces.RemoteAccessible; import java.awt.*; import java.awt.event.*; @@ -27,13 +27,13 @@ int lineStart; /**The applet containing the console*/ - RemoteAccesible callerClass; + RemoteAccessible callerClass; /**Event Handler used for handling key events*/ //public KeyListener keyHandler; /**Construct the console*/ - public Console(RemoteAccesible _callerClass) + public Console(RemoteAccessible _callerClass) { commandNo = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:11:24
|
Revision: 894 http://mathlib.svn.sourceforge.net/mathlib/?rev=894&view=rev Author: st_mueller Date: 2009-03-01 13:11:14 +0000 (Sun, 01 Mar 2009) Log Message: ----------- renamed RemoteAccesible.java to RemoteAccessible.java Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java Modified: JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-03-01 13:10:38 UTC (rev 893) +++ JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-03-01 13:11:14 UTC (rev 894) @@ -9,7 +9,7 @@ package jmathlib.ui.applet; import jmathlib.core.interpreter.Interpreter; -import jmathlib.core.interfaces.RemoteAccesible; +import jmathlib.core.interfaces.RemoteAccessible; import jmathlib.core.interfaces.JMathLibOutput; import jmathlib.ui.common.Console; @@ -18,7 +18,7 @@ import java.applet.*; /**applet version of JMathLib*/ -public class JMathLibGUI extends Applet implements RemoteAccesible, JMathLibOutput +public class JMathLibGUI extends Applet implements RemoteAccessible, JMathLibOutput { /**Flag storing whether the program is running as an application or an applet*/ //boolean runningStandalone; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 13:10:42
|
Revision: 893 http://mathlib.svn.sourceforge.net/mathlib/?rev=893&view=rev Author: st_mueller Date: 2009-03-01 13:10:38 +0000 (Sun, 01 Mar 2009) Log Message: ----------- renamed RemoteAccesible.java to RemoteAccessible.java Added Paths: ----------- JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccessible.java Removed Paths: ------------- JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccesible.java Deleted: JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccesible.java =================================================================== --- JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccesible.java 2009-03-01 12:18:45 UTC (rev 892) +++ JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccesible.java 2009-03-01 13:10:38 UTC (rev 893) @@ -1,13 +0,0 @@ -package jmathlib.core.interfaces; - -public interface RemoteAccesible -{ - /**Let the actual class call to the close method of the caller class.*/ - void close(); - - /**Let the actual class call to the interpretLine method of the caller class.*/ - void interpretLine(String line); - -// /**Unused. Let the actual class call to the init method of the caller class.*/ -// public void init(); -} Copied: JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccessible.java (from rev 826, JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccesible.java) =================================================================== --- JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccessible.java (rev 0) +++ JMathLib/trunk/src/jmathlib/core/interfaces/RemoteAccessible.java 2009-03-01 13:10:38 UTC (rev 893) @@ -0,0 +1,12 @@ +package jmathlib.core.interfaces; + +public interface RemoteAccessible +{ + /**Let the actual class call to the close method of the caller class.*/ + void close(); + + /**Let the actual class call to the interpretLine method of the caller class.*/ + void interpretLine(String line); + + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 12:18:49
|
Revision: 892 http://mathlib.svn.sourceforge.net/mathlib/?rev=892&view=rev Author: st_mueller Date: 2009-03-01 12:18:45 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added more comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/common/Console.java JMathLib/trunk/src/jmathlib/ui/common/ConsoleKeyHandler.java Modified: JMathLib/trunk/src/jmathlib/ui/common/Console.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 12:16:10 UTC (rev 891) +++ JMathLib/trunk/src/jmathlib/ui/common/Console.java 2009-03-01 12:18:45 UTC (rev 892) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... + * (c) 2006-2009 + */ package jmathlib.ui.common; import jmathlib.core.interfaces.RemoteAccesible; Modified: JMathLib/trunk/src/jmathlib/ui/common/ConsoleKeyHandler.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/common/ConsoleKeyHandler.java 2009-03-01 12:16:10 UTC (rev 891) +++ JMathLib/trunk/src/jmathlib/ui/common/ConsoleKeyHandler.java 2009-03-01 12:18:45 UTC (rev 892) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... + * (c) 2006-2009 + */ package jmathlib.ui.common; import java.awt.event.*; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-03-01 12:16:20
|
Revision: 891 http://mathlib.svn.sourceforge.net/mathlib/?rev=891&view=rev Author: st_mueller Date: 2009-03-01 12:16:10 +0000 (Sun, 01 Mar 2009) Log Message: ----------- code cleanup Modified Paths: -------------- JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java Modified: JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java =================================================================== --- JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-02-26 16:44:03 UTC (rev 890) +++ JMathLib/trunk/src/jmathlib/ui/applet/JMathLibGUI.java 2009-03-01 12:16:10 UTC (rev 891) @@ -1,3 +1,11 @@ +/* + * This file is part or JMathLib + * + * Check it out at http://www.jmathlib.de + * + * Author: st...@he... + * (c) 2008-2009 + */ package jmathlib.ui.applet; import jmathlib.core.interpreter.Interpreter; @@ -9,11 +17,11 @@ import java.awt.event.*; import java.applet.*; -/**Rudimentary interface used to test the program*/ +/**applet version of JMathLib*/ public class JMathLibGUI extends Applet implements RemoteAccesible, JMathLibOutput { /**Flag storing whether the program is running as an application or an applet*/ - boolean runningStandalone; + //boolean runningStandalone; /**The area used for user input and where the answers are displayed*/ Console answer; @@ -25,10 +33,10 @@ Container container; /**string used for defining user functions*/ - String function; + //String function; /**Flag storing whether each line input should be executed straight away*/ - boolean interactiveMode = true; + //boolean interactiveMode = true; /**Layout manager used for the components*/ BorderLayout layout; @@ -37,24 +45,27 @@ WindowListener handler; /**Temporary store for function code*/ - String functionCode; + //String functionCode; - /**Construct the applet*/ + /** + * Constructor of the applet + */ public JMathLibGUI() { container = this; } - /**Initialize the applet*/ + /** + * Initialize the applet + */ public void init() { - + container.setSize(700,400); layout = new BorderLayout(); container.setLayout(layout); - //answer = new Console((MathLib.Interfaces.RemoteAccesible)this); answer = new Console(this); container.add("Center", answer); @@ -80,7 +91,7 @@ } catch (NumberFormatException e){ } - } + } // end init /** * display text @@ -99,7 +110,9 @@ } - /**start the applet*/ + /** + * start the applet + */ public void start() { answer.displayPrompt(); @@ -116,7 +129,9 @@ } - /**Interpret the last command line entered*/ + /** + * Interpret the last command line entered + */ public void interpretLine(String line) { String answerString = interpreter.executeExpression(line); @@ -124,11 +139,11 @@ answer.displayPrompt(); } - /**Function called when the gui is being close*/ + /** + * Function called when the GUI is being close + */ public void close() { - //interpreter.save(); - - //System.exit(0); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-02-26 16:44:12
|
Revision: 890 http://mathlib.svn.sourceforge.net/mathlib/?rev=890&view=rev Author: st_mueller Date: 2009-02-26 16:44:03 +0000 (Thu, 26 Feb 2009) Log Message: ----------- added more "toolbox introductions" Added Paths: ----------- JMathLib/trunk/doc/src/toolbox_introduction_crypto.xml JMathLib/trunk/doc/src/toolbox_introduction_graph3d.xml JMathLib/trunk/doc/src/toolbox_introduction_graphics.xml JMathLib/trunk/doc/src/toolbox_introduction_matrix.xml JMathLib/trunk/doc/src/toolbox_introduction_system.xml JMathLib/trunk/doc/src/toolbox_introduction_test.xml JMathLib/trunk/doc/src/toolbox_introduction_ui.xml Removed Paths: ------------- JMathLib/trunk/doc/src/toolbox_introduction_cryto.xml Copied: JMathLib/trunk/doc/src/toolbox_introduction_crypto.xml (from rev 578, JMathLib/trunk/doc/src/toolbox_introduction_cryto.xml) =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_crypto.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_crypto.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_crypto"> +<title>Introduction to the toolbox crypto</title> +<indexterm><primary>toolbox crypto</primary></indexterm> +<simpara> + +There will be some great features for crypto systems +in the future. + +</simpara> +</sect1> \ No newline at end of file Deleted: JMathLib/trunk/doc/src/toolbox_introduction_cryto.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_cryto.xml 2009-02-26 12:08:41 UTC (rev 889) +++ JMathLib/trunk/doc/src/toolbox_introduction_cryto.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -1,10 +0,0 @@ -<sect1 id="toolbox_introduction_crypto"> -<title>Introduction to the toolbox crypto</title> -<indexterm><primary>toolbox crypto</primary></indexterm> -<simpara> - -There will be some great features for crypto systems -in the future. - -</simpara> -</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_graph3d.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_graph3d.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_graph3d.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_graph3d"> +<title>Introduction to the toolbox graph3d</title> +<indexterm><primary>toolbox graph3d</primary></indexterm> +<simpara> + +There will be some great features for 3 dimensional graphical manipulations +in the future. + +</simpara> +</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_graphics.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_graphics.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_graphics.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_graphics"> +<title>Introduction to the toolbox graphics</title> +<indexterm><primary>toolbox graphics</primary></indexterm> +<simpara> + +There will be some great features for graphics manipulations +in the future. + +</simpara> +</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_matrix.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_matrix.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_matrix.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_matrix"> +<title>Introduction to the toolbox matrix</title> +<indexterm><primary>toolbox matrix</primary></indexterm> +<simpara> + +There will be some great features for matrix manipulations +in the future. + +</simpara> +</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_system.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_system.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_system.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_system"> +<title>Introduction to the toolbox system</title> +<indexterm><primary>toolbox system</primary></indexterm> +<simpara> + +There will be some great features for this toolbox +in the future. + +</simpara> +</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_test.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_test.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_test.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_test"> +<title>Introduction to the toolbox test</title> +<indexterm><primary>toolbox test</primary></indexterm> +<simpara> + +This toolbox is used to perform some internal JMathLib tests in +order to check for bugs. + +</simpara> +</sect1> \ No newline at end of file Added: JMathLib/trunk/doc/src/toolbox_introduction_ui.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_ui.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_ui.xml 2009-02-26 16:44:03 UTC (rev 890) @@ -0,0 +1,10 @@ +<sect1 id="toolbox_introduction_ui"> +<title>Introduction to the toolbox ui</title> +<indexterm><primary>toolbox ui</primary></indexterm> +<simpara> + +There will be some great features for this toolbox +in the future. + +</simpara> +</sect1> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-02-26 12:55:24
|
Revision: 889 http://mathlib.svn.sourceforge.net/mathlib/?rev=889&view=rev Author: st_mueller Date: 2009-02-26 12:08:41 +0000 (Thu, 26 Feb 2009) Log Message: ----------- wrong name for toolbox Modified Paths: -------------- JMathLib/trunk/src/jmathlib/toolbox/quaternion/qtransvmat.m Modified: JMathLib/trunk/src/jmathlib/toolbox/quaternion/qtransvmat.m =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/quaternion/qtransvmat.m 2009-02-26 12:06:49 UTC (rev 888) +++ JMathLib/trunk/src/jmathlib/toolbox/quaternion/qtransvmat.m 2009-02-26 12:08:41 UTC (rev 889) @@ -50,7 +50,7 @@ /* @GROUP -quarternion +quaternion @SYNTAX qtransvmat([a,b,c,d]) @DOC This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-02-26 12:55:20
|
Revision: 888 http://mathlib.svn.sourceforge.net/mathlib/?rev=888&view=rev Author: st_mueller Date: 2009-02-26 12:06:49 +0000 (Thu, 26 Feb 2009) Log Message: ----------- moved docs from internal to general Modified Paths: -------------- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/minusminus.int JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/plusplus.int Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/minusminus.int =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/minusminus.int 2009-02-26 12:02:35 UTC (rev 887) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/minusminus.int 2009-02-26 12:06:49 UTC (rev 888) @@ -1,6 +1,6 @@ /* @GROUP -internal +general @SYNTAX -- @DOC Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/plusplus.int =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/plusplus.int 2009-02-26 12:02:35 UTC (rev 887) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/internal/plusplus.int 2009-02-26 12:06:49 UTC (rev 888) @@ -1,6 +1,6 @@ /* @GROUP -internal +general @SYNTAX ++ @DOC This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-02-26 12:55:14
|
Revision: 887 http://mathlib.svn.sourceforge.net/mathlib/?rev=887&view=rev Author: st_mueller Date: 2009-02-26 12:02:35 +0000 (Thu, 26 Feb 2009) Log Message: ----------- introduction into deprecated functions Added Paths: ----------- JMathLib/trunk/doc/src/toolbox_introduction_deprecated.xml Added: JMathLib/trunk/doc/src/toolbox_introduction_deprecated.xml =================================================================== --- JMathLib/trunk/doc/src/toolbox_introduction_deprecated.xml (rev 0) +++ JMathLib/trunk/doc/src/toolbox_introduction_deprecated.xml 2009-02-26 12:02:35 UTC (rev 887) @@ -0,0 +1,9 @@ +<sect1 id="toolbox_introduction_deprecated"> +<title>Introduction to the toolbox deprecated</title> +<indexterm><primary>toolbox deprecated</primary></indexterm> +<simpara> + +There are some deprecated functions in JMathLib. + +</simpara> +</sect1> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <st_...@us...> - 2009-02-26 10:14:16
|
Revision: 886 http://mathlib.svn.sourceforge.net/mathlib/?rev=886&view=rev Author: st_mueller Date: 2009-02-26 10:14:14 +0000 (Thu, 26 Feb 2009) Log Message: ----------- added better comments Modified Paths: -------------- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/version_info.txt Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/version_info.txt =================================================================== --- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/version_info.txt 2009-02-26 10:12:16 UTC (rev 885) +++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/version_info.txt 2009-02-26 10:14:14 UTC (rev 886) @@ -3,10 +3,10 @@ # # (c) 2008 Stefan Mueller (st...@he...) # -jmathlib.toolboxes.toolbox_skeleton.name="skeleton" -jmathlib.toolboxes.toolbox_skeleton.version=0.0.1 -jmathlib.toolboxes.toolbox_skeleton.release=major 0.0.1 -jmathlib.toolboxes.toolbox_skeleton.description=splines -jmathlib.toolboxes.toolbox_skeleton.date=2008/01/01 -jmathlib.toolboxes.toolbox_skeleton.copyright=(c) 2008 Stefan Mueller (st...@he...) -jmathlib.toolboxes.toolbox_skeleton.message=This is a skeleton for toolbox information +jmathlib.toolboxes.jmathlib.name="jmathlib" +jmathlib.toolboxes.jmathlib.version=0.1.0 +jmathlib.toolboxes.jmathlib.release=major 0.1.0 +jmathlib.toolboxes.jmathlib.description=jmathlib's main toolbox +jmathlib.toolboxes.jmathlib.date=2008/01/01 +jmathlib.toolboxes.jmathlib.copyright=(c) 2009 Stefan Mueller (st...@he...) +jmathlib.toolboxes.jmathlib.message=This is a main toolbox for jmathlib This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |