Package com.ribs
Class RUSwing
- java.lang.Object
-
- com.ribs.RUSwing
-
public class RUSwing extends java.lang.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
.
-
-
Constructor Summary
Constructors Constructor Description RUSwing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getHorizontalAlignmentString(javax.swing.JComponent aComponent)
Returns the horizontal alignment of the given component as a string ("left", "center" or "right").static java.lang.String
getHorizontalTextPositionString(javax.swing.JComponent aComponent)
Returns the labels horizontal text position as a string.static javax.swing.Icon
getIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an icon for the given shape, color and size.static java.awt.Image
getImage(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an image for the given shape, image size and color.static javax.swing.ImageIcon
getImageIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an image icon for the given shape, color and size.static java.lang.String
getVerticalAlignmentString(javax.swing.JComponent aComponent)
Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").static java.lang.String
getVerticalTextPositionString(javax.swing.JComponent aComponent)
Returns the labels vertical text position as a string.static void
invokeLater(java.lang.Object anObj, java.lang.String aMethod)
Invokes an given method on a given object after delay.static void
invokeLater(java.lang.Object anObj, java.lang.String aMethod, java.lang.Object anArg, java.lang.Class anArgClass)
Invokes an given method on a given object after delay, with given arg and arg class.static void
setHorizontalAlignmentString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the horizontal alignment of the given component as a string ("left", "center" or "right").static void
setHorizontalTextPositionString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the label's horizontal text position as a string.static void
setVerticalAlignmentString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").static void
setVerticalTextPositionString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the label's vertical text position as a string.
-
-
-
Method Detail
-
getHorizontalAlignmentString
public static java.lang.String getHorizontalAlignmentString(javax.swing.JComponent aComponent)
Returns the horizontal alignment of the given component as a string ("left", "center" or "right").
-
setHorizontalAlignmentString
public static void setHorizontalAlignmentString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the horizontal alignment of the given component as a string ("left", "center" or "right").
-
getVerticalAlignmentString
public static java.lang.String getVerticalAlignmentString(javax.swing.JComponent aComponent)
Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").
-
setVerticalAlignmentString
public static void setVerticalAlignmentString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").
-
getHorizontalTextPositionString
public static java.lang.String getHorizontalTextPositionString(javax.swing.JComponent aComponent)
Returns the labels horizontal text position as a string.
-
setHorizontalTextPositionString
public static void setHorizontalTextPositionString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the label's horizontal text position as a string.
-
getVerticalTextPositionString
public static java.lang.String getVerticalTextPositionString(javax.swing.JComponent aComponent)
Returns the labels vertical text position as a string.
-
setVerticalTextPositionString
public static void setVerticalTextPositionString(javax.swing.JComponent aComponent, java.lang.String aString)
Sets the label's vertical text position as a string.
-
invokeLater
public static void invokeLater(java.lang.Object anObj, java.lang.String aMethod)
Invokes an given method on a given object after delay.
-
invokeLater
public static void invokeLater(java.lang.Object anObj, java.lang.String aMethod, java.lang.Object anArg, java.lang.Class anArgClass)
Invokes an given method on a given object after delay, with given arg and arg class.
-
getIcon
public static javax.swing.Icon getIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an icon for the given shape, color and size.
-
getImage
public static java.awt.Image getImage(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an image for the given shape, image size and color.
-
getImageIcon
public static javax.swing.ImageIcon getImageIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
Returns an image icon for the given shape, color and size.
-
-