* Bug #12022 fixed - ftuneq had a bad example.
+* Bug #12028 fixed - The pair drawlater/drawnow did not work as expected.
+
* Bug #12033 fixed - assert_checkalmostequal was failing with two %inf values.
* Bug #12043 fixed - Fix a typo in the ATOMS module help pages.
} else if (property == RenderingModeProperty.ANTIALIASING) {
setAntialiasing((Integer) value);
} else if (property == RenderingModeProperty.IMMEDIATEDRAWING) {
- setImmediateDrawing((Boolean) value);
+ return setImmediateDrawing((Boolean) value);
} else if (property == FigureProperty.BACKGROUND) {
setBackground((Integer) value);
} else if (property == EventHandlerProperty.EVENTHANDLER) {
/**
* @param immediateDrawing the immediateDrawing to set
*/
- public void setImmediateDrawing(Boolean immediateDrawing) {
- renderingMode.immediateDrawing = immediateDrawing;
+ public UpdateStatus setImmediateDrawing(Boolean immediateDrawing) {
+ if (renderingMode.immediateDrawing != immediateDrawing) {
+ renderingMode.immediateDrawing = immediateDrawing;
+ return UpdateStatus.Success;
+ }
+
+ return UpdateStatus.NoChange;
}
/**
@Override
public void visit(Arc arc) {
- if (arc.isValid() && arc.getVisible()) {
+ if (arc.isValid() && arc.getVisible()) {
axesDrawer.enableClipping(currentAxes, arc.getClipProperty());
try {
contouredObjectDrawer.draw(arc, currentAxes.getViewAsEnum() == ViewType.VIEW_2D);
@Override
public void visit(Figure figure) {
- synchronized (figure) {
- /** Set the current {@see ColorMap}. */
- colorMap = figure.getColorMap();
-
- drawingTools.clear(ColorFactory.createColor(colorMap, figure.getBackground()));
- drawingTools.clearDepthBuffer();
- if (figure.getVisible() && figure.getImmediateDrawing()) {
- askAcceptVisitor(figure.getChildren());
- }
+ synchronized (figure) {
+ /** Set the current {@see ColorMap}. */
+ colorMap = figure.getColorMap();
+ drawingTools.clear(ColorFactory.createColor(colorMap, figure.getBackground()));
+ drawingTools.clearDepthBuffer();
+ if (figure.getVisible() && figure.getImmediateDrawing()) {
+ askAcceptVisitor(figure.getChildren());
+ }
}
}
}
if (isImmediateDrawing(id)) {
- canvas.redraw();
+ if (GraphicObjectProperties.__GO_IMMEDIATE_DRAWING__ == property) {
+ canvas.redrawAndWait();
+ } else {
+ canvas.redraw();
+ }
}
}
if (GraphicObjectProperties.__GO_IMMEDIATE_DRAWING__ == property && !isImmediateDrawing(id)) {
- canvas.waitImage();
+ canvas.waitImage();
}
} catch (OutOfMemoryException e) {