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

Class OuterEdgeLayout

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


    public class OuterEdgeLayout
    extends AbstractLayout
    Implementation of Layout that arranges a Container's components inside or in the regions outside of the container. This is similar to EdgeLayout, but also allows components to be placed outside the container.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      OuterEdgeLayout()
      Initializes a layout manager object without space between the components.
      OuterEdgeLayout(double gap)
      Initializes a layout manager object with the specified space between the container's edges and 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

      • OuterEdgeLayout

        public OuterEdgeLayout(double gap)
        Initializes a layout manager object with the specified space between the container's edges and the components.
        Parameters:
        gap - Spacing between the container's edges and the components.
      • OuterEdgeLayout

        public OuterEdgeLayout()
        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

Ads help maintain this website.