org.fuin.utils4swing.layout.scalable
Interface ComponentScaler

All Known Implementing Classes:
DefaultComponentScaler, JComponentScaler, JSpinnerScaler

public interface ComponentScaler

Scales (resizes) a special type of component.


Method Summary
 ScaledComponent createScaledComponent(Component comp, ScalableLayoutRegistry registry)
          Creates a container for the original component values.
 Class<? extends Component> getType()
          Returns the type of component this class can scale.
 void scale(ScaledComponent component, double factor, ScalableLayoutRegistry registry)
          Resize the component.
 

Method Detail

getType

Class<? extends Component> getType()
Returns the type of component this class can scale.

Returns:
Component class.

createScaledComponent

ScaledComponent createScaledComponent(Component comp,
                                      ScalableLayoutRegistry registry)
Creates a container for the original component values.

Parameters:
comp - Component (not yet scaled).#
registry - Current registry.
Returns:
Container component.

scale

void scale(ScaledComponent component,
           double factor,
           ScalableLayoutRegistry registry)
Resize the component.

Parameters:
component - Component to resize.
factor - Factor to use.
registry - Current registry.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.