/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2009 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports 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 3 of the License, or
* (at your option) any later version.
*
* JasperReports 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 JasperReports. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.jasperreports.engine;
import java.awt.Color;
import net.sf.jasperreports.engine.type.ModeEnum;
/**
* An abstract representation of a report element. All report elements implement this interface. The interface contains
* constants and methods that apply to all report elements.
*
* @author Teodor Danciu (teodord@users.sourceforge.net)
* @version $Id: JRCommonElement.java 3411 2010-02-17 12:51:18Z teodord $
*/
public interface JRCommonElement extends JRStyleContainer
{
public int getWidth();
public int getHeight();
/**
* Returns the string value that uniquely identifies the element.
*/
public String getKey();
/**
* @deprecated Replaced by {@link #getModeValue()}.
*/
public byte getMode();
/**
* @deprecated Replaced by {@link #getOwnModeValue()}.
*/
public Byte getOwnMode();
/**
* Returns the element transparency mode.
* The default value depends on the type of the report element. Graphic elements like rectangles and lines are
* opaque by default, but the images are transparent. Both static texts and text fields are transparent
* by default, and so are the subreport elements.
*/
public ModeEnum getModeValue();
public ModeEnum getOwnModeValue();
/**
* @deprecated Replaced by {@link #setMode(ModeEnum)}.
*/
public void setMode(byte mode);
/**
* @deprecated Replaced by {@link #setMode(ModeEnum)}.
*/
public void setMode(Byte mode);
/**
* Sets the element transparency mode.
*/
public void setMode(ModeEnum mode);
/**
*
*/
public Color getForecolor();
/**
*
*/
public Color getOwnForecolor();
/**
*
*/
public void setForecolor(Color forecolor);
/**
*
*/
public Color getBackcolor();
/**
*
*/
public Color getOwnBackcolor();
/**
*
*/
public void setBackcolor(Color backcolor);
}