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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
awt
public awt()
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)