Package com.ribs
Class RUAwt
java.lang.Object
com.ribs.RUAwt
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>.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
fromStringColor
(String aString) Returns a Color from a String/hex representation.static JComponent
getComponent
(JComponent aComp, int anIndex) Returns the given component's child at the given index (or null, if beyond bounds).static JComponent
getComponentLast
(JComponent aComp) Returns the given components last child (or null, if none).static GeneralPath
getPath
(float[] xpoints, float[] ypoints, int npoints) Returns a general path for the given float arrays of points.static Dimension
getPreferredWindowSize
(Component aComponent) Returns appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.static JViewport
getViewport
(Component aComp) Returns the first viewport that is a parent of the given component.static Window
Returns the window associated with this component.static void
setContentSize
(Window aWindow, int width, int height) Sets the size of a window so that its contentPane is the given size.static void
setPreferredWindowSize
(Component aComponent) Sets appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.static void
setWindowAlwaysOnTop
(Window aWindow, boolean aFlag) Sets a window to always be on top in Java 5 or beyond.static void
setWindowVisible
(Component aWin, int x, int y, byte aCorner) Makes a window visiable with the given corner at the given x & y.static void
setWindowVisible
(Component aWindow, int x, int y, byte aCorner, String frameSaveName) Makes a window visiable with the given corner at the given x & y.static void
Makes a window visable in the middle of the screen.static String
toStringColor
(Color aColor) Returns a String/hex representation of a given color (eg, "#FF00D8").
-
Field Details
-
SCREEN_UPPER_LEFT
public static final byte SCREEN_UPPER_LEFT- See Also:
-
SCREEN_UPPER_RIGHT
public static final byte SCREEN_UPPER_RIGHT- See Also:
-
SCREEN_LOWER_LEFT
public static final byte SCREEN_LOWER_LEFT- See Also:
-
SCREEN_LOWER_RIGHT
public static final byte SCREEN_LOWER_RIGHT- See Also:
-
SCREEN_CENTER
public static final byte SCREEN_CENTER- See Also:
-
SCREEN_ABSOLUTE
public static final byte SCREEN_ABSOLUTE- See Also:
-
-
Constructor Details
-
RUAwt
public RUAwt()
-
-
Method Details
-
toStringColor
Returns a String/hex representation of a given color (eg, "#FF00D8"). -
fromStringColor
Returns a Color from a String/hex representation. -
setWindowVisibleCentered
Makes a window visable in the middle of the screen. -
setWindowVisible
Makes a window visiable with the given corner at the given x & y. -
setWindowVisible
public static void setWindowVisible(Component aWindow, int x, int y, byte aCorner, String frameSaveName) Makes a window visiable with the given corner at the given x & y. -
setWindowAlwaysOnTop
Sets a window to always be on top in Java 5 or beyond. -
getPreferredWindowSize
Returns appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible. -
setPreferredWindowSize
Sets appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible. -
getWindow
Returns the window associated with this component. -
getComponent
Returns the given component's child at the given index (or null, if beyond bounds). -
getComponentLast
Returns the given components last child (or null, if none). -
getViewport
Returns the first viewport that is a parent of the given component. -
setContentSize
Sets the size of a window so that its contentPane is the given size. -
getPath
Returns a general path for the given float arrays of points.
-