|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4swing.layout.scalable.JSpinnerScaler
public final class JSpinnerScaler
Scales a JSpinner. This does not work if the spinner's editor
was set to an editor other than JSpinner.DefaultEditor.
| Constructor Summary | |
|---|---|
JSpinnerScaler()
|
|
| Method Summary | |
|---|---|
ScaledComponent |
createScaledComponent(java.awt.Component comp,
ScalableLayoutRegistry registry)
Creates a container for the original component values. |
java.lang.Class<? extends java.awt.Component> |
getType()
Returns the type of component this class can scale. |
void |
scale(ScaledComponent sc,
double factor,
ScalableLayoutRegistry registry)
Resize the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSpinnerScaler()
| Method Detail |
|---|
public final java.lang.Class<? extends java.awt.Component> getType()
getType in interface ComponentScaler
public final ScaledComponent createScaledComponent(java.awt.Component comp,
ScalableLayoutRegistry registry)
createScaledComponent in interface ComponentScalercomp - Component (not yet scaled).#registry - Current registry.
public final void scale(ScaledComponent sc,
double factor,
ScalableLayoutRegistry registry)
scale in interface ComponentScalersc - Component to resize.factor - Factor to use.registry - Current registry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||