summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-06-02 19:23:01 +0000
committerGrant Gayed <ggayed>2008-06-02 19:23:01 +0000
commit2e286e623278757fdedc0ed752181012d56d69bb (patch)
tree07c564827fb23f11867c3bd0b22fada8a5a7fd6e
parent9ca4ea6a86b5068072408c0b747a2e24ab926894 (diff)
downloadeclipse.platform.swt-2e286e623278757fdedc0ed752181012d56d69bb.tar.gz
eclipse.platform.swt-2e286e623278757fdedc0ed752181012d56d69bb.tar.xz
eclipse.platform.swt-2e286e623278757fdedc0ed752181012d56d69bb.zip
doc
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/MovementEvent.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java8
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyleRange.java10
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java17
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/VerifyKeyListener.java7
6 files changed, 52 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleListener.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleListener.java
index b431dba74a..3e621e1843 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/LineStyleListener.java
@@ -12,7 +12,15 @@ package org.eclipse.swt.custom;
import org.eclipse.swt.internal.SWTEventListener;
+/**
+ * Classes which implement this interface provide a method
+ * that can provide the style information for a line that
+ * is to be drawn.
+ *
+ * @see LineStyleEvent
+ */
public interface LineStyleListener extends SWTEventListener {
+
/**
* This method is called when a line is about to be drawn in order to get the
* line's style information.
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/MovementEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/MovementEvent.java
index 21403c5851..48d24ea775 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/MovementEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/MovementEvent.java
@@ -52,7 +52,13 @@ public class MovementEvent extends TypedEvent {
public int movement;
static final long serialVersionUID = 3978765487853324342L;
-
+
+/**
+ * Constructs a new instance of this class based on the
+ * information in the given event.
+ *
+ * @param e the event containing the information
+ */
public MovementEvent(StyledTextEvent e) {
super(e);
lineOffset = e.detail;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java
index 7f0f2b822b..3f2b4f797c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/PaintObjectEvent.java
@@ -61,7 +61,13 @@ public class PaintObjectEvent extends TypedEvent {
public int bulletIndex;
static final long serialVersionUID = 3906081274027192855L;
-
+
+/**
+ * Constructs a new instance of this class based on the
+ * information in the given event.
+ *
+ * @param e the event containing the information
+ */
public PaintObjectEvent(StyledTextEvent e) {
super(e);
gc = e.gc;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyleRange.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyleRange.java
index e6c6f740af..984ff340af 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyleRange.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyleRange.java
@@ -14,6 +14,16 @@ import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.internal.CloneableCompatibility;
+/**
+ * <code>StyleRange</code> defines a set of styles for a specified
+ * range of text.
+ * <p>
+ * The hashCode() method in this class uses the values of the public
+ * fields to compute the hash value. When storing instances of the
+ * class in hashed collections, do not modify these fields after the
+ * object has been inserted.
+ * </p>
+ */
public class StyleRange extends TextStyle implements CloneableCompatibility {
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 8c72e53a9a..8fb4843158 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -3704,7 +3704,9 @@ StyledTextEvent getLineStyleData(int lineOffset, String line) {
*
* @param lineIndex the line index, the max value is lineCount. If
* lineIndex == lineCount it returns the bottom pixel of the last line.
- * It means this function can be used to retrieve the bottom pixel of any line.
+ * It means this function can be used to retrieve the bottom pixel of any line.
+ *
+ * @return the top pixel of a given line index
*
* @since 3.2
*/
@@ -3732,6 +3734,10 @@ public int getLinePixel(int lineIndex) {
/**
* Returns the line index for a y, relative to the client area.
* The line index returned is always in the range 0..lineCount - 1.
+ *
+ * @param y the y-coordinate pixel
+ *
+ * @return the line index for a given y-coordinate pixel
*
* @since 3.2
*/
@@ -5942,6 +5948,9 @@ public void print() {
* </p>
*
* @param printer the printer to print to
+ *
+ * @return a <code>Runnable</code> for printing the receiver's text
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -5971,6 +5980,9 @@ public Runnable print(Printer printer) {
*
* @param printer the printer to print to
* @param options print options to use during printing
+ *
+ * @return a <code>Runnable</code> for printing the receiver's text
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -6986,9 +6998,6 @@ public void setFont(Font font) {
setCaretLocation();
super.redraw();
}
-/**
- * @see org.eclipse.swt.widgets.Control#setForeground
- */
public void setForeground(Color color) {
checkWidget();
foreground = color;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/VerifyKeyListener.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/VerifyKeyListener.java
index 59b2d8d742..3840b6c7a6 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/VerifyKeyListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/VerifyKeyListener.java
@@ -13,6 +13,13 @@ package org.eclipse.swt.custom;
import org.eclipse.swt.events.*;
import org.eclipse.swt.internal.SWTEventListener;
+/**
+ * Classes which implement this interface provide a method
+ * that deals with the events that are generated when a
+ * key is pressed.
+ *
+ * @see VerifyEvent
+ */
public interface VerifyKeyListener extends SWTEventListener {
/**
* The following event fields are used:<ul>