Package net.infonode.gui.shaped
Class ShapedUtil
- java.lang.Object
-
- net.infonode.gui.shaped.ShapedUtil
-
public class ShapedUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.InsetsflipInsets(java.awt.Component c, java.awt.Insets i)static DirectiongetDirection(java.awt.Component c)static intgetHeight(java.awt.Component c, int width, int height)static intgetWidth(java.awt.Component c, int width, int height)static voidrotate(java.awt.Polygon polygon, Direction d, int width, int height)static voidrotateCW(java.awt.Polygon polygon, int height)static java.awt.Dimensiontransform(java.awt.Component c, java.awt.Dimension dim)static java.awt.Rectangletransform(java.awt.Component c, java.awt.Rectangle rect)static java.awt.InsetstransformInsets(java.awt.Component c, java.awt.Insets insets)
-
-
-
Method Detail
-
getDirection
public static Direction getDirection(java.awt.Component c)
-
transformInsets
public static java.awt.Insets transformInsets(java.awt.Component c, java.awt.Insets insets)
-
flipInsets
public static java.awt.Insets flipInsets(java.awt.Component c, java.awt.Insets i)
-
rotateCW
public static void rotateCW(java.awt.Polygon polygon, int height)
-
rotate
public static void rotate(java.awt.Polygon polygon, Direction d, int width, int height)
-
transform
public static java.awt.Rectangle transform(java.awt.Component c, java.awt.Rectangle rect)
-
transform
public static java.awt.Dimension transform(java.awt.Component c, java.awt.Dimension dim)
-
getWidth
public static int getWidth(java.awt.Component c, int width, int height)
-
getHeight
public static int getHeight(java.awt.Component c, int width, int height)
-
-