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 String
getHorizontalAlignmentString
(JComponent aComponent) Returns the horizontal alignment of the given component as a string ("left", "center" or "right").static String
getHorizontalTextPositionString
(JComponent aComponent) Returns the labels horizontal text position as a string.static Icon
Returns an icon for the given shape, color and size.static Image
Returns an image for the given shape, image size and color.static ImageIcon
getImageIcon
(Shape aShape, Color aColor, int aWidth, int aHeight) Returns an image icon for the given shape, color and size.static String
getVerticalAlignmentString
(JComponent aComponent) Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").static String
getVerticalTextPositionString
(JComponent aComponent) Returns the labels vertical text position as a string.static void
invokeLater
(Object anObj, String aMethod) Invokes an given method on a given object after delay.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.static void
setHorizontalAlignmentString
(JComponent aComponent, String aString) Sets the horizontal alignment of the given component as a string ("left", "center" or "right").static void
setHorizontalTextPositionString
(JComponent aComponent, String aString) Sets the label's horizontal text position as a string.static void
setVerticalAlignmentString
(JComponent aComponent, String aString) Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").static void
setVerticalTextPositionString
(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.
-