net.infonode.gui.shaped

Class ShapedUtil

public class ShapedUtil extends Object

Version: $Revision: 1.5 $

Author: $Author: jesper $

Method Summary
static InsetsflipInsets(Component c, Insets i)
static DirectiongetDirection(Component c)
static intgetHeight(Component c, int width, int height)
static intgetWidth(Component c, int width, int height)
static voidrotate(Polygon polygon, Direction d, int width, int height)
static voidrotateCW(Polygon polygon, int height)
static Rectangletransform(Component c, Rectangle rect)
static Dimensiontransform(Component c, Dimension dim)
static InsetstransformInsets(Component c, Insets insets)

Method Detail

flipInsets

public static Insets flipInsets(Component c, Insets i)

getDirection

public static Direction getDirection(Component c)

getHeight

public static int getHeight(Component c, int width, int height)

getWidth

public static int getWidth(Component c, int width, int height)

rotate

public static void rotate(Polygon polygon, Direction d, int width, int height)

rotateCW

public static void rotateCW(Polygon polygon, int height)

transform

public static Rectangle transform(Component c, Rectangle rect)

transform

public static Dimension transform(Component c, Dimension dim)

transformInsets

public static Insets transformInsets(Component c, Insets insets)