net.infonode.gui.shaped
Class ShapedUtil

java.lang.Object
  extended by net.infonode.gui.shaped.ShapedUtil

public class ShapedUtil
extends java.lang.Object

Version:
$Revision: 1.5 $
Author:
$Author: jesper $

Constructor Summary
private ShapedUtil()
           
 
Method Summary
static java.awt.Insets flipInsets(java.awt.Component c, java.awt.Insets i)
           
static Direction getDirection(java.awt.Component c)
           
static int getHeight(java.awt.Component c, int width, int height)
           
static int getWidth(java.awt.Component c, int width, int height)
           
static void rotate(java.awt.Polygon polygon, Direction d, int width, int height)
           
static void rotateCW(java.awt.Polygon polygon, int height)
           
static java.awt.Dimension transform(java.awt.Component c, java.awt.Dimension dim)
           
static java.awt.Rectangle transform(java.awt.Component c, java.awt.Rectangle rect)
           
static java.awt.Insets transformInsets(java.awt.Component c, java.awt.Insets insets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapedUtil

private ShapedUtil()
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)