Package com.ribs
Class RUSwing
java.lang.Object
com.ribs.RUSwing
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHorizontalAlignmentString(JComponent aComponent) Returns the horizontal alignment of the given component as a string ("left", "center" or "right").static StringgetHorizontalTextPositionString(JComponent aComponent) Returns the labels horizontal text position as a string.static IconReturns an icon for the given shape, color and size.static ImageReturns an image for the given shape, image size and color.static ImageIcongetImageIcon(Shape aShape, Color aColor, int aWidth, int aHeight) Returns an image icon for the given shape, color and size.static StringgetVerticalAlignmentString(JComponent aComponent) Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").static StringgetVerticalTextPositionString(JComponent aComponent) Returns the labels vertical text position as a string.static voidinvokeLater(Object anObj, String aMethod) Invokes an given method on a given object after delay.static voidinvokeLater(Object anObj, String aMethod, Object anArg, Class anArgClass) Invokes an given method on a given object after delay, with given arg and arg class.static voidsetHorizontalAlignmentString(JComponent aComponent, String aString) Sets the horizontal alignment of the given component as a string ("left", "center" or "right").static voidsetHorizontalTextPositionString(JComponent aComponent, String aString) Sets the label's horizontal text position as a string.static voidsetVerticalAlignmentString(JComponent aComponent, String aString) Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").static voidsetVerticalTextPositionString(JComponent aComponent, String aString) Sets the label's vertical text position as a string.
-
Constructor Details
-
RUSwing
public RUSwing()
-
-
Method Details
-
getHorizontalAlignmentString
Returns the horizontal alignment of the given component as a string ("left", "center" or "right"). -
setHorizontalAlignmentString
Sets the horizontal alignment of the given component as a string ("left", "center" or "right"). -
getVerticalAlignmentString
Returns the vertical alignment of the given component as a string ("top", "center" or "bottom"). -
setVerticalAlignmentString
Sets the vertical alignment of the given component as a string ("top", "center" or "bottom"). -
getHorizontalTextPositionString
Returns the labels horizontal text position as a string. -
setHorizontalTextPositionString
Sets the label's horizontal text position as a string. -
getVerticalTextPositionString
Returns the labels vertical text position as a string. -
setVerticalTextPositionString
Sets the label's vertical text position as a string. -
invokeLater
Invokes an given method on a given object after delay. -
invokeLater
Invokes an given method on a given object after delay, with given arg and arg class. -
getIcon
Returns an icon for the given shape, color and size. -
getImage
Returns an image for the given shape, image size and color. -
getImageIcon
Returns an image icon for the given shape, color and size.
-