|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguk.MenuLayout
public class MenuLayout
A layout designed to allow Java menus to make better use of the screen real-estate. It will lay out the menu components in columns going from top to bottom and from left to right.
Constructor Summary | |
---|---|
MenuLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
protected GraphicsConfiguration |
findGraphicsConfiguration(Component target)
Find the graphics configuration for the target popup (useful in case of multiple screens). |
protected Dimension |
getCompositeSize(Container target,
Dimension[] componentSizes)
Calculates the size of the target container given the sizes of the components. |
void |
layoutContainer(Container target)
|
Dimension |
minimumLayoutSize(Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuLayout()
Method Detail |
---|
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the name of the componentcomp
- the the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to removepublic Dimension preferredLayoutSize(Container target)
preferredLayoutSize
in interface LayoutManager
target
- the component which needs to be laid outContainer
,
minimumLayoutSize(java.awt.Container)
protected Dimension getCompositeSize(Container target, Dimension[] componentSizes)
minimumLayoutSize(java.awt.Container)
and preferredLayoutSize(java.awt.Container)
.
target
- componentSizes
-
Dimension
value.protected GraphicsConfiguration findGraphicsConfiguration(Component target)
target
- the component for which the configuration needs to be found.
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
target
- the component which needs to be laid outpreferredLayoutSize(java.awt.Container)
public void layoutContainer(Container target)
layoutContainer
in interface LayoutManager
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |