From a239943b13d509c5ea60384da42ae315692efcf2 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 17 Jul 2007 13:22:38 +0000 Subject: INTEGRATION: CWS presfixes12 (1.6.82); FILE MERGED 2007/04/17 14:32:37 thb 1.6.82.1: #i37778# Java canvas also needs clear() method --- canvas/source/java/CanvasBase.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'canvas/source/java') diff --git a/canvas/source/java/CanvasBase.java b/canvas/source/java/CanvasBase.java index 59da1ea40048..77180505ba1b 100644 --- a/canvas/source/java/CanvasBase.java +++ b/canvas/source/java/CanvasBase.java @@ -4,9 +4,9 @@ * * $RCSfile: CanvasBase.java,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2005-09-07 23:08:28 $ + * last change: $Author: obo $ $Date: 2007-07-17 14:22:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -65,6 +65,13 @@ public abstract class CanvasBase // XCanvas interface // ================= // + public synchronized void clear() + { + Graphics2D graphics = getGraphics(); + // TODO(F3): retrieve true dimensions of the Graphics + graphics.clearRect(0,0,1000,1000); + } + public synchronized void drawPoint( RealPoint2D aPoint, ViewState viewState, RenderState renderState ) throws com.sun.star.lang.IllegalArgumentException -- cgit