public class HorizontalAxisLayoutStrategy extends AxisModelLayoutStrategy
Constructor and Description |
---|
HorizontalAxisLayoutStrategy(AxisModel owner)
Creates a new instance of the
HorizontalAxisLayoutStrategy class. |
Modifier and Type | Method and Description |
---|---|
void |
applyLayoutRounding()
Applies layout rounding.
|
void |
arrange(RadRect availableRect)
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.
|
void |
arrangeLabelRotate(AxisLabelModel label,
RadRect rect) |
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 HorizontalAxisLayoutStrategy(AxisModel owner)
HorizontalAxisLayoutStrategy
class.owner
- The owner of this layout algorithm.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 availableRect)
AxisModelLayoutStrategy
arrange
in class AxisModelLayoutStrategy
availableRect
- 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.public void arrangeLabelRotate(AxisLabelModel label, RadRect rect)