Search in sources :

Example 11 with Data

use of javafx.scene.chart.PieChart.Data in project VocabHunter by VocabHunter.

the class ProgressController method buildChartProgress.

private void buildChartProgress(final ProgressModel model) {
    Data done = slice(PROGRESS_SLICE_MARKED, model.markedProperty());
    Data remaining = slice(PROGRESS_SLICE_UNMARKED, model.unseenUnfilteredProperty());
    chartProgress.setData(FXCollections.observableArrayList(done, remaining));
    bindValueLabel(labelValueDone, model.markedProperty());
    bindPercentLabel(labelPercentDone, model.markedPercentVisibleProperty());
    bindValueLabel(labelValueRemaining, model.unseenUnfilteredProperty());
    bindPercentLabel(labelPercentRemaining, model.unseenUnfilteredPercentVisibleProperty());
}
Also used : Data(javafx.scene.chart.PieChart.Data)

Aggregations

Data (javafx.scene.chart.PieChart.Data)11 Node (javafx.scene.Node)5 PieChart (javafx.scene.chart.PieChart)5 ContextMenu (javafx.scene.control.ContextMenu)2 MenuItem (javafx.scene.control.MenuItem)2 Region (javafx.scene.layout.Region)2 LibraryAnswerAction (com.cas.sim.tis.action.LibraryAnswerAction)1 AnswerState (com.cas.sim.tis.consts.AnswerState)1 Question (com.cas.sim.tis.entity.Question)1 AttachedTextValuePieChart (com.kyj.fx.voeditor.visual.component.chart.AttachedTextValuePieChart)1 GargoyleException (com.kyj.fx.voeditor.visual.exceptions.GargoyleException)1 FXMLController (com.kyj.fx.voeditor.visual.framework.annotation.FXMLController)1 FxUtil (com.kyj.fx.voeditor.visual.util.FxUtil)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 LinkedHashMap (java.util.LinkedHashMap)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1