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

Slouží k nastavení nástroje geometrických transformací More...

Inheritance diagram for mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment:

Public Member Functions

void onClick (View v)
 
void onAttach (Activity activity)
 
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 
void onResume ()
 
void onPause ()
 

Protected Member Functions

View initView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 Provede inicializaci view.
 

Protected Attributes

View root
 
AppMainActivity activity
 
boolean firstCreated = true
 
DisplayerTouchNavigator navig = null
 

Detailed Description

Slouží k nastavení nástroje geometrických transformací

Definition at line 21 of file GeometricTransformationToolSettingsFragment.java.

Member Function Documentation

View mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.initView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inlineprotected

Provede inicializaci view.

Parameters
inflater
container
savedInstanceState
Returns

Definition at line 50 of file GeometricTransformationToolSettingsFragment.java.

{
root = inflater.inflate(R.layout.fragment_geometric_transformation_tool_settings, container, false);
root.findViewById(R.id.ProjectiveTransformBtn).setOnClickListener(this);
root.findViewById(R.id.CropImageBtn).setOnClickListener(this);
root.findViewById(R.id.ResizeImageBtn).setOnClickListener(this);
// root.findViewById(R.id.PreviewProjectiveTransformBtn).setOnClickListener(this);
// root.findViewById(R.id.ApplyProjectiveTransformBtn).setOnClickListener(this);
// root.findViewById(R.id.CancelProjectiveTransformBtn).setOnClickListener(this);
firstCreated = false;
return root;
}
void mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.onAttach ( Activity  activity)
inline

Definition at line 94 of file GeometricTransformationToolSettingsFragment.java.

{
super.onAttach(activity);
/*
* called once the fragment is associated with its activity.
*/
this.activity = (AppMainActivity) activity;
if (navig == null) { // instance bude cachovana
navig = new DisplayerTouchNavigator(this.activity.getBitmapDisplayer(), this.activity);
}
}
void mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.onClick ( View  v)
inline

Definition at line 74 of file GeometricTransformationToolSettingsFragment.java.

{
int id = v.getId();
switch (id) {
case R.id.ProjectiveTransformBtn:
activity.showDialog(new ProjectiveTransformPopUpFragment());
break;
case R.id.CropImageBtn:
activity.showDialog(new CropPopUpFragment());
break;
case R.id.ResizeImageBtn:
activity.showDialog(new ResizePopUpFragment());
break;
default:
break;
}
}
View mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inline

Definition at line 118 of file GeometricTransformationToolSettingsFragment.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.GeometricTransformationToolSettingsFragment.onPause ( )
inline

Definition at line 182 of file GeometricTransformationToolSettingsFragment.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).
*/
// guiHolder.removeAllViews();
// guiHolder.setVisibility(View.GONE);
}
void mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.onResume ( )
inline

Definition at line 160 of file GeometricTransformationToolSettingsFragment.java.

{
super.onResume();
/*
* makes the fragment interacting with the user (based on its containing activity being resumed).
*/
//
// activity.setCanvasOnTouchListener(null);
// guiHolder = activity.getGuiOverCanvas();
//
// guiHolder.removeAllViews();
//
// p = new ProjectiveTransformPicker(activity);
// p.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
//
// guiHolder.addView(p);
// guiHolder.setVisibility(View.VISIBLE);
}

Member Data Documentation

AppMainActivity mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.activity
protected
boolean mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.firstCreated = true
protected
DisplayerTouchNavigator mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.navig = null
protected
View mhr.app.fragments.toolbox.GeometricTransformationToolSettingsFragment.root
protected

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