net.sf.jasperreports.engine.JRCommonElement Maven / Gradle / Ivy
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2011 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 .
*/
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 ([email protected])
* @version $Id: JRCommonElement.java 5565 2012-08-10 12:44:51Z teodord $
*/
public interface JRCommonElement extends JRStyleContainer
{
public int getWidth();
public int getHeight();
/**
* Returns the string value that uniquely identifies the element.
*/
public String getKey();
/**
* 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();
/**
* 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);
}