public class ConfigHelper
extends java.lang.Object
BaseConfig
fields.Constructor and Description |
---|
ConfigHelper() |
Modifier and Type | Method and Description |
---|---|
static double |
getAssignedColumn(BaseConfig cfg)
Returns the initial or set COLUMN value from the passed config
instance.
|
static Point |
getAssignedLocation(BaseConfig cfg)
The returned value represents the location value assigned in
frame definition or as set by COLUMN/ROW attributes.
|
static NativePoint |
getAssignedPixelLocation(BaseConfig cfg)
The returned value represents the location value assigned in
frame definition or as set by X/Y attributes.
|
static double |
getAssignedRow(BaseConfig cfg)
Returns the initial or set ROW value from the passed config
instance.
|
static int |
getAssignedX(BaseConfig cfg)
Returns the initial or set X value from the passed config
instance.
|
static int |
getAssignedY(BaseConfig cfg)
Returns the initial or set Y value from the passed config
instance.
|
static double |
getColon(BaseConfig cfg)
Get COLON attribute value from the passed configuration.
|
static double |
getEffectiveColumn(BaseConfig cfg)
Returns the effective COLUMN value from the passed config instance.
|
static Point |
getEffectiveLocation(BaseConfig cfg)
The returned value represents the actual widget location as rendered
on the client.
|
static NativePoint |
getEffectivePixelLocation(BaseConfig cfg)
The returned value represents the actual widget location as rendered
on the client.
|
static double |
getEffectiveRow(BaseConfig cfg)
Returns the effective ROW value from the passed config instance.
|
static double |
getEffectiveVirtualHeight(PaneConfig cfg)
Returns the effective frame virtual size from the supplied pane config.
|
static int |
getEffectiveVirtualHeightPixels(PaneConfig cfg)
Returns the effective frame virtual size from the supplied pane config.
|
static double |
getEffectiveVirtualWidth(PaneConfig cfg)
Returns the effective frame virtual size from the supplied pane config.
|
static int |
getEffectiveVirtualWidthPixels(PaneConfig cfg)
Returns the effective frame virtual size from the supplied pane config.
|
static int |
getEffectiveX(BaseConfig cfg)
Returns the effective X value from the passed config instance.
|
static int |
getEffectiveY(BaseConfig cfg)
Returns the effective Y value from the passed config instance.
|
static double |
getInitialColumn(BaseConfig cfg)
Returns the initial COLUMN value from the passed config
instance.
|
static Point |
getInitialLocation(BaseConfig cfg)
The returned value represents the location value assigned in
frame definition.
|
static NativePoint |
getInitialPixelLocation(BaseConfig cfg)
The returned value represents the location value assigned in
frame definition.
|
static double |
getInitialRow(BaseConfig cfg)
Returns the initial ROW value from the passed config
instance.
|
static int |
getInitialX(BaseConfig cfg)
Returns the initial X value from the passed config instance.
|
static int |
getInitialY(BaseConfig cfg)
Returns the initial Y value from the passed config instance.
|
static double |
getMaxHeightChars(WindowConfig cfg)
An accessor method to get the value of MAX-HEIGHT-CHARS attribute from
the supplied config.
|
static int |
getMaxHeightPixels(WindowConfig cfg)
An accessor method to get the value of MAX-HEIGHT-PIXELS attribute from
the supplied config.
|
static double |
getMaxWidthChars(WindowConfig cfg)
An accessor method to get the value of MAX-WIDTH-CHARS attribute from
the supplied config.
|
static int |
getMaxWidthPixels(WindowConfig cfg)
An accessor method to get the value of MAX-WIDTH-PIXELS attribute from
the supplied config.
|
static double |
getMinHeightChars(WindowConfig cfg)
An accessor method to get the value of MIN-HEIGHT-CHARS attribute from
the supplied config.
|
static int |
getMinHeightPixels(WindowConfig cfg)
An accessor method to get the value of MIN-HEIGHT-PIXELS attribute from
the supplied config.
|
static double |
getMinWidthChars(WindowConfig cfg)
An accessor method to get the value of MIN-WIDTH-CHARS attribute from
the supplied config.
|
static int |
getMinWidthPixels(WindowConfig cfg)
An accessor method to get the value of MIN-WIDTH-PIXELS attribute from
the supplied config.
|
static double |
getTo(BaseConfig cfg)
Get COLON attribute value from the passed configuration.
|
static boolean |
isLeftAligned(BaseConfig cfg)
Check if widget is left aligned.
|
static void |
setColon(BaseConfig cfg,
double colon)
Set COLON attribute value in the passed configuration.
|
static void |
setModified(WidgetConfig cfg,
boolean modified)
Set new value to the MODIFIED attribute in the passed
configuration.
|
static void |
setTo(BaseConfig cfg,
double value)
Sets the rightmost column of the widget in the passed configuration.
|
public static double getEffectiveColumn(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static double getEffectiveRow(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static Point getEffectiveLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.Point
reference.public static int getEffectiveX(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static int getEffectiveY(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static NativePoint getEffectivePixelLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.NativePoint
reference.public static double getInitialColumn(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static double getInitialRow(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static Point getInitialLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.Point
reference.public static int getInitialX(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static int getInitialY(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static NativePoint getInitialPixelLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.NativePoint
reference.public static double getAssignedColumn(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static double getAssignedRow(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static Point getAssignedLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.Point
reference.public static int getAssignedX(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static int getAssignedY(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.public static NativePoint getAssignedPixelLocation(BaseConfig cfg)
cfg
- A valid BaseConfig
reference.NativePoint
reference.public static boolean isLeftAligned(BaseConfig cfg)
true
if widget is left aligned.public static double getTo(BaseConfig cfg)
cfg
- A valid BaseConfig
instance.public static void setTo(BaseConfig cfg, double value)
cfg
- A valid BaseConfig
instance.value
- The 0-based column number.public static double getColon(BaseConfig cfg)
cfg
- A valid BaseConfig
instance.public static void setColon(BaseConfig cfg, double colon)
cfg
- A valid BaseConfig
instance.colon
- New value for the attribute.public static void setModified(WidgetConfig cfg, boolean modified)
cfg
- A valid BaseConfig
instance.modified
- New value for the attribute.public static double getMaxWidthChars(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static double getMaxHeightChars(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static int getMaxWidthPixels(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static int getMaxHeightPixels(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static double getMinWidthChars(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static double getMinHeightChars(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static int getMinWidthPixels(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static int getMinHeightPixels(WindowConfig cfg)
cfg
- A reference to WindowConfig
.public static double getEffectiveVirtualWidth(PaneConfig cfg)
cfg
- A reference to PaneConfig
.public static double getEffectiveVirtualHeight(PaneConfig cfg)
cfg
- A reference to PaneConfig
.public static int getEffectiveVirtualWidthPixels(PaneConfig cfg)
cfg
- A reference to PaneConfig
.public static int getEffectiveVirtualHeightPixels(PaneConfig cfg)
cfg
- A reference to PaneConfig
.