public class ImageLayout
extends java.lang.Object
implements java.awt.LayoutManager
| Constructor and Description |
|---|
ImageLayout(ImageCanvas ic)
Creates a new ImageLayout with center alignment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.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(java.awt.Container target)
Lays out the container and calls ImageCanvas.resizeCanvas()
to adjust the image canvas size as needed.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions for this layout.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout.
|
void |
removeLayoutComponent(java.awt.Component comp)
Not used by this class.
|
public ImageLayout(ImageCanvas ic)
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagerpublic void ignoreNonImageWidths(boolean ignoreNonImageWidths)
public void layoutContainer(java.awt.Container target)
layoutContainer in interface java.awt.LayoutManager