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