@Override public void setLabels(JointType selectedType) { velocitySeries.setKey(selectedType.getName() + " velocity"); accelerationSeries.setKey(selectedType.getName() + " acceleration"); velocityCheckbox.setText("Velocity " + selectedType.getName()); accelerationCheckbox.setText("Acceleration " + selectedType.getName()); }
public void drawChart(List<Frame> data, List<JointType> selectedTypes, boolean seatedMode) { String chartTitle = ""; for (JointType selectedType : selectedTypes) { ModelSeriesComponent sc = new ModelSeriesComponent(dataset); add(sc); sc.setLabels(selectedType); drawModelChart(sc, data, selectedType, seatedMode); chartTitle += selectedType.getName() + " "; } chart.setTitle(chartTitle); }
@Override public void drawChart(List<Frame> data, List<JointType> types, boolean seatedMode) { String chartTitle = ""; for (JointType type : types) { MotionSeriesComponent sc = new MotionSeriesComponent(dataset); add(sc); sc.setLabels(type); // drawing chart drawMotionChart(sc, data, type); chartTitle += type.getName() + " "; } chart.setTitle(chartTitle); }