UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture.util
Class awt

java.lang.Object
  |
  +--edu.berkeley.guir.lib.gesture.util.awt

public class awt
extends Object


Constructor Summary
awt()
           
 
Method Summary
static String eventModifiers(InputEvent e)
           
static int getChildIndex(Container container, Component child)
          Return the index of child in container, or -1 if child is not in container
static Dimension getTextSize(Component c, String s)
          Figure out how big s will be when rendered in c.
static Window getWindow(Component c)
          The analogous Swing function is slightly broken (IMHO) because if the passed Component is a Window it does does not get returned.
static Dimension sizeWithInsets(Graphics g, JComponent c)
          The Graphics object passed in paint* routines do not account for insets, which is silly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

awt

public awt()
Method Detail

getWindow

public static Window getWindow(Component c)
The analogous Swing function is slightly broken (IMHO) because if the passed Component is a Window it does does not get returned.

getTextSize

public static Dimension getTextSize(Component c,
                                    String s)
Figure out how big s will be when rendered in c.

sizeWithInsets

public static Dimension sizeWithInsets(Graphics g,
                                       JComponent c)
The Graphics object passed in paint* routines do not account for insets, which is silly. This function accounts for that.

getChildIndex

public static int getChildIndex(Container container,
                                Component child)
Return the index of child in container, or -1 if child is not in container

eventModifiers

public static String eventModifiers(InputEvent e)

Copyright Information