use of net.parostroj.timetable.model.Scale in project grafikon by jub77.
the class NewModelPM method create.
private void create() {
final Template templateInstance = template.getValue();
final Scale scaleValue = scale.getValue();
final double timeScaleValue = timeScale.getBigDecimal().doubleValue();
this.createTask = new Callable<TrainDiagram>() {
@Override
public TrainDiagram call() throws LSException {
TrainDiagram diagram = templateLoader.loadTemplate(templateInstance);
diagram.setAttribute(TrainDiagram.ATTR_SCALE, scaleValue);
diagram.setAttribute(TrainDiagram.ATTR_TIME_SCALE, timeScaleValue);
return diagram;
}
};
}
Aggregations