-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.chart.dimensions.HorizontalDimensions
public final class MutableHorizontalDimensions implements HorizontalDimensions
An implementation of HorizontalDimensions whose every property is mutable.
-
-
Field Summary
Fields Modifier and Type Field Description private FloatxSpacingprivate FloatscalableStartPaddingprivate FloatscalableEndPaddingprivate FloatunscalableStartPaddingprivate FloatunscalableEndPaddingprivate final FloatstartPaddingprivate final FloatendPaddingprivate final Floatpadding
-
Method Summary
Modifier and Type Method Description FloatgetXSpacing()The distance between neighboring major entries (in pixels). UnitsetXSpacing(Float xSpacing)The distance between neighboring major entries (in pixels). FloatgetScalableStartPadding()The scalable part of the distance between the start of the content area and the first entry (in pixels). UnitsetScalableStartPadding(Float scalableStartPadding)The scalable part of the distance between the start of the content area and the first entry (in pixels). FloatgetScalableEndPadding()The scalable part of the distance between the end of the content area and the last entry (in pixels). UnitsetScalableEndPadding(Float scalableEndPadding)The scalable part of the distance between the end of the content area and the last entry (in pixels). FloatgetUnscalableStartPadding()The unscalable part of the distance between the start of the content area and the first entry (in pixels). UnitsetUnscalableStartPadding(Float unscalableStartPadding)The unscalable part of the distance between the start of the content area and the first entry (in pixels). FloatgetUnscalableEndPadding()The unscalable part of the distance between the end of the content area and the last entry (in pixels). UnitsetUnscalableEndPadding(Float unscalableEndPadding)The unscalable part of the distance between the end of the content area and the last entry (in pixels). FloatgetStartPadding()FloatgetEndPadding()FloatgetPadding()final MutableHorizontalDimensionsset(Float xSpacing, Float scalableStartPadding, Float scalableEndPadding, Float unscalableStartPadding, Float unscalableEndPadding)Updates the stored values. final MutableHorizontalDimensionsset(Float xSpacing, Float startPadding, Float endPadding)Updates the stored values. final Unitclear()Clears the stored values. -
-
Method Detail
-
getXSpacing
Float getXSpacing()
The distance between neighboring major entries (in pixels). This can be scaled.
-
setXSpacing
Unit setXSpacing(Float xSpacing)
The distance between neighboring major entries (in pixels). This can be scaled.
-
getScalableStartPadding
Float getScalableStartPadding()
The scalable part of the distance between the start of the content area and the first entry (in pixels).
-
setScalableStartPadding
Unit setScalableStartPadding(Float scalableStartPadding)
The scalable part of the distance between the start of the content area and the first entry (in pixels).
-
getScalableEndPadding
Float getScalableEndPadding()
The scalable part of the distance between the end of the content area and the last entry (in pixels).
-
setScalableEndPadding
Unit setScalableEndPadding(Float scalableEndPadding)
The scalable part of the distance between the end of the content area and the last entry (in pixels).
-
getUnscalableStartPadding
Float getUnscalableStartPadding()
The unscalable part of the distance between the start of the content area and the first entry (in pixels).
-
setUnscalableStartPadding
Unit setUnscalableStartPadding(Float unscalableStartPadding)
The unscalable part of the distance between the start of the content area and the first entry (in pixels).
-
getUnscalableEndPadding
Float getUnscalableEndPadding()
The unscalable part of the distance between the end of the content area and the last entry (in pixels).
-
setUnscalableEndPadding
Unit setUnscalableEndPadding(Float unscalableEndPadding)
The unscalable part of the distance between the end of the content area and the last entry (in pixels).
-
getStartPadding
Float getStartPadding()
-
getEndPadding
Float getEndPadding()
-
getPadding
Float getPadding()
-
set
final MutableHorizontalDimensions set(Float xSpacing, Float scalableStartPadding, Float scalableEndPadding, Float unscalableStartPadding, Float unscalableEndPadding)
Updates the stored values.
-
set
@Deprecated(message = `startPadding` and `endPadding` have been replaced by `scalableStartPadding`, `scalableEndPadding`, `unscalableStartPadding`, and `unscalableEndPadding`. Use the overload with these parameters instead., replaceWith = @ReplaceWith(imports = {}, expression = set(xSpacing, startPadding, endPadding, 0f, 0f))) final MutableHorizontalDimensions set(Float xSpacing, Float startPadding, Float endPadding)
Updates the stored values.
-
-
-
-