fi.helsinki.cs.gist
Class GLayerLayout
java.lang.Object
|
+--fi.helsinki.cs.gist.GLayerLayout
- public class GLayerLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
LayerLayout implements simple layout manager for same sized, partly transparent layers.
It it used with JLayeredPane. It resizes and positions all components so that they fill
parent components area (borders excluded). So components are on pile, which is useful
if they are kind of partly transparent layers.
Method Summary |
void |
addLayoutComponent(java.lang.String s,
java.awt.Component c)
Does nothing, required by LayoutManager interface. |
void |
layoutContainer(java.awt.Container parent)
Layouts components. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns minimum size of parent component. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns preferred size of parent component. |
void |
removeLayoutComponent(java.awt.Component c)
Does nothing, required by LayoutManager interface. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GLayerLayout
public GLayerLayout()
addLayoutComponent
public void addLayoutComponent(java.lang.String s,
java.awt.Component c)
- Does nothing, required by LayoutManager interface.
- Specified by:
- addLayoutComponent in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component c)
- Does nothing, required by LayoutManager interface.
- Specified by:
- removeLayoutComponent in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Returns preferred size of parent component. Preferred size has a maximum
preferred width and height of child components.
- Specified by:
- preferredLayoutSize in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Returns minimum size of parent component. Minimum size has a maximum
of minimum widths and heights of child components.
- Specified by:
- minimumLayoutSize in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Layouts components. Components are layoutted on pile.
- Specified by:
- layoutContainer in interface java.awt.LayoutManager