public class DynamicLayoutConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
dynamicLayoutEnabled |
static int |
FRAME_PADDING_PIXELS
The default frame padding
|
private double |
framePaddingX |
private double |
framePaddingY |
private static ContextLocal<DynamicLayoutConfig> |
instance
Context class instance
|
static double |
MIN_COLUMN_WIDTH_RATIO
The default minimum column width ratio for browse widget
|
private double |
minColumnWidthRatio |
private boolean |
optimalSizeEnabled
When the flag enabled dynamic layout will determine the optimal size of the widgets in a window
and will increase the window size accordingly.
|
private static java.lang.String |
ROOT_CFG_NODE
The root configuration node name
|
static int |
WINDOW_PADDING_PIXELS
The default window padding
|
private double |
windowPaddingX |
private double |
windowPaddingY |
Constructor and Description |
---|
DynamicLayoutConfig()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getFramePaddingX()
Returns the frame padding on the X axis read from directory.
|
double |
getFramePaddingY()
Returns the frame padding on the Y axis read from directory.
|
static DynamicLayoutConfig |
getInstance()
Returns the class context instance.
|
double |
getMinColumnWidthRatio()
Returns the minimum column value will be calculated as the column's data width times this value read
from directory.
|
double |
getWindowPaddingX()
Returns the window padding on the X axis read from directory.
|
double |
getWindowPaddingY()
Returns the window padding on the Y axis read from directory.
|
boolean |
isDynamicLayoutEnabled()
Returns the dynamic layout enabled flag read from directory.
|
boolean |
isOptimalSizeEnabled()
Returns the optimal size enabled flag read from directory.
|
public static final int FRAME_PADDING_PIXELS
public static final int WINDOW_PADDING_PIXELS
public static final double MIN_COLUMN_WIDTH_RATIO
private static final java.lang.String ROOT_CFG_NODE
private static ContextLocal<DynamicLayoutConfig> instance
private boolean dynamicLayoutEnabled
private double framePaddingX
private double framePaddingY
private double windowPaddingX
private double windowPaddingY
private double minColumnWidthRatio
private boolean optimalSizeEnabled
public static DynamicLayoutConfig getInstance()
public boolean isDynamicLayoutEnabled()
public double getFramePaddingX()
public double getFramePaddingY()
public double getWindowPaddingX()
public double getWindowPaddingY()
public double getMinColumnWidthRatio()
public boolean isOptimalSizeEnabled()