|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4swing.layout.scalable.ScalableLayoutUtils
public final class ScalableLayoutUtils
Utils for the package.
| Method Summary | |
|---|---|
static void |
installScalableLayout(ScalableLayoutRegistry registry,
Container container)
Install the appropriate scalable layout on the container. |
static void |
installScalableLayoutAndKeys(ScalableLayoutRegistry registry,
RootPaneContainer rootPaneContainer,
double step)
Install the appropriate scalable layout on the content pane of the RootPaneContainer and it's sub containers. |
static void |
installScalableLayoutRecursive(ScalableLayoutRegistry registry,
Container container)
Install the appropriate scalable layout on the container and it's sub containers. |
static void |
installScaleKeys(RootPaneContainer rootPaneContainer,
AbstractScalableLayout layout,
double step)
Install two key strokes (CTRL+ and CTRL-) for scaling the layout up and down on the content pane of the root pane container. |
static Dimension |
scale(Dimension dim,
double factor)
Scales the dimension. |
static Font |
scale(Font font,
double factor)
Scales the font. |
static void |
scale(Insets current,
Insets original,
double factor)
Scales the insets. |
static int |
scale(int value,
double factor)
Scales a value. |
static Rectangle |
scale(Rectangle rect,
double factor)
Scales the rectangle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Font scale(Font font,
double factor)
font - Font to scale.factor - Factor to use.
public static Rectangle scale(Rectangle rect,
double factor)
rect - Rectangle to scale.factor - Factor to use.
public static Dimension scale(Dimension dim,
double factor)
dim - Dimension to scale.factor - Factor to use.
public static int scale(int value,
double factor)
value - Value to scale.factor - Factor to use.
public static void scale(Insets current,
Insets original,
double factor)
current - Insets that will be changed (result insets).original - Insets that will be used with the factor.factor - Factor to use.
public static void installScaleKeys(RootPaneContainer rootPaneContainer,
AbstractScalableLayout layout,
double step)
rootPaneContainer - The content pane of this root pane container will be used to
install the keys on. The root pane container itself will also
be scaled.layout - Layout to scale.step - Scaling steps (For example 0.1 is a good value).
public static void installScalableLayout(ScalableLayoutRegistry registry,
Container container)
registry - Registry to use.container - Container to replace the existing layout with a scalable
layout.
public static void installScalableLayoutRecursive(ScalableLayoutRegistry registry,
Container container)
registry - Registry to use.container - Container to replace the existing layout with a scalable
layout.
public static void installScalableLayoutAndKeys(ScalableLayoutRegistry registry,
RootPaneContainer rootPaneContainer,
double step)
RootPaneContainer and it's sub containers. Additionally
installScaleKeys(JComponent component,
AbstractScalableLayout, double) is called to install scaling keys
on the content pane.
registry - Registry to use.rootPaneContainer - Content pane of this root pane container will be used. The
content is expected to be a JComponent!step - Scaling steps (For example 0.1 is a good value).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||