public class ImageLayout extends Object implements LayoutManager
| Constructor and Description |
|---|
ImageLayout(ImageCanvas ic)
Creates a new ImageLayout with center alignment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Not used by this class.
|
void |
ignoreNonImageWidths(boolean ignoreNonImageWidths)
Determines whether to ignore the width of non-image components when calculating
the preferred width (default false, i.e.
|
void |
layoutContainer(Container target)
Lays out the container and calls ImageCanvas.resizeCanvas()
to adjust the image canvas size as needed.
|
Dimension |
minimumLayoutSize(Container target)
Returns the minimum dimensions for this layout.
|
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout.
|
void |
removeLayoutComponent(Component comp)
Not used by this class.
|
public ImageLayout(ImageCanvas ic)
public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagerpublic void ignoreNonImageWidths(boolean ignoreNonImageWidths)
public void layoutContainer(Container target)
layoutContainer in interface LayoutManagerCopyright © 1997–2018 NIH. All rights reserved.