Interface IAxisLayoutStrategy
Defines interface for layout strategy which determines how axes should be placed in com.scichart.charting.visuals.SciChartSurface
Namespace:
Assembly: .dll
Syntax
public interface IAxisLayoutStrategy
Methods
addAxis(IAxis axis)
Adds axis into this IAxisLayoutStrategy instance
Declaration
public abstract void addAxis(IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IAxis | axis | The axis to add |
layoutAxes(int left, int top, int right, int bottom)
Perform layout on axes which use this layout strategy
Declaration
public abstract void layoutAxes(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
int | left | left position of area relative to parent com.scichart.charting.visuals.SciChartSurface |
int | top | top position of area relative to parent com.scichart.charting.visuals.SciChartSurface |
int | right | right position of area relative to parent com.scichart.charting.visuals.SciChartSurface |
int | bottom | bottom position of area relative to parent com.scichart.charting.visuals.SciChartSurface |
measureAxes(int availableWidth, int availableHeight, layoutManagers.ChartLayoutState chartLayoutState)
Measures required amount of space to place axes which are currently attached to this IAxisLayoutStrategy instance
Declaration
public abstract void measureAxes(int availableWidth, int availableHeight, layoutManagers.ChartLayoutState chartLayoutState)
Parameters
Type | Name | Description |
---|---|---|
int | availableWidth | The available width in pixels |
int | availableHeight | The available height in pixels |
layoutManagers.ChartLayoutState | chartLayoutState | The ChartLayoutState state for this layout pass which strategy should modify to set desired size |
removeAxis(IAxis axis)
Removes axis from this IAxisLayoutStrategy instance
Declaration
public abstract void removeAxis(IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IAxis | axis | The axis to remove |