MetaDone
metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint Class Reference
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint:

List of all members.

Public Member Functions

 WidgetStackingConstraint (boolean stretched)
 WidgetStackingConstraint (boolean stretched, double ratio)
boolean isStretched ()
double getRatio ()
boolean isConsideredForInsets (Widget widget)

Static Public Member Functions

static WidgetStackingConstraint getChildConstraint (Widget parent, Widget child)

Static Public Attributes

static final
WidgetStackingConstraint 
NO_CONSTRAINT = new WidgetStackingConstraint(false)
static final
WidgetStackingConstraint 
STRETCHED = new WidgetStackingConstraint(true)

Private Attributes

final boolean stretched
final double ratio

Detailed Description

Immutable constraint for this layout.

These constraints may be applied to elements in the layout.

See also:
Widget.setChildConstraint(Widget, Object)

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.WidgetStackingConstraint ( boolean  stretched)

Initializes this constraint.

Parameters:
stretchedWhether the element is stretched

References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.stretched.

metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.WidgetStackingConstraint ( boolean  stretched,
double  ratio 
)

Initializes this constraint.

Parameters:
stretchedWhether the element is stretched
ratioThe ratio (width/height) of the element

References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.ratio, and metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.stretched.


Member Function Documentation

double metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.getRatio ( )
boolean metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.isConsideredForInsets ( Widget  widget)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations