< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/chart/StackedAreaChart.java
Print this page
*** 312,322 ****
removeDataItemFromDisplay(series, item);
}
//Note: better animation here, point should move from old position to new position at center point between prev and next symbols
}
! /** @inheritDoc */
@Override protected void dataItemChanged(Data<X, Y> item) {
}
@Override protected void seriesChanged(ListChangeListener.Change<? extends Series> c) {
// Update style classes for all series lines and symbols
--- 312,322 ----
removeDataItemFromDisplay(series, item);
}
//Note: better animation here, point should move from old position to new position at center point between prev and next symbols
}
! /** {@inheritDoc} */
@Override protected void dataItemChanged(Data<X, Y> item) {
}
@Override protected void seriesChanged(ListChangeListener.Change<? extends Series> c) {
// Update style classes for all series lines and symbols
*** 394,404 ****
for (Data<X,Y> d:series.getData()) getPlotChildren().remove(d.getNode());
removeSeriesFromDisplay(series);
}
}
! /** @inheritDoc */
@Override protected void updateAxisRange() {
// This override is necessary to update axis range based on cumulative Y value for the
// Y axis instead of the normal way where max value in the data range is used.
final Axis<X> xa = getXAxis();
final Axis<Y> ya = getYAxis();
--- 394,404 ----
for (Data<X,Y> d:series.getData()) getPlotChildren().remove(d.getNode());
removeSeriesFromDisplay(series);
}
}
! /** {@inheritDoc} */
@Override protected void updateAxisRange() {
// This override is necessary to update axis range based on cumulative Y value for the
// Y axis instead of the normal way where max value in the data range is used.
final Axis<X> xa = getXAxis();
final Axis<Y> ya = getYAxis();
*** 495,505 ****
}
}
! /** @inheritDoc */
@Override protected void layoutPlotChildren() {
ArrayList<DataPointInfo<X, Y>> currentSeriesData = new ArrayList<>();
// AggregateData hold the data points of both the current and the previous series.
// The goal is to collect all the data, sort it and iterate.
ArrayList<DataPointInfo<X, Y>> aggregateData = new ArrayList<>();
--- 495,505 ----
}
}
! /** {@inheritDoc} */
@Override protected void layoutPlotChildren() {
ArrayList<DataPointInfo<X, Y>> currentSeriesData = new ArrayList<>();
// AggregateData hold the data points of both the current and the previous series.
// The goal is to collect all the data, sort it and iterate.
ArrayList<DataPointInfo<X, Y>> aggregateData = new ArrayList<>();
< prev index next >