App
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment Class Reference

Fragment pro PopUp představující nastavení úprav křivek. More...

Inheritance diagram for mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment:
mhr.app.fragments.toolbox.CancellableToolPopUpFragment mhr.appandroid.views.CurvesView.CurvesViewChangeListener

Public Member Functions

 CurvesPopUpFragment ()
 
void onCurvesChange (CurvesView v)
 
void onCurvesChangeStart (CurvesView v)
 
void onCurvesChangeStop (CurvesView v)
 
void onCheckedChanged (RadioGroup group, int checkedId)
 
void onClick (View v)
 
void onCheckedChanged (CompoundButton buttonView, boolean isChecked)
 
void onAttach (Activity activity)
 
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 
void onResume ()
 
void onPause ()
 

Protected Member Functions

void onInitView ()
 Voláno po načtení layoutu, odvozená třída zde nastavuje posluchače událostí atd.
 
Tool getTool ()
 Odvozená třída musí vrátit nástroj, který představuje.
 
CancelableToolActionData getUpdateToolData ()
 Odvozená třída musí vrátit data, pro aktualizaci náhledu nástroje.
 
int getLayoutId ()
 Odvozená třída musí vrátit id svého layoutu pro inicializaci UI.
 
void onCancel ()
 Voláno, pokud je nástroj zrušen, odvozená třída provede potřebné operaci.
 
View initView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 Provede inicializaci view.
 

Protected Attributes

CurvesView MV
 
CurvesView RV
 
CurvesView GV
 
CurvesView BV
 
CurvesView AV
 
RadioGroup ChRG
 
CurvesView selected
 
float[][] defVals
 
View root
 
AppMainActivity activity
 
boolean firstCreated = true
 
Button applyBtn
 
Button previewBtn
 
Button cancelBtn
 
ToggleButton livePreviewTBtn
 
boolean livePreviewOn = false
 

Detailed Description

Fragment pro PopUp představující nastavení úprav křivek.

Definition at line 25 of file CurvesPopUpFragment.java.

Constructor & Destructor Documentation

mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.CurvesPopUpFragment ( )
inline

Definition at line 75 of file CurvesPopUpFragment.java.

{
}

Member Function Documentation

int mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.getLayoutId ( )
inlineprotectedvirtual

Odvozená třída musí vrátit id svého layoutu pro inicializaci UI.

Returns

Implements mhr.app.fragments.toolbox.CancellableToolPopUpFragment.

Definition at line 94 of file CurvesPopUpFragment.java.

{
return R.layout.fragment_point_operation_tool_curves_settings;
}
Tool mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.getTool ( )
inlineprotectedvirtual

Odvozená třída musí vrátit nástroj, který představuje.

Returns

Implements mhr.app.fragments.toolbox.CancellableToolPopUpFragment.

Definition at line 82 of file CurvesPopUpFragment.java.

{
return new CurvesLUTCancelableTool();
}
CancelableToolActionData mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.getUpdateToolData ( )
inlineprotectedvirtual

Odvozená třída musí vrátit data, pro aktualizaci náhledu nástroje.

Returns

Implements mhr.app.fragments.toolbox.CancellableToolPopUpFragment.

Definition at line 88 of file CurvesPopUpFragment.java.

{
return new CurvesLUTCancelableToolActionData(Action.UPDATE_PREVIEW, MV.getPoints(), RV.getPoints(), GV.getPoints(), BV.getPoints(), AV.getPoints());
}
View mhr.app.fragments.toolbox.CancellableToolPopUpFragment.initView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inlineprotectedinherited

Provede inicializaci view.

Parameters
inflater
container
savedInstanceState
Returns

Definition at line 56 of file CancellableToolPopUpFragment.java.

{
root = inflater.inflate(getLayoutId(), container, false);
applyBtn = (Button) root.findViewById(R.id.PointOperationToolApplyBtn);
previewBtn = (Button) root.findViewById(R.id.PointOperationToolPreviewBtn);
cancelBtn = (Button) root.findViewById(R.id.PointOperationToolCancelBtn);
livePreviewTBtn = (ToggleButton) root.findViewById(R.id.PointOperationToolLivePreviewTBtn);
applyBtn.setOnClickListener(this);
previewBtn.setOnClickListener(this);
cancelBtn.setOnClickListener(this);
livePreviewTBtn.setOnCheckedChangeListener(this);
firstCreated = false;
return root;
}
void mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onAttach ( Activity  activity)
inlineinherited

Definition at line 145 of file CancellableToolPopUpFragment.java.

{
super.onAttach(activity);
/*
* called once the fragment is associated with its activity.
*/
this.activity = (AppMainActivity) activity;
}
void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onCancel ( )
inlineprotectedvirtual

Voláno, pokud je nástroj zrušen, odvozená třída provede potřebné operaci.

Implements mhr.app.fragments.toolbox.CancellableToolPopUpFragment.

Definition at line 99 of file CurvesPopUpFragment.java.

void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onCheckedChanged ( RadioGroup  group,
int  checkedId 
)
inline

Definition at line 126 of file CurvesPopUpFragment.java.

{
selected.setVisibility(View.GONE);
switch (checkedId) {
case R.id.MChannelRB:
break;
case R.id.RChannelRB:
break;
case R.id.GChannelRB:
break;
case R.id.BChannelRB:
break;
case R.id.AChannelRB:
break;
}
selected.setVisibility(View.VISIBLE);
}
void mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onCheckedChanged ( CompoundButton  buttonView,
boolean  isChecked 
)
inlineinherited

Definition at line 133 of file CancellableToolPopUpFragment.java.

{
if (buttonView == livePreviewTBtn) {
livePreviewOn = isChecked;
}
activity.addCommand(new CancelableToolUpdateCommand(getUpdateToolData()));
}
}
void mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onClick ( View  v)
inlineinherited

Definition at line 112 of file CancellableToolPopUpFragment.java.

{
int id = v.getId();
switch (id) {
//(biasSeekBar.getProgress() - 100) / 100.0)
case R.id.PointOperationToolApplyBtn:
activity.addCommand(new CancelableToolUpdateCommand(getUpdateToolData()));
activity.addCommand(new CancelableToolCommitCommand(new CancelableToolActionData(Action.COMMIT_PREVIEW)));
break;
case R.id.PointOperationToolPreviewBtn:
activity.addCommand(new CancelableToolUpdateCommand(getUpdateToolData()));
break;
case R.id.PointOperationToolCancelBtn:
activity.addCommand(new CancelableToolCommitCommand(new CancelableToolActionData(Action.CANCEL_PREVIEW)));
break;
}
}
View mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inlineinherited

Definition at line 165 of file CancellableToolPopUpFragment.java.

{
/*
* creates and returns the view hierarchy associated with the fragment.
*
* 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
* 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.
*
* Zde začíná životní cyklus při návratu z backstacku
*/
if (firstCreated) {
firstCreated = false;
return initView(inflater, container, savedInstanceState);
} else {
return root;
}
}
void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onCurvesChange ( CurvesView  v)
inline

Implements mhr.appandroid.views.CurvesView.CurvesViewChangeListener.

Definition at line 113 of file CurvesPopUpFragment.java.

{
activity.addCommand(new CancelableToolUpdateCommand(getUpdateToolData()));
}
}
void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onCurvesChangeStart ( CurvesView  v)
inline
void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onCurvesChangeStop ( CurvesView  v)
inline
void mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.onInitView ( )
inlineprotectedvirtual

Voláno po načtení layoutu, odvozená třída zde nastavuje posluchače událostí atd.

Implements mhr.app.fragments.toolbox.CancellableToolPopUpFragment.

Definition at line 53 of file CurvesPopUpFragment.java.

{
ChRG = (RadioGroup) root.findViewById(R.id.ChannelRG);
ChRG.setOnCheckedChangeListener(this);
MV = (CurvesView) root.findViewById(R.id.CurvesMaster);
RV = (CurvesView) root.findViewById(R.id.CurvesRed);
GV = (CurvesView) root.findViewById(R.id.CurvesGreen);
BV = (CurvesView) root.findViewById(R.id.CurvesBlue);
AV = (CurvesView) root.findViewById(R.id.CurvesAplha);
}
void mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onPause ( )
inlineinherited

Definition at line 216 of file CancellableToolPopUpFragment.java.

{
super.onPause();
/*
* 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.
*
* 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).
* 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).
*/
}
void mhr.app.fragments.toolbox.CancellableToolPopUpFragment.onResume ( )
inlineinherited

Definition at line 207 of file CancellableToolPopUpFragment.java.

{
super.onResume();
/*
* makes the fragment interacting with the user (based on its containing activity being resumed).
*/
activity.addCommand(new SelectToolCommand(getTool()));
}

Member Data Documentation

AppMainActivity mhr.app.fragments.toolbox.CancellableToolPopUpFragment.activity
protectedinherited

Definition at line 35 of file CancellableToolPopUpFragment.java.

Button mhr.app.fragments.toolbox.CancellableToolPopUpFragment.applyBtn
protectedinherited

Definition at line 38 of file CancellableToolPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.AV
protected

Definition at line 38 of file CurvesPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.BV
protected

Definition at line 37 of file CurvesPopUpFragment.java.

Button mhr.app.fragments.toolbox.CancellableToolPopUpFragment.cancelBtn
protectedinherited

Definition at line 40 of file CancellableToolPopUpFragment.java.

RadioGroup mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.ChRG
protected

Definition at line 39 of file CurvesPopUpFragment.java.

float [][] mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.defVals
protected
Initial value:
= new float[][] {
{0.0f, 1.0f},
{0.0f, 1.0f}
}

Definition at line 43 of file CurvesPopUpFragment.java.

boolean mhr.app.fragments.toolbox.CancellableToolPopUpFragment.firstCreated = true
protectedinherited

Definition at line 36 of file CancellableToolPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.GV
protected

Definition at line 36 of file CurvesPopUpFragment.java.

boolean mhr.app.fragments.toolbox.CancellableToolPopUpFragment.livePreviewOn = false
protectedinherited

Definition at line 43 of file CancellableToolPopUpFragment.java.

ToggleButton mhr.app.fragments.toolbox.CancellableToolPopUpFragment.livePreviewTBtn
protectedinherited

Definition at line 41 of file CancellableToolPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.MV
protected

Definition at line 34 of file CurvesPopUpFragment.java.

Button mhr.app.fragments.toolbox.CancellableToolPopUpFragment.previewBtn
protectedinherited

Definition at line 39 of file CancellableToolPopUpFragment.java.

View mhr.app.fragments.toolbox.CancellableToolPopUpFragment.root
protectedinherited

Definition at line 34 of file CancellableToolPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.RV
protected

Definition at line 35 of file CurvesPopUpFragment.java.

CurvesView mhr.app.fragments.toolbox.pointops.CurvesPopUpFragment.selected
protected

Definition at line 41 of file CurvesPopUpFragment.java.


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