com.miginfocom.calendar.layout
Interface ActivityLayoutBroker

All Known Implementing Classes:
DefaultDateArea, ThemeDateArea

public interface ActivityLayoutBroker

A interface to implement if one wants to specifically handle which ActivityLayouts should be used to layout what ActivityViews. Normally this is handled by the DefaultDateArea itself since it implements the interface as well.

See Also:
DefaultDateArea.setActivityLayoutBroker(ActivityLayoutBroker).

Method Summary
 TimeSpanList[] splitByLayout(TimeSpanList actViews, java.util.List layouts)
          Divides a number of ActivityViews into arrays that corresponds to the ActivityLayouts sent in.
 

Method Detail

splitByLayout

TimeSpanList[] splitByLayout(TimeSpanList actViews,
                             java.util.List layouts)
Divides a number of ActivityViews into arrays that corresponds to the ActivityLayouts sent in.

Parameters:
actViews - A list with a number of ActivityViews to examine and decide which of the layouts should be responsible for laying out it's bounds.
layouts - A number of (at least one) ActivityLayouts.
Returns:
An array of the same length as layouts's size. All activity views in actViews will/must end up in exactly one of these lists. Never null.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.