Back to project page Aviary-Android-SDK.
The source code is released under:
AVIARY API TERMS OF USE Full Legal Agreement The following terms and conditions and the terms and conditions at http://www.aviary.com/terms (collectively, the ?Terms??) govern your use of any and ...
If you think the Android project Aviary-Android-SDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.aviary.android.feather.effects; //from ww w .ja v a 2 s .c o m import it.sephiroth.android.library.imagezoom.ImageViewTouch; import android.view.LayoutInflater; import android.view.View; import com.aviary.android.feather.effects.AbstractPanel.ContentPanel; import com.aviary.android.feather.library.content.ToolEntry; import com.aviary.android.feather.library.services.IAviaryController; abstract class AbstractContentPanel extends AbstractOptionPanel implements ContentPanel { protected OnContentReadyListener mContentReadyListener; protected View mDrawingPanel; protected ImageViewTouch mImageView; public AbstractContentPanel ( IAviaryController context, ToolEntry entry ) { super( context, entry ); } @Override public final void setOnReadyListener( OnContentReadyListener listener ) { mContentReadyListener = listener; } @Override public final View getContentView( LayoutInflater inflater ) { mDrawingPanel = generateContentView( inflater ); return mDrawingPanel; } @Override public final View getContentView() { return mDrawingPanel; } @Override protected void onDispose() { mContentReadyListener = null; super.onDispose(); } @Override public void setEnabled( boolean value ) { super.setEnabled( value ); getContentView().setEnabled( value ); } /** * Call this method when your tool is ready to display its overlay. * After this call the main context will remove the main image * and will replace it with the content of this panel */ protected void contentReady() { if ( mContentReadyListener != null && isActive() ) mContentReadyListener.onReady( this ); } protected abstract View generateContentView( LayoutInflater inflater ); @Override public boolean isRendering() { // assume that a content panel is always in rendering mode return true; } }