Class DefaultReportController

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jfree.report.modules.gui.swing.preview.DefaultReportController
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ReportController

public class DefaultReportController extends JPanel implements ReportController
See Also:
  • Constructor Details

    • DefaultReportController

      public DefaultReportController()
      Creates a new JPanel with a double buffer and a flow layout.
  • Method Details

    • getControlPanel

      public JComponent getControlPanel()
      Returns the graphical representation of the controler. This component will be added between the menu bar and the toolbar.

      Changes to this property are not detected automaticly, you have to call "refreshControler" whenever you want to display a completly new control panel.

      Specified by:
      getControlPanel in interface ReportController
      Returns:
      the controler component.
    • getMenus

      public JMenu[] getMenus()
      The default implementation has no menus.
      Specified by:
      getMenus in interface ReportController
      Returns:
      an empty array.
    • getControllerLocation

      public String getControllerLocation()
      Returns the location for the report controler, one of BorderLayout.NORTH, BorderLayout.SOUTH, BorderLayout.EAST or BorderLayout.WEST.
      Specified by:
      getControllerLocation in interface ReportController
      Returns:
      the location;
    • isInnerComponent

      public boolean isInnerComponent()
      Defines, whether the controler component is placed between the report pane and the toolbar.
      Specified by:
      isInnerComponent in interface ReportController
      Returns:
      true, if this is a inne component.
    • initialize

      public void initialize(PreviewPane pane)
      Specified by:
      initialize in interface ReportController