aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/gui/UIService.java
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2008-09-10 20:44:05 +0000
committerYana Stamcheva <yana@jitsi.org>2008-09-10 20:44:05 +0000
commit0c40c5109ac460c2286e10acc1a7d28d11e6fd8b (patch)
tree611107128f3ddcabb3aeb09b06f6a27d128df783 /src/net/java/sip/communicator/service/gui/UIService.java
parent04d5a4c7e3fdc94f039808702c01910ffae42db7 (diff)
downloadjitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.zip
jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.gz
jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.bz2
- Added some new color constants.
- Added set/getSize and set/getLocation methods to the UIService.
Diffstat (limited to 'src/net/java/sip/communicator/service/gui/UIService.java')
-rw-r--r--src/net/java/sip/communicator/service/gui/UIService.java34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/gui/UIService.java b/src/net/java/sip/communicator/service/gui/UIService.java
index be7cffd..264124d 100644
--- a/src/net/java/sip/communicator/service/gui/UIService.java
+++ b/src/net/java/sip/communicator/service/gui/UIService.java
@@ -6,6 +6,7 @@
*/
package net.java.sip.communicator.service.gui;
+import java.awt.*;
import java.util.*;
import net.java.sip.communicator.service.protocol.*;
@@ -68,6 +69,37 @@ public interface UIService
public void setVisible(boolean visible);
/**
+ * Returns the current location of the main application window. The returned
+ * point is the top left corner of the window.
+ *
+ * @return The top left corner coordinates of the main application window.
+ */
+ public Point getLocation();
+
+ /**
+ * Locates the main application window to the new x and y coordinates.
+ *
+ * @param x The new x coordinate.
+ * @param y The new y coordinate.
+ */
+ public void setLocation(int x, int y);
+
+ /**
+ * Returns the size of the main application window.
+ *
+ * @return the size of the main application window.
+ */
+ public Dimension getSize();
+
+ /**
+ * Sets the size of the main application window.
+ *
+ * @param width The width of the window.
+ * @param height The height of the window.
+ */
+ public void setSize(int width, int height);
+
+ /**
* Minimizes the main application window.
*/
public void minimize();
@@ -274,4 +306,4 @@ public interface UIService
* <code>false</code> otherwise.
*/
public boolean isContainerSupported(Container containderID);
-}
+} \ No newline at end of file