App
BrightnessLayerSettingsFragment.java
Go to the documentation of this file.
1 package mhr.app.fragments.layers.lut;
2 
3 import mhr.app.AppMainActivity;
4 import mhr.app.R;
5 import mhr.app.fragments.layers.LayerSettingsFragment;
6 import mhr.appandroid.adapters.APDImagePresentation;
7 import mhr.appandroid.views.LabelledSeekBar;
8 import mhr.appandroid.views.colorpicker.ColorPickerView;
9 
10 import mhr.appcore.blending.BlendMode;
11 
12 import mhr.appcore.image.layers.ColorLayerSpecificPresentation;
13 import mhr.appcore.image.layers.LayerSpecificPresentation;
14 import mhr.appcore.image.layers.RasterLayerSpecificPresentation;
15 import mhr.appcore.image.layers.lut.BrightnessLUTLayerSpecificPresentation;
16 
17 import android.app.Activity;
18 import android.app.Fragment;
19 import android.os.Bundle;
20 import android.view.LayoutInflater;
21 import android.view.View;
22 import android.view.View.OnClickListener;
23 import android.view.ViewGroup;
24 import android.widget.ArrayAdapter;
25 import android.widget.Button;
26 import android.widget.SeekBar;
27 import android.widget.SeekBar.OnSeekBarChangeListener;
28 import android.widget.Spinner;
29 import android.widget.TextView;
30 import android.widget.Toast;
31 
32 
36 public class BrightnessLayerSettingsFragment extends LayerSettingsFragment implements OnClickListener {
37 
38 
39  //===== INTERFACES, CLASSES, ENUMS ==========================================================================================================//
40  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
41  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
42 
43  //===== FIELDS ==============================================================================================================================//
44  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
46 
47  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
48 
49  //===== CONSTRUCTORS, DESTRUCTORS, RELATED METHODS ==========================================================================================//
50  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
51  @Override
52  protected View initView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
53  root = inflater.inflate(R.layout.fragment_brightness_layer_settings, container, false);
54  brightnessValueLSB = (LabelledSeekBar) root.findViewById(R.id.LayerBrightnessValueLSB);
55  return root;
56  }
57  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
58 
59  //===== METHODS =============================================================================================================================//
60  //----- NON-PUBLIC --------------------------------------------------------------------------------------------------------------------------//
61  @Override
65  }
66  @Override
70  }
71 
72  //----- PUBLIC ------------------------------------------------------------------------------------------------------------------------------//
73 
74  //===== CALLBACKS ===========================================================================================================================//
75  @Override
76  public void onClick(View v) {
77  switch (v.getId()) {
78  default:
79  super.onClick(v);
80  break;
81  }
82  }
83 
84 
85  //----- LIFE CYCLE --------------------------------------------------------------------------------------------------------------------------//
86 
87  // @Override
88  // public void onAttach(Activity activity) {
89  // super.onAttach(activity);
90  // /*
91  // * called once the fragment is associated with its activity.
92  // */
93  // }
94 
95  // @Override
96  // public void onCreate(Bundle savedInstanceState) {
97  // super.onCreate(savedInstanceState);
98  // /*
99  // * called to do initial creation of the fragment.
100  // *
101  // * The system calls this when creating the fragment. Within your implementation, you should initialize essential components of the fragment that you want
102  // * to retain when the fragment is paused or stopped, then resumed.
103  // */
104  // }
105 
106  // @Override
107  // public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
108  // return super.onCreateView(inflater, container, savedInstanceState);
109  // /*
110  // * creates and returns the view hierarchy associated with the fragment.
111  // *
112  // * The system calls this when it's time for the fragment to draw its user interface for the first time. To draw a UI for your fragment, you must return a
113  // * View from this method that is the root of your fragment's layout. You can return null if the fragment does not provide a UI.
114  // *
115  // * Zde začíná životní cyklus při návratu z backstacku
116  // */
117  // }
118 
119  // @Override
120  // public void onActivityCreated(Bundle savedInstanceState) {
121  // super.onActivityCreated(savedInstanceState);
122  // /*
123  // * tells the fragment that its activity has completed its own Activity.onCreate().
124  // */
125  // }
126 
127  // @Override // Vyžaduje API 17
128  // public void onViewStateRestored(Bundle savedInstanceState) {
129  // super.onViewStateRestored(savedInstanceState);
130  // /*
131  // * tells the fragment that all of the saved state of its view hierarchy has been restored.
132  // */
133  // }
134 
135  // @Override
136  // public void onStart() {
137  // super.onStart();
138  // /*
139  // * makes the fragment visible to the user (based on its containing activity being started).
140  // */
141  // }
142  //
143  // @Override
144  // public void onResume() {
145  // super.onResume();
146  // /*
147  // * makes the fragment interacting with the user (based on its containing activity being resumed).
148  // */
149  // }
150 
151  // @Override
152  // public void onPause() {
153  // super.onPause();
154  // /*
155  // * fragment is no longer interacting with the user either because its activity is being paused or a fragment operation is modifying it in the activity.
156  // *
157  // * The system calls this method as the first indication that the user is leaving the fragment (though it does not always mean the fragment is being destroyed).
158  // * This is usually where you should commit any changes that should be persisted beyond the current user session (because the user might not come back).
159  // */
160  // }
161 
162  // @Override
163  // public void onStop() {
164  // super.onStop();
165  // /*
166  // * fragment is no longer visible to the user either because its activity is being stopped or a fragment operation is modifying it in the activity.
167  // */
168  // }
169 
170  // @Override
171  // public void onDestroyView() {
172  // super.onDestroyView();
173  // /*
174  // * allows the fragment to clean up resources associated with its View.
175  // *
176  // * Zde končí životní cyklus při umístění do backstacku
177  // */
178  // }
179 
180  // @Override
181  // public void onDestroy() {
182  // super.onDestroy();
183  // /*
184  // * called to do final cleanup of the fragment's state.
185  // */
186  // }
187 
188  // @Override
189  // public void onDetach() {
190  // super.onDetach();
191  // /*
192  // * called immediately prior to the fragment no longer being associated with its activity.
193  // */
194  // }
195 }