887 }
888
889 public int getAbsoluteX() {
890 // NOTE: returning this peer's location which is shell location
891 return dimensions.getScreenBounds().x;
892 }
893
894 public int getAbsoluteY() {
895 // NOTE: returning this peer's location which is shell location
896 return dimensions.getScreenBounds().y;
897 }
898
899 public int getWidth() {
900 return getSize().width;
901 }
902
903 public int getHeight() {
904 return getSize().height;
905 }
906
907 final public WindowDimensions getDimensions() {
908 return dimensions;
909 }
910
911 public Point getLocationOnScreen() {
912 XToolkit.awtLock();
913 try {
914 if (configure_seen) {
915 return toGlobal(0,0);
916 } else {
917 Point location = target.getLocation();
918 if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
919 insLog.fine("getLocationOnScreen {0} not reparented: {1} ",
920 this, location);
921 }
922 return location;
923 }
924 } finally {
925 XToolkit.awtUnlock();
926 }
927 }
|
887 }
888
889 public int getAbsoluteX() {
890 // NOTE: returning this peer's location which is shell location
891 return dimensions.getScreenBounds().x;
892 }
893
894 public int getAbsoluteY() {
895 // NOTE: returning this peer's location which is shell location
896 return dimensions.getScreenBounds().y;
897 }
898
899 public int getWidth() {
900 return getSize().width;
901 }
902
903 public int getHeight() {
904 return getSize().height;
905 }
906
907 public final WindowDimensions getDimensions() {
908 return dimensions;
909 }
910
911 public Point getLocationOnScreen() {
912 XToolkit.awtLock();
913 try {
914 if (configure_seen) {
915 return toGlobal(0,0);
916 } else {
917 Point location = target.getLocation();
918 if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
919 insLog.fine("getLocationOnScreen {0} not reparented: {1} ",
920 this, location);
921 }
922 return location;
923 }
924 } finally {
925 XToolkit.awtUnlock();
926 }
927 }
|