|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchrriis.common.UIUtils
public class UIUtils
| Method Summary | |
|---|---|
static Rectangle |
getBounds(Rectangle[] rectangles)
Get the bounds containing all the rectangles. |
static Rectangle[] |
getComponentVisibleArea(Component component,
Filter<Component> filter,
boolean traverseChildren)
Get the area that is not covered by components obeying the condition imposed by the visitor. |
static void |
setPreferredLookAndFeel()
|
static Rectangle[] |
subtract(Rectangle[] rects,
Rectangle rect)
Subtracts the area specified by the rectangle rect from each of the areas specified by the rectangles in rects. |
static Rectangle[] |
subtract(Rectangle[] rects1,
Rectangle[] rects2)
Subtracts the area specified by the rectangles in rects2 from each of the areas specified by the rectangles in rects1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Rectangle[] subtract(Rectangle[] rects,
Rectangle rect)
rects - The rectangles to substract from.rect - The rectangle to substract.
public static Rectangle[] subtract(Rectangle[] rects1,
Rectangle[] rects2)
rects1 - The rectangles to substract from.rects2 - The rectangles to substract.
public static Rectangle[] getComponentVisibleArea(Component component,
Filter<Component> filter,
boolean traverseChildren)
component - the component for which to find the visible areas.filter - the filter to consider when determining if an area is hidden.traverseChildren - true if children that are not captured by the filter should look into their own children recursively.
public static Rectangle getBounds(Rectangle[] rectangles)
rectangles - the rectangles to get the bounds for.
public static void setPreferredLookAndFeel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||