App
GammaPopUpFragment.java
Go to the documentation of this file.
1 package mhr.app.fragments.toolbox.pointops;
2 
3 import java.text.DecimalFormat;
4 
5 import mhr.app.R;
6 import mhr.app.fragments.toolbox.CancellableToolPopUpFragment;
7 import mhr.appandroid.views.LabelledSeekBar;
8 import mhr.appandroid.views.LabelledSeekBar.LabelledSBChangeListener;
9 import mhr.appcore.commands.toolcommands.CancelableToolUpdateCommand;
10 import mhr.appcore.tools.Tool;
11 import mhr.appcore.tools.actiondata.BrightnessLUTCancelableToolActionData;
12 import mhr.appcore.tools.actiondata.CancelableToolActionData;
13 import mhr.appcore.tools.actiondata.CancelableToolActionData.Action;
14 import mhr.appcore.tools.actiondata.GammaLUTCancelableToolActionData;
15 import mhr.appcore.tools.cancelable.lut.GammaLUTCancelableTool;
16 import android.widget.SeekBar;
17 import android.widget.SeekBar.OnSeekBarChangeListener;
18 import android.widget.TextView;
19 
24 
25 
26  //===== INTERFACES, CLASSES, ENUMS ==========================================================================================================//
27  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
28  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
29 
30  //===== FIELDS ==============================================================================================================================//
31  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
32  protected LabelledSeekBar biasValueLSB = null;
33  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
34 
35  //===== CONSTRUCTORS, DESTRUCTORS, RELATED METHODS ==========================================================================================//
36  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
37  @Override
38  protected void onInitView() {
39  biasValueLSB = (LabelledSeekBar) root.findViewById(R.id.GammaValueLSB);
41  }
42  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
43  public GammaPopUpFragment() {
44 
45  }
46 
47  //===== METHODS =============================================================================================================================//
48  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
49  @Override
50  protected Tool getTool() {
51 
52  return new GammaLUTCancelableTool();
53  }
54 
55  @Override
57 
59  }
60 
61 
62  @Override
63  protected int getLayoutId() {
64  return R.layout.fragment_point_operation_tool_gamma_settings;
65  }
66 
67  @Override
68  protected void onCancel() {
70  }
71 
72  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
73 
74  //===== CALLBACKS ===========================================================================================================================//
75 
76  @Override
77  public void onValueChanged(LabelledSeekBar sb, float value, boolean fromUser) {
78  if (livePreviewOn) {
80  }
81  }
82  @Override
84  }
85  @Override
87  }
88 
89 
90 
91 }