Class CenterLayout

java.lang.Object
org.jfree.report.modules.gui.swing.common.CenterLayout
All Implemented Interfaces:
LayoutManager, Serializable

public class CenterLayout extends Object implements LayoutManager, Serializable
A layout manager that displays a single component in the center of its container.
Author:
David Gilbert
See Also:
  • Constructor Details

    • CenterLayout

      public CenterLayout()
      Creates a new layout manager.
  • Method Details

    • preferredLayoutSize

      public Dimension preferredLayoutSize(Container parent)
      Returns the preferred size.
      Specified by:
      preferredLayoutSize in interface LayoutManager
      Parameters:
      parent - the parent.
      Returns:
      the preferred size.
    • minimumLayoutSize

      public Dimension minimumLayoutSize(Container parent)
      Returns the minimum size.
      Specified by:
      minimumLayoutSize in interface LayoutManager
      Parameters:
      parent - the parent.
      Returns:
      the minimum size.
    • layoutContainer

      public void layoutContainer(Container parent)
      Lays out the components.
      Specified by:
      layoutContainer in interface LayoutManager
      Parameters:
      parent - the parent.
    • addLayoutComponent

      public void addLayoutComponent(Component comp)
      Not used.
      Parameters:
      comp - the component.
    • removeLayoutComponent

      public void removeLayoutComponent(Component comp)
      Not used.
      Specified by:
      removeLayoutComponent in interface LayoutManager
      Parameters:
      comp - the component.
    • addLayoutComponent

      public void addLayoutComponent(String name, Component comp)
      Not used.
      Specified by:
      addLayoutComponent in interface LayoutManager
      Parameters:
      name - the component name.
      comp - the component.
    • removeLayoutComponent

      public void removeLayoutComponent(String name, Component comp)
      Not used.
      Parameters:
      name - the component name.
      comp - the component.