|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.JToolBar.DefaultToolBarLayout
Field Summary | |
(package private) LayoutManager |
lm
|
Constructor Summary | |
(package private) |
JToolBar.DefaultToolBarLayout(int orientation)
|
Method Summary | |
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name . |
float |
getLayoutAlignmentX(Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container target)
Returns the alignment along the y axis. |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(Container target)
Lays out the specified container. |
Dimension |
maximumLayoutSize(Container target)
Calculates the maximum size dimensions for the specified container, given the components it contains. |
Dimension |
minimumLayoutSize(Container target)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
Dimension |
preferredLayoutSize(Container target)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
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 |
Field Detail |
LayoutManager lm
Constructor Detail |
JToolBar.DefaultToolBarLayout(int orientation)
Method Detail |
public void addLayoutComponent(String name, Component comp)
LayoutManager
comp
to the layout,
associating it
with the string specified by name
.
addLayoutComponent
in interface LayoutManager
name
- the string to be associated with the componentcomp
- the component to be addedpublic void addLayoutComponent(Component comp, Object constraints)
LayoutManager2
addLayoutComponent
in interface LayoutManager2
comp
- the component to be addedconstraints
- where/how the component is added to the layout.public void removeLayoutComponent(Component comp)
LayoutManager
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension preferredLayoutSize(Container target)
LayoutManager
preferredLayoutSize
in interface LayoutManager
target
- the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)
public Dimension minimumLayoutSize(Container target)
LayoutManager
minimumLayoutSize
in interface LayoutManager
target
- the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension maximumLayoutSize(Container target)
LayoutManager2
maximumLayoutSize
in interface LayoutManager2
Component.getMaximumSize()
,
LayoutManager
public void layoutContainer(Container target)
LayoutManager
layoutContainer
in interface LayoutManager
target
- the container to be laid outpublic float getLayoutAlignmentX(Container target)
LayoutManager2
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container target)
LayoutManager2
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
LayoutManager2
invalidateLayout
in interface LayoutManager2
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |