org.fuin.utils4swing.layout.scalable
Class DefaultBorderScaler

java.lang.Object
  extended by org.fuin.utils4swing.layout.scalable.DefaultBorderScaler
All Implemented Interfaces:
BorderScaler

public final class DefaultBorderScaler
extends java.lang.Object
implements BorderScaler

Scales nothing.


Constructor Summary
DefaultBorderScaler()
           
 
Method Summary
 ScaledBorder createScaledBorder(javax.swing.border.Border border, ScalableLayoutRegistry registry)
          Creates a container for the original border values.
 java.lang.Class<? extends javax.swing.border.Border> getType()
          Returns the type of component this class can scale.
 javax.swing.border.Border scale(ScaledBorder original, double factor, ScalableLayoutRegistry registry)
          Resize the Border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBorderScaler

public DefaultBorderScaler()
Method Detail

getType

public final java.lang.Class<? extends javax.swing.border.Border> getType()
Returns the type of component this class can scale.

Specified by:
getType in interface BorderScaler
Returns:
Component class.

createScaledBorder

public ScaledBorder createScaledBorder(javax.swing.border.Border border,
                                       ScalableLayoutRegistry registry)
Creates a container for the original border values.

Specified by:
createScaledBorder in interface BorderScaler
Parameters:
border - Border (not yet scaled).
registry - Current registry.
Returns:
Container component.

scale

public final javax.swing.border.Border scale(ScaledBorder original,
                                             double factor,
                                             ScalableLayoutRegistry registry)
Resize the Border.

Specified by:
scale in interface BorderScaler
Parameters:
original - Original (unchanged) border.
factor - Factor to use.
registry - Current registry.
Returns:
Scaled border.


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