Class HorizontalAxisLayoutStrategy
Base layout strategy class for horizontal layout of axes
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class HorizontalAxisLayoutStrategy extends layoutManagers.AxisLayoutStrategyBase
Constructors
HorizontalAxisLayoutStrategy()
Declaration
public HorizontalAxisLayoutStrategy()
Methods
addAxis(IAxis axis)
Adds axis into this IAxisLayoutStrategy instance
Declaration
public void addAxis(IAxis axis)
Parameters
| Type | Name | Description |
|---|---|---|
| IAxis | axis |
Overrides
getRequiredAxisSize(AxisLayoutState axisLayoutState)
Helper method which measures required size of axis for this horizontal layout strategy
Declaration
protected static int getRequiredAxisSize(AxisLayoutState axisLayoutState)
Parameters
| Type | Name | Description |
|---|---|---|
| AxisLayoutState | axisLayoutState | The layout state of IAxis |
Returns
| Type | Description |
|---|---|
| int | The desired size in pixels |
layoutFromBottomToTop(int left, int bottom, int right, List<IAxis> axes)
Helper method for layout axes horizontally from bottom to top
Declaration
protected static void layoutFromBottomToTop(int left, int bottom, int right, List<IAxis> axes)
Parameters
| Type | Name | Description |
|---|---|---|
| int | left | The left bounds for this layout strategy |
| int | bottom | The bottom bounds for this layout strategy |
| int | right | The right bounds for this layout strategy |
| List<IAxis> | axes | The axes to perform layout on |
layoutFromTopToBottom(int left, int top, int right, List<IAxis> axes)
Helper method for layout axes horizontally from top to bottom
Declaration
protected static void layoutFromTopToBottom(int left, int top, int right, List<IAxis> axes)
Parameters
| Type | Name | Description |
|---|---|---|
| int | left | The left bounds for this layout strategy |
| int | top | The top bounds for this layout strategy |
| int | right | The right bounds for this layout strategy |
| List<IAxis> | axes | The axes to perform layout on |