com.alee.extended.dock
Class DockingPaneLayout

java.lang.Object
  extended by com.alee.extended.layout.AbstractLayoutManager
      extended by com.alee.extended.dock.DockingPaneLayout
All Implemented Interfaces:
DockingPaneConstants, java.awt.LayoutManager, java.awt.LayoutManager2

public class DockingPaneLayout
extends AbstractLayoutManager
implements DockingPaneConstants

Custom layout for WebDockablePane component.

Author:
Mikle Garin

Field Summary
 
Fields inherited from interface com.alee.extended.dock.DockingPaneConstants
BOTTOM_FRAME, BOTTOM_LEFT, BOTTOM_RIGHT, CONTENT, LEFT_BOTTOM, LEFT_FRAME, LEFT_TOP, RIGHT_BOTTOM, RIGHT_FRAME, RIGHT_TOP, TOP_FRAME, TOP_LEFT, TOP_RIGHT
 
Constructor Summary
DockingPaneLayout()
           
 
Method Summary
 void addComponent(java.awt.Component component, java.lang.Object constraints)
          Caled when component added into container with this layout.
 int getButtonSidesSpacing()
           
 java.awt.Insets getButtonsMargin()
           
 int getButtonSpacing()
           
 java.util.Map<java.awt.Component,java.lang.String> getConstraints()
           
 java.awt.Insets getContentMargin()
           
 DockingPaneInfo getDockingPaneInfo()
          Cached DockingPaneInfo
 java.lang.String getFilledFrame()
           
 java.awt.Insets getFramesMargin()
           
 boolean isButtonPanesVisible()
          Layout settings
 void layoutContainer(java.awt.Container parent)
          
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          
 void removeComponent(java.awt.Component component)
          Called when component removed from container with this layout.
 void setButtonPanesVisible(boolean buttonPanesVisible)
           
 void setButtonSidesSpacing(int buttonSidesSpacing)
           
 void setButtonsMargin(java.awt.Insets buttonsMargin)
           
 void setButtonSpacing(int buttonSpacing)
           
 void setConstraints(java.util.Map<java.awt.Component,java.lang.String> constraints)
           
 void setContentMargin(java.awt.Insets contentMargin)
           
 void setFilledFrame(java.lang.String filledFrame)
           
 void setFramesMargin(java.awt.Insets framesMargin)
           
 
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockingPaneLayout

public DockingPaneLayout()
Method Detail

isButtonPanesVisible

public boolean isButtonPanesVisible()
Layout settings


setButtonPanesVisible

public void setButtonPanesVisible(boolean buttonPanesVisible)

getFilledFrame

public java.lang.String getFilledFrame()

setFilledFrame

public void setFilledFrame(java.lang.String filledFrame)

getButtonsMargin

public java.awt.Insets getButtonsMargin()

setButtonsMargin

public void setButtonsMargin(java.awt.Insets buttonsMargin)

getButtonSpacing

public int getButtonSpacing()

setButtonSpacing

public void setButtonSpacing(int buttonSpacing)

getButtonSidesSpacing

public int getButtonSidesSpacing()

setButtonSidesSpacing

public void setButtonSidesSpacing(int buttonSidesSpacing)

getFramesMargin

public java.awt.Insets getFramesMargin()

setFramesMargin

public void setFramesMargin(java.awt.Insets framesMargin)

getContentMargin

public java.awt.Insets getContentMargin()

setContentMargin

public void setContentMargin(java.awt.Insets contentMargin)

getConstraints

public java.util.Map<java.awt.Component,java.lang.String> getConstraints()

setConstraints

public void setConstraints(java.util.Map<java.awt.Component,java.lang.String> constraints)

getDockingPaneInfo

public DockingPaneInfo getDockingPaneInfo()
Cached DockingPaneInfo


addComponent

public void addComponent(java.awt.Component component,
                         java.lang.Object constraints)
Caled when component added into container with this layout.

Overrides:
addComponent in class AbstractLayoutManager
Parameters:
component - added component
constraints - component constraints

removeComponent

public void removeComponent(java.awt.Component component)
Called when component removed from container with this layout.

Overrides:
removeComponent in class AbstractLayoutManager
Parameters:
component - removed component

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)

Specified by:
layoutContainer in interface java.awt.LayoutManager