org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout
Class AbstractUnitLayout
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractUnitLayout
public AbstractUnitLayout(int gap)
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.