[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Fixed formatting of AWTUtilities
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Fixed formatting of AWTUtilities |
Date: |
Tue, 26 Jul 2005 15:54:27 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050317) |
As suggested by Mark, I committed the following formatting fix.
2005-07-26 Roman Kennke <address@hidden>
* gnu/java/awt/AWTUtilities.java:
Fixed formatting of this file.
/Roman
Index: gnu/java/awt/AWTUtilities.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/AWTUtilities.java,v
retrieving revision 1.4
diff -u -r1.4 AWTUtilities.java
--- gnu/java/awt/AWTUtilities.java 25 Jul 2005 14:18:03 -0000 1.4
+++ gnu/java/awt/AWTUtilities.java 26 Jul 2005 13:50:24 -0000
@@ -345,7 +345,7 @@
* @see #calculateInnerArea
*/
public static Rectangle calculateInsetArea(Rectangle base, Insets insets,
-
Rectangle ret)
+ Rectangle ret)
{
if (ret == null)
ret = new Rectangle();
@@ -570,7 +570,8 @@
* @param destination The component which the return value will be
* expressed in terms of
*
- * @return The point <code>(x,y)</code> converted from the coordinate space
of the
+ * @return The point <code>(x,y)</code> converted from the coordinate
+ * space of the
* source component to the coordinate space of the destination component
*
* @see #convertPointToScreen
@@ -579,7 +580,7 @@
* @see #getRoot
*/
public static Point convertPoint(Component source, int x, int y,
-
Component destination)
+ Component destination)
{
Point pt = new Point(x, y);
@@ -622,9 +623,8 @@
* @see #convertPoint
* @see #getRoot
*/
- public static Rectangle convertRectangle(Component source,
-
Rectangle rect,
-
Component destination)
+ public static Rectangle convertRectangle(Component source, Rectangle rect,
+ Component destination)
{
Point pt = convertPoint(source, rect.x, rect.y, destination);
return new Rectangle(pt.x, pt.y, rect.width, rect.height);
@@ -650,16 +650,17 @@
* @see #convertPoint
*/
public static MouseEvent convertMouseEvent(Component source,
-
MouseEvent sourceEvent,
-
Component destination)
+ MouseEvent sourceEvent,
+ Component destination)
{
Point newpt = convertPoint(source, sourceEvent.getX(), sourceEvent.getY(),
- destination);
+ destination);
return new MouseEvent(destination, sourceEvent.getID(),
- sourceEvent.getWhen(), sourceEvent.getModifiers(),
- newpt.x, newpt.y, sourceEvent.getClickCount(),
- sourceEvent.isPopupTrigger(),
sourceEvent.getButton());
+ sourceEvent.getWhen(), sourceEvent.getModifiers(),
+ newpt.x, newpt.y, sourceEvent.getClickCount(),
+ sourceEvent.isPopupTrigger(),
+ sourceEvent.getButton());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Fixed formatting of AWTUtilities,
Roman Kennke <=