public class VerticalAxisLayoutStrategy extends AxisModelLayoutStrategy
AxisModel
.Constructor and Description |
---|
VerticalAxisLayoutStrategy(AxisModel owner)
Creates an instance of the
VerticalAxisLayoutStrategy class. |
Modifier and Type | Method and Description |
---|---|
void |
applyLayoutRounding()
Applies layout rounding.
|
void |
arrange(RadRect rect)
Arranges the the axis components in the specified layout slot.
|
void |
arrangeLabelMultiline(AxisLabelModel label,
RadRect rect)
Arranges the axis labels on multiple lines.
|
void |
arrangeLabelNone(AxisLabelModel label,
RadRect rect)
Arranges the axis labels as if there is room for each one even if they are too big.
|
AxisLastLabelVisibility |
getDefaultLastLabelVisibility()
Gets the default
AxisLastLabelVisibility . |
RadThickness |
getDesiredMargin(RadSize availableSize)
Gets the desired margin base on the provided available size.
|
RadSize |
getDesiredSize(RadSize availableSize)
Gets the axis desired size based on the available size.
|
ValueRange<Double> |
getVisibleRange(RadSize availableSize)
Gets the currently visible axis range within the [0, 1] order.
|
double |
getZoom()
Gets the zoom factor.
|
void |
updateTicksVisibility(RadRect clipRect)
Updates the ticks visibility taking into account the provided clip rectangle.
|
owner
public VerticalAxisLayoutStrategy(AxisModel owner)
VerticalAxisLayoutStrategy
class.owner
- The layout algorithm owner.public AxisLastLabelVisibility getDefaultLastLabelVisibility()
AxisModelLayoutStrategy
AxisLastLabelVisibility
.getDefaultLastLabelVisibility
in class AxisModelLayoutStrategy
public double getZoom()
AxisModelLayoutStrategy
getZoom
in class AxisModelLayoutStrategy
public void applyLayoutRounding()
AxisModelLayoutStrategy
applyLayoutRounding
in class AxisModelLayoutStrategy
public void updateTicksVisibility(RadRect clipRect)
AxisModelLayoutStrategy
updateTicksVisibility
in class AxisModelLayoutStrategy
clipRect
- The clip rectangle.public void arrange(RadRect rect)
AxisModelLayoutStrategy
arrange
in class AxisModelLayoutStrategy
rect
- The axis layout slot.public ValueRange<Double> getVisibleRange(RadSize availableSize)
AxisModelLayoutStrategy
getVisibleRange
in class AxisModelLayoutStrategy
availableSize
- The available axis size.public RadThickness getDesiredMargin(RadSize availableSize)
AxisModelLayoutStrategy
getDesiredMargin
in class AxisModelLayoutStrategy
availableSize
- The available axis size.public RadSize getDesiredSize(RadSize availableSize)
AxisModelLayoutStrategy
getDesiredSize
in class AxisModelLayoutStrategy
availableSize
- The available axis size.public void arrangeLabelMultiline(AxisLabelModel label, RadRect rect)
AxisModelLayoutStrategy
arrangeLabelMultiline
in class AxisModelLayoutStrategy
label
- The label to arrange.rect
- The axis layout slot.public void arrangeLabelNone(AxisLabelModel label, RadRect rect)
AxisModelLayoutStrategy
arrangeLabelNone
in class AxisModelLayoutStrategy
label
- The label to arrange.rect
- The axis layout slot.