summaryrefslogtreecommitdiff
path: root/canvas/source/java
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 13:22:38 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 13:22:38 +0000
commita239943b13d509c5ea60384da42ae315692efcf2 (patch)
tree98034f2591545bd7d3c0795ca43e42fdc73e84e3 /canvas/source/java
parent76960349c96acf08fa0e8d8a892dd25dd14d484e (diff)
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
Diffstat (limited to 'canvas/source/java')
-rw-r--r--canvas/source/java/CanvasBase.java11
1 files changed, 9 insertions, 2 deletions
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