public class DockLayout
extends java.lang.Object
implements java.awt.LayoutManager2
Modifier and Type | Field and Description |
---|---|
protected java.awt.Rectangle |
backgroundBounds
Size of the background control
|
protected java.awt.Rectangle |
occludingBounds
Size of the background control
|
Constructor and Description |
---|
DockLayout(BasicDockPanel p) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints) |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
protected int |
getHeightAtLeft(DockWrapper dw)
Get the height at the left point for a north or south
DockWrapper.
|
protected int |
getHeightAtLeftCardinal(DockWrapper dw)
Account for the extra size of the cardinal DockWrapper.
|
protected int |
getHeightAtRight(DockWrapper dw)
Get the height at the right point for a north or south
DockWrapper.
|
protected int |
getHeightAtRightCardinal(DockWrapper dw)
Account for the extra size of the cardinal DockWrapper.
|
float |
getLayoutAlignmentX(java.awt.Container target) |
float |
getLayoutAlignmentY(java.awt.Container target) |
protected int |
getWidthAtY(DockWrapper dw,
int y)
Get the width at the given point for a east or west
DockWrapper.
|
protected int |
getWidthAtYCardinal(DockWrapper dw,
int y)
Account for the extra size of the cardinal DockWrapper.
|
void |
invalidateLayout(java.awt.Container target) |
protected void |
layoutBackground() |
protected void |
layoutCardinals() |
protected void |
layoutContainer()
Layout the entire container.
|
void |
layoutContainer(java.awt.Container parent) |
protected void |
layoutEast(DockWrapper base,
int x,
int y,
int maxwidth,
int maxheight)
Layout west side.
|
protected void |
layoutNorth(DockWrapper base,
int x,
int y,
int maxwidth,
int maxheight)
Layout north side.
|
protected void |
layoutSouth(DockWrapper base,
int x,
int y,
int maxwidth,
int maxheight)
Layout north side.
|
protected void |
layoutWest(DockWrapper base,
int x,
int y,
int maxwidth,
int maxheight)
Layout west side.
|
protected int |
max(int a,
int b) |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container parent) |
protected int |
min(int a,
int b) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
protected void |
updateBottom(java.awt.Rectangle r,
int bottom) |
protected void |
updateLeft(java.awt.Rectangle r,
int left) |
protected void |
updateRight(java.awt.Rectangle r,
int right) |
protected void |
updateTop(java.awt.Rectangle r,
int top) |
protected java.awt.Rectangle occludingBounds
protected java.awt.Rectangle backgroundBounds
public DockLayout(BasicDockPanel p)
protected int getHeightAtLeftCardinal(DockWrapper dw)
protected int getHeightAtRightCardinal(DockWrapper dw)
protected int getWidthAtYCardinal(DockWrapper dw, int y)
protected int getHeightAtLeft(DockWrapper dw)
protected int getHeightAtRight(DockWrapper dw)
protected int getWidthAtY(DockWrapper dw, int y)
protected void layoutContainer()
protected void layoutCardinals()
protected void layoutEast(DockWrapper base, int x, int y, int maxwidth, int maxheight)
x
- right most edge.y
- top most edge.protected void layoutWest(DockWrapper base, int x, int y, int maxwidth, int maxheight)
x
- left most edge.y
- top most edge.protected void layoutNorth(DockWrapper base, int x, int y, int maxwidth, int maxheight)
x
- left most edge.y
- top most edge.protected void layoutSouth(DockWrapper base, int x, int y, int maxwidth, int maxheight)
x
- left most edge.y
- bottom most edge.protected void layoutBackground()
protected int min(int a, int b)
protected int max(int a, int b)
protected void updateLeft(java.awt.Rectangle r, int left)
protected void updateRight(java.awt.Rectangle r, int right)
protected void updateTop(java.awt.Rectangle r, int top)
protected void updateBottom(java.awt.Rectangle r, int bottom)
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
maximumLayoutSize
in interface java.awt.LayoutManager2
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details