org.softsmithy.lib.swing.icon
Class PercentageZooming

java.lang.Object
  extended by org.softsmithy.lib.swing.icon.PercentageZooming
All Implemented Interfaces:
ZoomingStrategy

public class PercentageZooming
extends Object
implements ZoomingStrategy

Author:
puce TODO: Check name

Constructor Summary
PercentageZooming()
          Creates a new instance of PercentageZooming
PercentageZooming(double percentage)
           
 
Method Summary
 Dimension calculateDimension(int iconWidth, int iconHeight, int innerAreaWidth, int innerAreaHeight)
           
 double getPercentage()
          Getter for property percentage.
 void setPercentage(double percentage)
          Setter for property percentage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentageZooming

public PercentageZooming()
Creates a new instance of PercentageZooming


PercentageZooming

public PercentageZooming(double percentage)
Method Detail

calculateDimension

public Dimension calculateDimension(int iconWidth,
                                    int iconHeight,
                                    int innerAreaWidth,
                                    int innerAreaHeight)
Specified by:
calculateDimension in interface ZoomingStrategy

getPercentage

public double getPercentage()
Getter for property percentage.

Returns:
Value of property percentage.

setPercentage

public void setPercentage(double percentage)
Setter for property percentage.

Parameters:
percentage - New value of property percentage.


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.