/* Copyright (c) 2002-2011 by XMLVM.org
*
* Project Info: http://www.xmlvm.org
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
package org.xmlvm.acl.common.objects;
import java.util.List;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
/**
*
*/
public interface CommonView {
public static final int CONTROL_STATE_NORMAL = 0;
public static final int CONTROL_STATE_HIGHLIGHTED = 1 << 0;
public static final int CONTROL_STATE_DISABLED = 1 << 1;
public static final int CONTROL_STATE_SELECTED = 1 << 2;
public static final int CONTROL_STATE_APPLICATION_RESERVERD = 0x00FF0000;
public static final int CONTROL_STATE_RESERVED = 0xFF000000;
public static final int SCALE_TO_FILL = 0;
public static final int SCALE_ASPECT_FIT= 1;
public static final int SCALE_ASPECT_FILL = 2;
public static final int REDRAW = 3;
public static final int CENTER = 4;
public static final int TOP = 5;
public static final int BOTTOM = 6;
public static final int LEFT = 7;
public static final int RIGHT = 8;
public static final int TOP_LEFT = 9;
public static final int TOP_RIGHT = 10;
public static final int BOTTOM_LEFT = 11;
public static final int BOTTOM_RIGHT = 12;
public RectF getFrame();
public void setFrame(RectF frame);
public void setHidden(boolean b);
public void setNeedsDisplay();
public void setBackgroundDrawable(Drawable d);
public Drawable getBackgroundDrawable();
public void addSubview(CommonView metricsView);
public void insertSubview(CommonView metricsView, int idx);
public void removeFromSuperview();
public void setSuperView(CommonView superView);
public CommonView getSuperview();
public List<CommonView> getSubviews();
public void setContentMode(int mode);
public boolean isUserInteractionEnabled();
public void setUserInteractionEnabled(boolean status);
public void resignFirstResponder();
public void setOpaque(boolean b);
public void bringSubviewToFront(CommonView view);
}