| java.lang.Object uk.org.ponder.swingutil.AWTUtil
AWTUtil | public class AWTUtil (Code) | | A collection of small utility methods useful in dealing with the AWT GUI libraries.
author: Bosmon |
Method Summary | |
public static void | antiAlias(Graphics2D graphics, boolean state) | public static double | colorToLuminance(Color c) | public static void | drawRect(Graphics g, int x1, int y1, int width, int height) | public static void | expandRectangle(Rectangle toexpand, int amount) | public static void | fillRect(Graphics g, int x1, int y1, int width, int height) | public static void | flowOutLayer(Container parent, Component[] labels, Component[] labelled, LayoutSpec layoutspec) | public static void | labelledOutLayer(Container parent, Component[] labels, Component[] labelled, LayoutSpec layoutspec) | public static void | setClipBounds(Graphics g, Rectangle toset) | public static void | setClipBounds(Graphics g, Rectangle origbounds, Rectangle toset) Sets the clip bounds of the specified graphics context to the intersection of the
two supplied clip bounds. |
colorToLuminance | public static double colorToLuminance(Color c)(Code) | | |
drawRect | public static void drawRect(Graphics g, int x1, int y1, int width, int height)(Code) | | |
expandRectangle | public static void expandRectangle(Rectangle toexpand, int amount)(Code) | | |
fillRect | public static void fillRect(Graphics g, int x1, int y1, int width, int height)(Code) | | |
setClipBounds | public static void setClipBounds(Graphics g, Rectangle origbounds, Rectangle toset)(Code) | | Sets the clip bounds of the specified graphics context to the intersection of the
two supplied clip bounds.
Parameters: g - The graphics object for which the clip bounds are to be adjusted. Parameters: origbounds - The first rectangle to be intersected (the original OS clipbounds) Parameters: toset - The second rectangle to be intersected. |
|
|