All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jasperreports.engine.JRPrintElement Maven / Gradle / Ivy

There is a newer version: 7.0.1
Show newest version
/*
 * JasperReports - Free Java Reporting Library.
 * Copyright (C) 2001 - 2023 Cloud Software Group, Inc. 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.util.UUID;



/**
 * @author Teodor Danciu ([email protected])
 */
public interface JRPrintElement extends JRCommonElement, JRPropertiesHolder, JRIdentifiable
{

	/**
	 * A value used when no source element Id information is available.
	 * 
	 * @see #getSourceElementId()
	 */
	int UNSET_SOURCE_ELEMENT_ID = 0;
	
	int UNSET_PRINT_ELEMENT_ID = 0;
	
	/**
	 *
	 */
	public JROrigin getOrigin();
	
	/**
	 *
	 */
	public void setStyle(JRStyle style);
	
	/**
	 *
	 */
	public int getX();
	
	/**
	 *
	 */
	public void setUUID(UUID uuid);
	
	/**
	 *
	 */
	public void setX(int x);
	
	/**
	 *
	 */
	public int getY();
	
	/**
	 *
	 */
	public void setY(int y);
	
	@Override
	public int getWidth();
	
	/**
	 *
	 */
	public void setWidth(int width);
	
	@Override
	public int getHeight();
	
	/**
	 *
	 */
	public void setHeight(int height);
	
	
	/**
	 * Returns a string key that can be used to identify the element.
	 * 

* When filling a report, the {@link JRElement#getKey() report element key} * is copied to all print elements generated by a report element. * Note that this means that multiple elements having the same key can * appear on the same page/filled report. *

*/ @Override public String getKey(); /** * Accepts a print element visitor. * *

* The element calls the method that corresponds to the element type on the visitor. *

* * @param the type of the argument passed to the visit operation * @param visitor the visitor objects * @param arg the argument passed to the visit operation */ public void accept(PrintElementVisitor visitor, T arg); /** * Returns a numerical Id associated to the fill element that generated * this print element. * * @return the Id of the fill element that generated this element */ public int getSourceElementId(); /** * Returns a numerical Id that together with {@link #getSourceElementId()} uniquely identifies a print element. * * @return a print Id for the element * @see PrintElementId */ public int getPrintElementId(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy