01: /**
02: * ===========================================
03: * JFreeReport : a free Java reporting library
04: * ===========================================
05: *
06: * Project Info: http://reporting.pentaho.org/
07: *
08: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
09: *
10: * This library is free software; you can redistribute it and/or modify it under the terms
11: * of the GNU Lesser General Public License as published by the Free Software Foundation;
12: * either version 2.1 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15: * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: * See the GNU Lesser General Public License for more details.
17: *
18: * You should have received a copy of the GNU Lesser General Public License along with this
19: * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20: * Boston, MA 02111-1307, USA.
21: *
22: * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
23: * in the United States and other countries.]
24: *
25: * ------------
26: * ReportDrawable.java
27: * ------------
28: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
29: */package org.jfree.report.util;
30:
31: import org.jfree.report.ResourceBundleFactory;
32: import org.jfree.report.layout.LayoutSupport;
33: import org.jfree.report.style.StyleSheet;
34: import org.jfree.ui.Drawable;
35: import org.jfree.util.Configuration;
36:
37: /**
38: * A report drawable receives context-information from the report processor that may allow the implementation to return
39: * better results. Implement this interface to get some extra hints for your drawing task.
40: *
41: * @author Thomas Morgner
42: */
43: public interface ReportDrawable extends Drawable {
44: /**
45: * Provides the Layout-Support of the current report processor to the drawable. The layout-support can be used to
46: * compute text-layouts.
47: *
48: * @param layoutSupport the layout support.
49: */
50: public void setLayoutSupport(LayoutSupport layoutSupport);
51:
52: /**
53: * Provides the current report configuration of the current report process to the drawable. The report configuration
54: * can be used to configure the drawing process through the report.
55: *
56: * @param config the report configuration.
57: */
58: public void setConfiguration(Configuration config);
59:
60: /**
61: * Provides the computed stylesheet of the report element that contained this drawable. The stylesheet is immutable.
62: *
63: * @param style the stylesheet.
64: */
65: public void setStyleSheet(StyleSheet style);
66:
67: /**
68: * Defines the resource-bundle factory that can be used to localize the drawing process.
69: *
70: * @param bundleFactory the resource-bundle factory.
71: */
72: public void setResourceBundleFactory(
73: final ResourceBundleFactory bundleFactory);
74: }
|