Commit 98e83e07 authored by Martin Eisenmann's avatar Martin Eisenmann

Updated paint of canvas

Issue-Ref: 4016
Issue-Url: https://af3-developer.fortiss.org/issues/4016Signed-off-by: Martin Eisenmann's avatarEisenmann <eisenmann@fortiss.org>
parent 0bed3b81
AbstractObjectToDrawFX.java 0d96c75359db616899d987a663c2c1030b866d2e RED
LabelToDrawFX.java 97a8c1a622ca44aec0a269913c693c406f7f2cb6 RED
LineToDrawFX.java 4dcf399bda2ae29d5c28705131fabbcdb1f17513 RED
ScheduleModelElementToDrawFX.java 71e84e33e09710514bbb14fb04beff591237f6da RED
ScheduleViewLayoutDataFX.java fd79d6416232968141bc5856ce8f1e27d2d8cf63 RED
ScheduleViewModelFX.java f1f5bd4b263b1a867e1def3ff8393ec7fe5e8cda RED
......@@ -102,10 +102,10 @@ public class ScheduleViewCanvasFX extends Canvas {
}
/**
*
* @param gc
* Paint method
*/
public void onPaint(GraphicsContext gc) {
public void onPaint() {
GraphicsContext gc = this.getGraphicsContext2D();
if(scheduleModel.getSchedules().isEmpty()) {
return;
}
......
......@@ -201,6 +201,13 @@ public class ScheduleViewCompositeFX extends CompositeFXControllerBase<Node, Nod
viewer.setDisplayPeriodsSchedules(displayPeriodsSchedulableEntitiesCheckBox.isPressed());
}
/**
* Listener for {@link #scale}
*/
public void onDragSlider() {
viewer.setScalingUserX(scale.getMinorTickCount());
}
/** {@inheritDoc} */
@Override
public String getFXMLLocation() {
......
......@@ -242,6 +242,6 @@ public class ScheduleViewGraphModelFX {
*/
public void refresh() {
graphElementListIsUpToDate = false;
// canvas.redraw();
canvas.onPaint();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment