public class DefaultLayoutManager extends LayoutManagerBase
SciChartSurface
Modifier and Type | Class and Description |
---|---|
static class |
DefaultLayoutManager.Builder
A helper class which helps to build
DefaultLayoutManager instance |
parentSurface, services
Constructor and Description |
---|
DefaultLayoutManager(IAxisLayoutStrategy leftOuterAxesLayoutStrategy,
IAxisLayoutStrategy rightOuterAxesLayoutStrategy,
IAxisLayoutStrategy topOuterAxesLayoutStrategy,
IAxisLayoutStrategy bottomOuterAxesLayoutStrategy,
IAxisLayoutStrategy leftInnerAxesLayoutStrategy,
IAxisLayoutStrategy rightInnerAxesLayoutStrategy,
IAxisLayoutStrategy topInnerAxesLayoutStrategy,
IAxisLayoutStrategy bottomInnerLayoutStrategy)
Creates a new instance of
DefaultLayoutManager class |
Modifier and Type | Method and Description |
---|---|
void |
attachAxis(IAxis axis,
boolean isXAxis)
Attaches axis to parent
SciChartSurface via current LayoutManager |
void |
detachAxis(IAxis axis)
Detaches axis from parent
SciChartSurface via current LayoutManager |
void |
onAxisPlacementChanged(IAxis axis,
AxisAlignment oldAxisAlignment,
boolean oldIsCenterAxis,
AxisAlignment newAxisAlignment,
boolean newIsCenterAxis)
Called when axis is about to change its placement
|
com.scichart.core.common.Size |
onLayoutChart(int width,
int height)
Called during render pass of chart before rendering and should update positions of chart parts
|
attachTo, detach, isAttached, layoutChartCenter, notifyOnAxisAlignmentChanged
public final IAxisLayoutStrategy leftOuterAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy rightOuterAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy topOuterAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy bottomOuterAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy leftInnerAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy rightInnerAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy topInnerAxesLayoutStrategy
IRenderableSeriesArea
public final IAxisLayoutStrategy bottomInnerLayoutStrategy
IRenderableSeriesArea
public DefaultLayoutManager(IAxisLayoutStrategy leftOuterAxesLayoutStrategy, IAxisLayoutStrategy rightOuterAxesLayoutStrategy, IAxisLayoutStrategy topOuterAxesLayoutStrategy, IAxisLayoutStrategy bottomOuterAxesLayoutStrategy, IAxisLayoutStrategy leftInnerAxesLayoutStrategy, IAxisLayoutStrategy rightInnerAxesLayoutStrategy, IAxisLayoutStrategy topInnerAxesLayoutStrategy, IAxisLayoutStrategy bottomInnerLayoutStrategy)
DefaultLayoutManager
classleftOuterAxesLayoutStrategy
- Layout strategy for layout of left aligned axis outside IRenderableSeriesArea
rightOuterAxesLayoutStrategy
- Layout strategy for layout of right aligned axis outside IRenderableSeriesArea
topOuterAxesLayoutStrategy
- Layout strategy for layout of top aligned axis outside IRenderableSeriesArea
bottomOuterAxesLayoutStrategy
- Layout strategy for layout of bottom aligned axis outside IRenderableSeriesArea
leftInnerAxesLayoutStrategy
- Layout strategy for layout of left aligned axis inside IRenderableSeriesArea
rightInnerAxesLayoutStrategy
- Layout strategy for layout of right aligned axis inside IRenderableSeriesArea
topInnerAxesLayoutStrategy
- Layout strategy for layout of top aligned axis inside IRenderableSeriesArea
bottomInnerLayoutStrategy
- Layout strategy for layout of bottom aligned axis inside IRenderableSeriesArea
public void attachAxis(IAxis axis, boolean isXAxis)
SciChartSurface
via current LayoutManageraxis
- The IAxis
to attachisXAxis
- The value indicating whether the axis is XAxis or YAxispublic void detachAxis(IAxis axis)
SciChartSurface
via current LayoutManageraxis
- The IAxis
to detachpublic void onAxisPlacementChanged(IAxis axis, AxisAlignment oldAxisAlignment, boolean oldIsCenterAxis, AxisAlignment newAxisAlignment, boolean newIsCenterAxis)
axis
- axis which changes its positionoldAxisAlignment
- old axis alignment valueoldIsCenterAxis
- old isCenterAxis valuenewAxisAlignment
- new axis alignment valuenewIsCenterAxis
- new isCenterAxis valuepublic com.scichart.core.common.Size onLayoutChart(int width, int height)
width
- available viewport widthheight
- available viewport height