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

PopUp fragment pro vytváření souboru. More...

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

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
 
LabelledSeekBar nWidth
 
LabelledSeekBar nHeight
 

Detailed Description

PopUp fragment pro vytváření souboru.

Definition at line 29 of file CreateImagePopUpFragment.java.

Member Function Documentation

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

Provede inicializaci view.

Parameters
inflater
container
savedInstanceState
Returns

Definition at line 55 of file CreateImagePopUpFragment.java.

{
root = inflater.inflate(R.layout.fragment_new_image_popup, container, false);
nWidth = (LabelledSeekBar) root.findViewById(R.id.WidthValueLSB);
nHeight = (LabelledSeekBar) root.findViewById(R.id.HeightValueLSB);
root.findViewById(R.id.CreateImageBtn).setOnClickListener(this);
root.findViewById(R.id.CancelBtn).setOnClickListener(this);
firstCreated = false;
return root;
}
void mhr.app.fragments.toolbox.CreateImagePopUpFragment.onAttach ( Activity  activity)
inline

Definition at line 98 of file CreateImagePopUpFragment.java.

{
super.onAttach(activity);
/*
* called once the fragment is associated with its activity.
*/
this.activity = (AppMainActivity) activity;
}
void mhr.app.fragments.toolbox.CreateImagePopUpFragment.onClick ( View  v)
inline

Definition at line 77 of file CreateImagePopUpFragment.java.

{
int id = v.getId();
switch (id) {
case R.id.CreateImageBtn:
Bitmap tmp = Bitmap.createBitmap((int) nWidth.getProgress(), (int)nHeight.getProgress(), Config.ARGB_8888);
Canvas c = new Canvas(tmp);
c.drawColor(0xFFFFFFFF);
activity.getAppCore().openImage(new APDBitmap(tmp));
break;
case R.id.CancelBtn:
break;
}
}
View mhr.app.fragments.toolbox.CreateImagePopUpFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
inline

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

Definition at line 168 of file CreateImagePopUpFragment.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.CreateImagePopUpFragment.onResume ( )
inline

Definition at line 160 of file CreateImagePopUpFragment.java.

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

Member Data Documentation

AppMainActivity mhr.app.fragments.toolbox.CreateImagePopUpFragment.activity
protected

Definition at line 38 of file CreateImagePopUpFragment.java.

boolean mhr.app.fragments.toolbox.CreateImagePopUpFragment.firstCreated = true
protected

Definition at line 39 of file CreateImagePopUpFragment.java.

LabelledSeekBar mhr.app.fragments.toolbox.CreateImagePopUpFragment.nHeight
protected

Definition at line 42 of file CreateImagePopUpFragment.java.

LabelledSeekBar mhr.app.fragments.toolbox.CreateImagePopUpFragment.nWidth
protected

Definition at line 41 of file CreateImagePopUpFragment.java.

View mhr.app.fragments.toolbox.CreateImagePopUpFragment.root
protected

Definition at line 37 of file CreateImagePopUpFragment.java.


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