com.monkeycoder.monkeyfractal.gui
Class GuiHelper

java.lang.Object
  extended by com.monkeycoder.monkeyfractal.gui.GuiHelper

public class GuiHelper
extends java.lang.Object

This class provides some convenience GUI methods.

Originally part of the MonkeyFractal project.

Author:
David Stephens

Constructor Summary
GuiHelper()
           
 
Method Summary
static javax.swing.JPanel flowWrapper(java.awt.Component inComponent)
          Creates a JPanel with a FlowLayout wrapped around the desired Component.
static javax.swing.JPanel flowWrapper(int flowAlign, java.awt.Component inComponent)
          Creates a JPanel with a FlowLayout wrapped around the desired Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiHelper

public GuiHelper()
Method Detail

flowWrapper

public static javax.swing.JPanel flowWrapper(java.awt.Component inComponent)
Creates a JPanel with a FlowLayout wrapped around the desired Component.

Parameters:
inComponent - The component to wrap in a FlowLayout.
Returns:
The new JPanel with nested Component.

flowWrapper

public static javax.swing.JPanel flowWrapper(int flowAlign,
                                             java.awt.Component inComponent)
Creates a JPanel with a FlowLayout wrapped around the desired Component.

Parameters:
flowAlign - The desired alignment for the containing FlowLayout.
inComponent - The component to wrap in a FlowLayout.
Returns:
The new JPanel with nested Component.