org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout
Class AbstractUnitLayout

Package class diagram package AbstractUnitLayout
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.AbstractUnitLayout
All Implemented Interfaces:
LayoutManager
Direct Known Subclasses:
FormLayout, GridUnitLayout

public abstract class AbstractUnitLayout
extends Object
implements LayoutManager

Author:
amedrano

Field Summary
protected  int gap
           
protected static int HORIZONAL_UNIT_HEIGHT_LIMIT
           
protected static int LABEL_HEIGHT_THRESHOLD
           
protected static int PIXELS_PER_FONT_SIZE
           
protected static String POST_NEWLINE
           
protected static String PRE_NEWLINE
           
 
Constructor Summary
AbstractUnitLayout(int gap)
           
 
Method Summary
abstract  void addLayoutComponent(String name, Component comp)
          
static float getSreenRatio()
          Get the screen ratio, ie: Width / Height.
abstract  void layoutContainer(Container parent)
          
abstract  Dimension minimumLayoutSize(Container parent)
          
abstract  Dimension preferredLayoutSize(Container parent)
          
abstract  void removeLayoutComponent(Component comp)
          
static void setNewLineAfter(JComponent c)
           
static void setNewLineBefore(JComponent c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIXELS_PER_FONT_SIZE

protected static int PIXELS_PER_FONT_SIZE

LABEL_HEIGHT_THRESHOLD

protected static final int LABEL_HEIGHT_THRESHOLD
See Also:
Constant Field Values

PRE_NEWLINE

protected static final String PRE_NEWLINE
See Also:
Constant Field Values

POST_NEWLINE

protected static final String POST_NEWLINE
See Also:
Constant Field Values

HORIZONAL_UNIT_HEIGHT_LIMIT

protected static int HORIZONAL_UNIT_HEIGHT_LIMIT

gap

protected int gap
Constructor Detail

AbstractUnitLayout

public AbstractUnitLayout(int gap)
Method Detail

addLayoutComponent

public abstract void addLayoutComponent(String name,
                                        Component comp)

Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public abstract void removeLayoutComponent(Component comp)

Specified by:
removeLayoutComponent in interface LayoutManager

preferredLayoutSize

public abstract Dimension preferredLayoutSize(Container parent)

Specified by:
preferredLayoutSize in interface LayoutManager

minimumLayoutSize

public abstract Dimension minimumLayoutSize(Container parent)

Specified by:
minimumLayoutSize in interface LayoutManager

layoutContainer

public abstract void layoutContainer(Container parent)

Specified by:
layoutContainer in interface LayoutManager

getSreenRatio

public static float getSreenRatio()
Get the screen ratio, ie: Width / Height.

Returns:

setNewLineBefore

public static void setNewLineBefore(JComponent c)

setNewLineAfter

public static void setNewLineAfter(JComponent c)


Copyright © 2014 universAAL Consortium. All Rights Reserved.