Logo Search packages:      
Sourcecode: jfractionlab version File versions  Download package

Public Member Functions | Public Attributes | Protected Member Functions | Package Attributes | Static Package Attributes | Private Member Functions | Private Attributes

jfractionlab::exerciseDialogs::PlusAndMinus Class Reference

Inheritance diagram for jfractionlab::exerciseDialogs::PlusAndMinus:
Inheritance graph
Collaboration diagram for jfractionlab::exerciseDialogs::PlusAndMinus:
Collaboration graph

List of all members.

Public Member Functions

void actionPerformed (ActionEvent e)
void addTextField (MyJTextField tf)
void clearTextFields ()
void close_it ()
void keyPressed (KeyEvent event)
void keyReleased (KeyEvent event)
void keyTyped (KeyEvent event)
 PlusAndMinus (JFractionLab owner, String operator, int lx, int ly, int sx, int sy) throws HeadlessException
Integer readInputNumber (MyJTextField jtf)
void sop (String str)

Public Attributes

boolean bl_WannaFindBestCommonDenominator_AnswerIsYes = false
boolean bl_wannaReduceQuestion_AnswerIsYes = false
boolean bl_with_reducing = false
JLabel lb_info = new JLabel("", JLabel.CENTER)
JRadioButtonMenuItem rb_reducing = new JRadioButtonMenuItem()

Protected Member Functions

void makeProblem ()
void nextProblem ()

Package Attributes

ArrayList< MyJTextFieldal_textfields = new ArrayList<MyJTextField>()
boolean bl_randomProblem = true
JButton btn_continue
JButton btn_end
ButtonGroup btngrp_BigSmallNb = new ButtonGroup()
ButtonGroup btngrp_reducing = new ButtonGroup()
ButtonGroup btngrp_typeoftask = new ButtonGroup()
ButtonGroup btngrp_visibility = new ButtonGroup()
Container content
JMenuBar jmb = new JMenuBar()
JMenu jmHelp = new JMenu("")
JMenuItem jmiCreateWorkSheet = new JMenuItem("")
JMenuItem jmiHelp = new JMenuItem("")
JMenu jmOptions = new JMenu("")
JMenu jmWorkSheet = new JMenu("")
JFractionLab owner
PointDisplay pdsp = new PointDisplay()
int points = 0
JRadioButtonMenuItem rb_bigNb = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_custom = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_invisible = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_no_reducing = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_random = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_smallNb = new JRadioButtonMenuItem()
JRadioButtonMenuItem rb_visible = new JRadioButtonMenuItem()

Static Package Attributes

static final long serialVersionUID = JFractionLab.serialVersionUID

Private Member Functions

boolean checkCommonDenominator (int hn)
void continueWithThisCommonDenominator (int nb)
void endresult_BadReduction (int endresult_denominator)
void endresult_GoodReduction_RightNumerator (int endresult_denominator)
void endresult_GoodReduction_WrongNumerator (int endresult_denominator)
boolean endresult_Numerator_isOK (String str, int endresult_denominator, int ggt)
void endresult_OptimalReduction_RightNumerator (int endresult_denominator)
void endresult_OptimalReduction_WrongNumerator (int endresult_denominator)
void reduce_this_problem (int prn)
void tf_provisionalresult_numerator_FocusLost ()

Private Attributes

int calculation_numerator1
int calculation_numerator2
FractionAsCircle calculation_pizza_1 = new FractionAsCircle()
FractionAsCircle calculation_pizza_2 = new FractionAsCircle()
int common_denominator
int denominator1
int denominator2
int endresult_numerator
FractionAsCircle endresult_pizza_1 = new FractionAsCircle()
FractionAsCircle endresult_pizza_2 = new FractionAsCircle()
FractionMaker fraction
JLabel lb_equalsign_endresult = new JLabel("=", JLabel.CENTER)
JLabel lb_number_one = new JLabel("", JLabel.CENTER)
int numerator1
int numerator2
String operator
FractionAsCircle pizza_1 = new FractionAsCircle()
FractionAsCircle pizza_2 = new FractionAsCircle()
int provisionalresult_numerator
FractionAsCircle provisionalresult_pizza_1 = new FractionAsCircle()
FractionAsCircle provisionalresult_pizza_2 = new FractionAsCircle()
MyJTextField tf_calculation_denominator1 = new MyJTextField(3)
MyJTextField tf_calculation_denominator2 = new MyJTextField(3)
MyJTextField tf_calculation_numerator1 = new MyJTextField(3)
MyJTextField tf_calculation_numerator2 = new MyJTextField(3)
MyJTextField tf_denominator1 = new MyJTextField(3)
MyJTextField tf_denominator2 = new MyJTextField(3)
MyJTextField tf_endresult_denominator = new MyJTextField(3)
MyJTextField tf_endresult_numerator = new MyJTextField(3)
MyJTextField tf_numerator1 = new MyJTextField(3)
MyJTextField tf_numerator2 = new MyJTextField(3)
MyJTextField tf_provisionalresult_denominator = new MyJTextField(3)
MyJTextField tf_provisionalresult_numerator = new MyJTextField(3)

Detailed Description

Definition at line 44 of file PlusAndMinus.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index