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 SummaryFieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_LEFTpublic static final byte SCREEN_UPPER_LEFT- See Also:
 
- 
SCREEN_UPPER_RIGHTpublic static final byte SCREEN_UPPER_RIGHT- See Also:
 
- 
SCREEN_LOWER_LEFTpublic static final byte SCREEN_LOWER_LEFT- See Also:
 
- 
SCREEN_LOWER_RIGHTpublic static final byte SCREEN_LOWER_RIGHT- See Also:
 
- 
SCREEN_CENTERpublic static final byte SCREEN_CENTER- See Also:
 
- 
SCREEN_ABSOLUTEpublic static final byte SCREEN_ABSOLUTE- See Also:
 
 
- 
- 
Constructor Details- 
RUAwtpublic RUAwt()
 
- 
- 
Method Details- 
toStringColorReturns a String/hex representation of a given color (eg, "#FF00D8").
- 
fromStringColorReturns a Color from a String/hex representation.
- 
setWindowVisibleCenteredMakes a window visable in the middle of the screen.
- 
setWindowVisibleMakes a window visiable with the given corner at the given x & y.
- 
setWindowVisiblepublic 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.
- 
setWindowAlwaysOnTopSets a window to always be on top in Java 5 or beyond.
- 
getPreferredWindowSizeReturns appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.
- 
setPreferredWindowSizeSets appropriate window size for a component in a scrollpane such that scrollers aren't visible if possible.
- 
getWindowReturns the window associated with this component.
- 
getComponentReturns the given component's child at the given index (or null, if beyond bounds).
- 
getComponentLastReturns the given components last child (or null, if none).
- 
getViewportReturns the first viewport that is a parent of the given component.
- 
setContentSizeSets the size of a window so that its contentPane is the given size.
- 
getPathReturns a general path for the given float arrays of points.
 
-