de.jaret.util.ui.timebars.model
Interface IRowHeightStrategy


public interface IRowHeightStrategy

Interface describing a strategy for calculating the height/width of a row.

Version:
$Id: IRowHeightStrategy.java 532 2007-08-14 21:36:42Z olk $
Author:
kliem

Method Summary
 int calculateRowHeight(TimeBarViewerDelegate delegate, ITimeBarViewState timeBarViewState, TimeBarRow row)
          Calculate the height/width of a row.
 boolean overrideDefault()
          If the strategy should override manually set heights/widths thhis should return true.
 

Method Detail

overrideDefault

boolean overrideDefault()
If the strategy should override manually set heights/widths thhis should return true.

Returns:
true if any manual set heights/widths should be overriden by the strategy

calculateRowHeight

int calculateRowHeight(TimeBarViewerDelegate delegate,
                       ITimeBarViewState timeBarViewState,
                       TimeBarRow row)
Calculate the height/width of a row.

Parameters:
delegate - the time bar viewers delegate
timeBarViewState - the viewstate
row - the row in question
Returns:
the calculated height


Copyright © 2012. All Rights Reserved.