Documentation of 'org.jhotdraw.gui.ToolBarLayout' Java class
ToolBarLayout
org.jhotdraw.gui

Class ToolBarLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable


    public class ToolBarLayout
    extends java.lang.Object
    implements java.awt.LayoutManager2, java.io.Serializable
    A layout which lays out components horizontally or vertically according to their preferred size.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int X_AXIS
      Specifies that components should be laid out left to right.
      static int Y_AXIS
      Specifies that components should be laid out top to bottom.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ToolBarLayout()
      Creates a layout manager that will lay out components along the X-axis.
      ToolBarLayout(int axis)
      Creates a layout manager that will lay out components along the given axis.
    • Field Detail

      • X_AXIS

        public static final int X_AXIS
        Specifies that components should be laid out left to right.
        See Also:
        Constant Field Values
      • Y_AXIS

        public static final int Y_AXIS
        Specifies that components should be laid out top to bottom.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ToolBarLayout

        public ToolBarLayout()
        Creates a layout manager that will lay out components along the X-axis.
      • ToolBarLayout

        public ToolBarLayout(int axis)
        Creates a layout manager that will lay out components along the given axis.
        Parameters:
        axis - the axis to lay out components along. Can be one of: BoxLayout.X_AXIS, BoxLayout.Y_AXIS,
        Throws:
        java.awt.AWTError - if the value of axis is invalid
    • Method Detail

      • addLayoutComponent

        public void addLayoutComponent(java.awt.Component comp,
                                       java.lang.Object constraints)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager2
      • maximumLayoutSize

        public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
        Specified by:
        maximumLayoutSize in interface java.awt.LayoutManager2
      • getLayoutAlignmentX

        public float getLayoutAlignmentX(java.awt.Container target)
        Specified by:
        getLayoutAlignmentX in interface java.awt.LayoutManager2
      • getLayoutAlignmentY

        public float getLayoutAlignmentY(java.awt.Container target)
        Specified by:
        getLayoutAlignmentY in interface java.awt.LayoutManager2
      • invalidateLayout

        public void invalidateLayout(java.awt.Container target)
        Specified by:
        invalidateLayout in interface java.awt.LayoutManager2
      • addLayoutComponent

        public void addLayoutComponent(java.lang.String name,
                                       java.awt.Component comp)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent(java.awt.Component comp)
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
      • layoutContainer

        public void layoutContainer(java.awt.Container parent)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.