public class PercentageZooming extends Object implements ZoomingStrategy
Constructor and Description |
---|
PercentageZooming()
Creates a new instance of PercentageZooming
|
PercentageZooming(double percentage) |
Modifier and Type | Method and Description |
---|---|
Dimension |
calculateDimension(int iconWidth,
int iconHeight,
int innerAreaWidth,
int innerAreaHeight) |
double |
getPercentage()
Getter for property percentage.
|
void |
setPercentage(double percentage)
Setter for property percentage.
|
public PercentageZooming()
public PercentageZooming(double percentage)
public Dimension calculateDimension(int iconWidth, int iconHeight, int innerAreaWidth, int innerAreaHeight)
calculateDimension
in interface ZoomingStrategy
public double getPercentage()
public void setPercentage(double percentage)
percentage
- New value of property percentage.Copyright © 2002–2016 SoftSmithy. All rights reserved.