MetaDone
metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout:

List of all members.

Classes

class  PlaceInfo

Public Member Functions

 InImageLayout (boolean keepRatio)
boolean getKeepRatio ()
void layout (Widget widget)
boolean requiresJustification (Widget widget)
void justify (Widget widget)

Static Public Member Functions

static void addBackground (Widget widget, Widget bg)

Private Attributes

final boolean keepRatio

Static Private Attributes

static final Object BACKGROUND_CONSTRAINT = new Object()

Detailed Description

Places elements over an image (background).

Author:
kma
See also:
PlaceInfo
addBackground(Widget, Widget)

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.InImageLayout ( boolean  keepRatio)

Initializes this layout

Parameters:
keepRatioWhether to keep the ratio of the background image

References metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.keepRatio.


Member Function Documentation

static void metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.addBackground ( Widget  widget,
Widget  bg 
) [static]

Adds a background to a widget.

Parameters:
widgetThe widget
bgThe background to add
Exceptions:
NullPointerExceptionwhen widget or bg is null

References metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.BACKGROUND_CONSTRAINT.

Referenced by metadone.client.grasyla2.visuallibrary.widgets.W_SVG.W_SVG().

boolean metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.getKeepRatio ( )
void metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.justify ( Widget  widget)
boolean metadone.client.grasyla2.visuallibrary.widgets.layouts.InImageLayout.requiresJustification ( Widget  widget)

Member Data Documentation


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