public class ScaleFactorConstraints
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
factorX |
double |
factorY |
boolean |
maintainAspectRatio |
double |
pixelAspectRatio
Pixel width divided by pixel height.
|
boolean |
scaleToFit |
| Constructor and Description |
|---|
ScaleFactorConstraints()
Creates a ScaleFactorConstraints object with all of its
set to the default values.
|
ScaleFactorConstraints(double factorX,
double factorY,
boolean maintainAspectRatio)
Creates a ScaleFactorConstraints object with all of its
fields set to the passed-in arguments.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFactorX() |
double |
getFactorY() |
double |
getPixelAspectRatio() |
boolean |
isMaintainAspectRatio() |
boolean |
isScaleToFit() |
void |
setConstraints(double factorX,
double factorY,
boolean maintainAspectRatio) |
void |
setFactorX(double d) |
void |
setFactorY(double d) |
void |
setMaintainAspectRatio(boolean b) |
void |
setPixelAspectRatio(double d) |
void |
setScaleToFit(boolean b) |
public double factorX
public double factorY
public double pixelAspectRatio
public boolean maintainAspectRatio
public boolean scaleToFit
public ScaleFactorConstraints()
public ScaleFactorConstraints(double factorX,
double factorY,
boolean maintainAspectRatio)
factorX - the scale factor for the x axis of the component.factorY - the scale factor for the y axis of the component.maintainAspectRatio - set to true if the aspect ratio of the
component shall be maintained.public void setConstraints(double factorX,
double factorY,
boolean maintainAspectRatio)
public double getFactorX()
public double getFactorY()
public void setFactorX(double d)
public void setFactorY(double d)
public void setPixelAspectRatio(double d)
public double getPixelAspectRatio()
public boolean isMaintainAspectRatio()
public void setMaintainAspectRatio(boolean b)
public boolean isScaleToFit()
public void setScaleToFit(boolean b)