-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.chart.values.ChartValues
public final class MutableChartValues implements ChartValues
An implementation of ChartValues whose every property is mutable.
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatminXprivate final FloatmaxXprivate final FloatxStepprivate final FloatminYprivate final FloatmaxYprivate ChartEntryModelchartEntryModelprivate final BooleanhasValuesSetprivate final FloatstepXprivate final FloatlengthXprivate final FloatlengthY
-
Constructor Summary
Constructors Constructor Description MutableChartValues()
-
Method Summary
Modifier and Type Method Description FloatgetMinX()FloatgetMaxX()FloatgetXStep()FloatgetMinY()FloatgetMaxY()ChartEntryModelgetChartEntryModel()The source of the associated Chart’s entries. UnitsetChartEntryModel(ChartEntryModel chartEntryModel)The source of the associated Chart’s entries. final BooleangetHasValuesSet()FloatgetStepX()FloatgetLengthX()FloatgetLengthY()final MutableChartValuestryUpdate(Float minX, Float maxX, Float minY, Float maxY, Float xStep, ChartEntryModel chartEntryModel)Attempts to update the stored values to the provided values. final Unitreset()Sets minX, maxX, minY, and maxY to 0. -
-
Method Detail
-
getChartEntryModel
ChartEntryModel getChartEntryModel()
The source of the associated Chart’s entries. The ChartEntryModel defines the default values for minX, maxX, minY, and maxY.
-
setChartEntryModel
Unit setChartEntryModel(ChartEntryModel chartEntryModel)
The source of the associated Chart’s entries. The ChartEntryModel defines the default values for minX, maxX, minY, and maxY.
-
getHasValuesSet
final Boolean getHasValuesSet()
-
getLengthX
Float getLengthX()
-
getLengthY
Float getLengthY()
-
tryUpdate
final MutableChartValues tryUpdate(Float minX, Float maxX, Float minY, Float maxY, Float xStep, ChartEntryModel chartEntryModel)
Attempts to update the stored values to the provided values. MutableChartValues.minX and MutableChartValues.minY can be updated to a lower value. MutableChartValues.maxX and MutableChartValues.maxY can be updated to a higher value. MutableChartValues.chartEntryModel and MutableChartValues.xStep are always updated.
-
-
-
-