com.ptc.windchill.upgrade.util
Class UiUtil

java.lang.Object
  extended bycom.ptc.windchill.upgrade.util.UiUtil

public class UiUtil
extends Object


Constructor Summary
UiUtil()
           
 
Method Summary
static void safePosition(Component component, Rectangle desired_bounds, Dimension min_size)
          Positions the window on the screen, ensuring that it does not hang off any edge of the screen.
static String wrapToReasonableWidth(String message)
           
static String wrapToWidth(String message, int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiUtil

public UiUtil()
Method Detail

safePosition

public static void safePosition(Component component,
                                Rectangle desired_bounds,
                                Dimension min_size)
Positions the window on the screen, ensuring that it does not hang off any edge of the screen. If the window is bigger than the screen, it will be resized


wrapToReasonableWidth

public static String wrapToReasonableWidth(String message)

wrapToWidth

public static String wrapToWidth(String message,
                                 int width)