if (behaviour instanceof LWBehavior) {
if (parent == null || !parent.visible || !parent.behaviour.isDisplayable()) {
return;
}
if (repaintRegion == null) {
repaintRegion = new MultiRectArea(new Rectangle(x, y, width, height));
}
repaintRegion.intersect(new Rectangle(0, 0, this.w, this.h));
repaintRegion.translate(this.x, this.y);
parent.repaintRegion = repaintRegion;
repaintRegion = null;