Methods Summary |
---|
public void | convertRegion(java.awt.Component child, java.awt.Component parent)
convertRegion(child, clip, parent);
|
public static void | convertRegion(java.awt.Component child, org.apache.harmony.awt.gl.MultiRectArea region, java.awt.Component parent)
int x = 0, y = 0;
Component c = child;
//???AWT
/*
for (; c != null && c != parent; c = c.getParent()) {
x += c.getX();
y += c.getY();
}
*/
if (c == null) {
// awt.51=Component expected to be a parent
throw new IllegalArgumentException(Messages.getString("awt.51")); //$NON-NLS-1$
}
region.translate(x, y);
|
public org.apache.harmony.awt.gl.MultiRectArea | getClip()
return clip;
|
public void | intersect(java.awt.Rectangle rect)
clip.intersect(rect);
|
public boolean | isEmpty()
return clip.isEmpty();
|
public java.lang.String | toString()
String str = clip.toString();
int i = str.indexOf('[");
str = str.substring(i);
if (clip.getRectCount() == 1) {
str = str.substring(1, str.length() - 1);
}
return getClass().getName() + str;
|