summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-05-03 19:42:31 +0000
committerFelipe Heidrich <fheidric>2006-05-03 19:42:31 +0000
commitdd2daaefe7b01d6308af5987fb9008de6a622b64 (patch)
tree81ce78183c93d44d14f354d64239af32de2a2c37 /bundles
parentd79eab99302156361be3efdbad9f0c456e32bf0a (diff)
downloadeclipse.platform.swt-dd2daaefe7b01d6308af5987fb9008de6a622b64.tar.gz
eclipse.platform.swt-dd2daaefe7b01d6308af5987fb9008de6a622b64.tar.xz
eclipse.platform.swt-dd2daaefe7b01d6308af5987fb9008de6a622b64.zip
API consistency
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java7
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/textlayout/org/eclipse/swt/graphics/TextLayout.java4
2 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java
index 5debc726c3..db9ecbc6c5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Path.java
@@ -196,7 +196,7 @@ public void close() {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
}
-public void curveTo(float cx1, float cy1, float cx2, float cy2, float x, float y) {
+public void cubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
}
@@ -241,6 +241,11 @@ public void getCurrentPoint(float[] point) {
if (point.length < 2) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
+public PathData getPathData() {
+ if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
+ return null;
+}
+
/**
* Adds to the receiver a line from the current point to
* the point specified by (x, y).
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/textlayout/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/textlayout/org/eclipse/swt/graphics/TextLayout.java
index 910ebcda1f..6e4e9df6af 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/textlayout/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/textlayout/org/eclipse/swt/graphics/TextLayout.java
@@ -28,7 +28,7 @@ import org.eclipse.swt.*;
*
* @since 3.0
*/
-public final class TextLayout {
+public final class TextLayout extends Resource {
Device device;
Font font;
String text;
@@ -1717,4 +1717,4 @@ public String toString () {
if (isDisposed()) return "TextLayout {*DISPOSED*}";
return "TextLayout {}";
}
-}
+} \ No newline at end of file