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