Class ShapedUtil


  • public class ShapedUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • 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)