Package com.ribs

Class RUSwing

java.lang.Object
com.ribs.RUSwing

public class RUSwing extends Object
This class offers a number of useful general purpose utilities used by ribs classes.

Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.

  • Constructor Details

    • RUSwing

      public RUSwing()
  • Method Details

    • getHorizontalAlignmentString

      public static String getHorizontalAlignmentString(JComponent aComponent)
      Returns the horizontal alignment of the given component as a string ("left", "center" or "right").
    • setHorizontalAlignmentString

      public static void setHorizontalAlignmentString(JComponent aComponent, String aString)
      Sets the horizontal alignment of the given component as a string ("left", "center" or "right").
    • getVerticalAlignmentString

      public static String getVerticalAlignmentString(JComponent aComponent)
      Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").
    • setVerticalAlignmentString

      public static void setVerticalAlignmentString(JComponent aComponent, String aString)
      Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").
    • getHorizontalTextPositionString

      public static String getHorizontalTextPositionString(JComponent aComponent)
      Returns the labels horizontal text position as a string.
    • setHorizontalTextPositionString

      public static void setHorizontalTextPositionString(JComponent aComponent, String aString)
      Sets the label's horizontal text position as a string.
    • getVerticalTextPositionString

      public static String getVerticalTextPositionString(JComponent aComponent)
      Returns the labels vertical text position as a string.
    • setVerticalTextPositionString

      public static void setVerticalTextPositionString(JComponent aComponent, String aString)
      Sets the label's vertical text position as a string.
    • invokeLater

      public static void invokeLater(Object anObj, String aMethod)
      Invokes an given method on a given object after delay.
    • invokeLater

      public static void invokeLater(Object anObj, String aMethod, Object anArg, Class anArgClass)
      Invokes an given method on a given object after delay, with given arg and arg class.
    • getIcon

      public static Icon getIcon(Shape aShape, Color aColor, int aWidth, int aHeight)
      Returns an icon for the given shape, color and size.
    • getImage

      public static Image getImage(Shape aShape, Color aColor, int aWidth, int aHeight)
      Returns an image for the given shape, image size and color.
    • getImageIcon

      public static ImageIcon getImageIcon(Shape aShape, Color aColor, int aWidth, int aHeight)
      Returns an image icon for the given shape, color and size.