|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.VAWTSpy
A utility class that infiltrates the java.awt package to allow our peers to access package-private AWT things, including Component instance variables and the class EventDispatchThread.
To prevent a security hole, only our AWT peers are allowed access to this class. This is done through the idiom of allowing only one instance to be created. VToolkit creates the unique instance during class initialization and stuffs it into a static variable for us to use.
VToolkit#sVAWTSpy
Constructor Summary | |
VAWTSpy()
Creates a VAWTSpy. |
Method Summary | |
void |
finishChildResized(ScrollPane scrollPane,
int w,
int h)
From ScrollPane.layout, because if max changes but value doesn't the peers don't get told Workaround for bug 2398946 |
void |
getChildPointInParentSpace(Component child,
Component parent,
Point point)
Adjusts point in the component's coordinate space to be in the parent's coordinate space. |
void |
getComponentOffset(Component child,
Component parent,
Point result)
Gets the origin of the given component in its parent's coordinate space. |
int |
getComponentX(Component c)
|
int |
getComponentY(Component c)
|
void |
getParentPointInChildSpace(Component parent,
Component child,
Point point)
Adjusts point in the parent's coordinate space to be in the component's coordinate space. |
Color |
gropeBackground(Component c)
|
Cursor |
gropeCursor(Component c)
|
EventListener |
gropeEventListenerA(AWTEventMulticaster m)
|
EventListener |
gropeEventListenerB(AWTEventMulticaster m)
|
Font |
gropeFont(Component c)
|
Color |
gropeForeground(Component c)
|
MouseListener |
gropeMouseListener(Component c)
|
void |
popEventDispatcher()
|
void |
processComponentEvent(Component c,
AWTEvent e)
Slams an event into the given component's handler, forcing it to be processed immediately. |
void |
pushEventDispatcher()
|
void |
pushEventDispatcherIfNecessary()
Pushes a new EventDispatchThread if called from a current one; useful before calling something that might block, but events still need to get delivered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VAWTSpy() throws SecurityException
Method Detail |
public Color gropeForeground(Component c)
public Color gropeBackground(Component c)
public Font gropeFont(Component c)
public int getComponentX(Component c)
public int getComponentY(Component c)
public Cursor gropeCursor(Component c)
public MouseListener gropeMouseListener(Component c)
public EventListener gropeEventListenerA(AWTEventMulticaster m)
public EventListener gropeEventListenerB(AWTEventMulticaster m)
public void pushEventDispatcherIfNecessary()
public void pushEventDispatcher()
public void popEventDispatcher()
public void getParentPointInChildSpace(Component parent, Component child, Point point)
public void getChildPointInParentSpace(Component child, Component parent, Point point)
public void getComponentOffset(Component child, Component parent, Point result)
public void finishChildResized(ScrollPane scrollPane, int w, int h)
public void processComponentEvent(Component c, AWTEvent e)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.