|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.gotdns.jimula.EatHealthy.ServingPanel
ServingPanel is a module that can calculate food serving.
It has a method addPanel()
which return this panel to MainFrame.
EatHealthy
A simple personal nutrient need and food serving calculator
Copyright (c) 2003
MainFrame
Field Summary | |
float |
actual_calories
Calories contents of actual serving |
float |
actual_carb
Carbohydrate contents of actual serving |
float |
actual_fat
Fat contents of actual serving |
float |
actual_protein
Protein contents of actual serving |
Constructor Summary | |
ServingPanel(MainFrame frame)
Construsts a new ServingPanel instance. |
|
ServingPanel(MainFrame frame,
float protein,
float fat,
float carb,
float calories)
Construsts a new ServingPanel instance. |
Method Summary | |
javax.swing.JPanel |
addPanel()
Which is evoked by MainFrame |
void |
show_serving()
Calculate and show food serving depend on personal nutrient need. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public float actual_protein
public float actual_fat
public float actual_carb
public float actual_calories
Constructor Detail |
public ServingPanel(MainFrame frame)
frame
- parent frame(MainFrame)MainFrame
public ServingPanel(MainFrame frame, float protein, float fat, float carb, float calories)
frame
- parent frame(MainFrame)protein
- personal nutrient need of protein contentsfat
- personal nutrient need of fat contentscarb
- personal nutrient need of carbohydrate contentscalories
- personal nutrient need of calories contentsMainFrame
,
NutrientPanel
Method Detail |
public void show_serving()
CalculateServing
public javax.swing.JPanel addPanel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |