Documentation of 'de.erichseifert.gral.graphics.layout.EdgeLayout' Java class
EdgeLayout
de.erichseifert.gral.graphics.layout

Class EdgeLayout

  • All Implemented Interfaces:
    Layout, java.io.Serializable


    public class EdgeLayout
    extends AbstractLayout
    Implementation of Layout that arranges a Container's components according to a certain grid. This is similar to Java's BorderLayout, but also allows components to be placed in each of the corners.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      EdgeLayout()
      Initializes a layout manager object without space between the components.
      EdgeLayout(double gapH, double gapV)
      Initializes a layout manager object with the specified space between the components.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.geom.Dimension2D getPreferredSize(Container container)
      Returns the preferred size of the specified container using this layout.
      void layout(Container container)
      Arranges the components of the specified container according to this layout.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EdgeLayout

        public EdgeLayout(double gapH,
                          double gapV)
        Initializes a layout manager object with the specified space between the components.
        Parameters:
        gapH - Horizontal gap.
        gapV - Vertical gap.
      • EdgeLayout

        public EdgeLayout()
        Initializes a layout manager object without space between the components.
    • Method Detail

      • layout

        public void layout(Container container)
        Arranges the components of the specified container according to this layout.
        Parameters:
        container - Container to be laid out.
      • getPreferredSize

        public java.awt.geom.Dimension2D getPreferredSize(Container container)
        Returns the preferred size of the specified container using this layout.
        Parameters:
        container - Container whose preferred size is to be returned.
        Returns:
        Preferred extent of the specified container.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.