|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4swing.layout.scalable.ScaledComponent
public final class ScaledComponent
Helper class for scaled AWT components that don't have client properties.
| Constructor Summary | |
|---|---|
ScaledComponent(Component comp,
ScalableLayoutRegistry registry)
Constructor with component. |
|
| Method Summary | |
|---|---|
ScaledBorder |
getBorder()
Returns the helper for the border. |
Rectangle |
getBounds()
Returns the original bounds. |
Component |
getComp()
Original component. |
Font |
getFont()
Returns the original font. |
Dimension |
getMaximumSize()
Returns the original maximum size. |
Dimension |
getMinimumSize()
Returns the original minimum size. |
Dimension |
getPreferredSize()
Returns the original preferred size. |
void |
setBounds(Rectangle rectangle)
Sets the original bounds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScaledComponent(Component comp,
ScalableLayoutRegistry registry)
comp - Component (not yet scaled) - Cannot be null.registry - Current registry - Cannot be null.| Method Detail |
|---|
public final Component getComp()
public final Font getFont()
public final Rectangle getBounds()
public final void setBounds(Rectangle rectangle)
rectangle - Original bounds.public final Dimension getPreferredSize()
public final Dimension getMinimumSize()
public final Dimension getMaximumSize()
public final ScaledBorder getBorder()
null if no border was set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||