lt.monarch.chart.view
Interface ExpandableDecoration

All Known Implementing Classes:
AbstractBorderDecorator, AbstractLegend, ColorScaleLegend, DecoratedView, LabeledChart, Legend, LineBorderDecorator, SimpleChart

public interface ExpandableDecoration

Size of view implementing this interface can be expanded by DecoratedView instance inside which the view persists.
Usually DecoratedView keeps side views (decorations) at their preferred sizes. If view implements ExpandableDecoration interface, returns true from the isHorizontallyExpandable method and is added to DecoratedView's top or bottom, its width will be expanded to maximum space available. The same with height of view - if true is returned from the isVerticallyExpandable method and view is added to DecoratedView's left or right, its height will be expanded to maximum space available.
Intended to be implemented by classes already implementing lt.monarch.chart.View interface.


Method Summary
Modifier and Type Method and Description
 boolean isHorizontallyExpandable()
          Should return true if width of this view, when persisting in top or bottom position inside DecoratedView, should be expanded to maximum space available.
 boolean isVerticallyExpandable()
          Should return true if height of this view, when persisting in left or right position inside DecoratedView, should be expanded to maximum space available.
 

Method Detail

isHorizontallyExpandable

boolean isHorizontallyExpandable()
Should return true if width of this view, when persisting in top or bottom position inside DecoratedView, should be expanded to maximum space available.

Returns:
true if view's width should be expanded to maximum, false other wise.

isVerticallyExpandable

boolean isVerticallyExpandable()
Should return true if height of this view, when persisting in left or right position inside DecoratedView, should be expanded to maximum space available.

Returns:
true if view's height should be expanded to maximum, false other wise.