|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.montsuqi.monsia.builders.ScreenScale
final class ScreenScale
A class to scale frames and components to fit in screen insets.
| Constructor Summary | |
|---|---|
ScreenScale()
|
|
| Method Summary | |
|---|---|
(package private) static void |
centerWindow(java.awt.Window window)
Centers a window in the screen insets. |
(package private) static java.awt.Dimension |
getScreenSize()
Gets the size of the screen. |
(package private) static java.awt.Dimension |
scale(java.awt.Dimension size)
Scale the given size so a component with that size will fit in the screen insets. |
(package private) static java.awt.Font |
scale(java.awt.Font font)
Scales the size of the given font. |
(package private) static java.awt.Point |
scale(java.awt.Point pos)
Translates the given position so a component at that position will fit in the screen insets. |
(package private) static java.awt.Dimension |
scaleFrame(java.awt.Dimension size)
Scale the given size so a frame with that size will fit in the screen insets. |
(package private) static java.awt.Point |
scaleFrame(java.awt.Point pos)
Translates the given position so a frame at that position will fit in the screen insets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ScreenScale()
| Method Detail |
|---|
static java.awt.Dimension scaleFrame(java.awt.Dimension size)
Scale the given size so a frame with that size will fit in the screen insets.
size - arbitrary size (of a frame)
static java.awt.Dimension scale(java.awt.Dimension size)
Scale the given size so a component with that size will fit in the screen insets.
size - arbitrary size (of a component)
static java.awt.Point scaleFrame(java.awt.Point pos)
Translates the given position so a frame at that position will fit in the screen insets.
pos - arbitrary position (of a frame)
static java.awt.Point scale(java.awt.Point pos)
Translates the given position so a component at that position will fit in the screen insets.
pos - arbitrary position (of a component)
static java.awt.Font scale(java.awt.Font font)
Scales the size of the given font.
font - font to scale.
static void centerWindow(java.awt.Window window)
Centers a window in the screen insets.
window - a window to center.static java.awt.Dimension getScreenSize()
Gets the size of the screen.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||