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 bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorfromStringColor(String aString) Returns a Color from a String/hex representation.static JComponentgetComponent(JComponent aComp, int anIndex) Returns the given component's child at the given index (or null, if beyond bounds).static JComponentgetComponentLast(JComponent aComp) Returns the given components last child (or null, if none).static GeneralPathgetPath(float[] xpoints, float[] ypoints, int npoints) Returns a general path for the given float arrays of points.static DimensiongetPreferredWindowSize(Component aComponent) Returns appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.static JViewportgetViewport(Component aComp) Returns the first viewport that is a parent of the given component.static WindowReturns the window associated with this component.static voidsetContentSize(Window aWindow, int width, int height) Sets the size of a window so that its contentPane is the given size.static voidsetPreferredWindowSize(Component aComponent) Sets appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.static voidsetWindowAlwaysOnTop(Window aWindow, boolean aFlag) Sets a window to always be on top in Java 5 or beyond.static voidsetWindowVisible(Component aWin, int x, int y, byte aCorner) Makes a window visiable with the given corner at the given x & y.static voidsetWindowVisible(Component aWindow, int x, int y, byte aCorner, String frameSaveName) Makes a window visiable with the given corner at the given x & y.static voidMakes a window visable in the middle of the screen.static StringtoStringColor(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.
-