public static class IlvJComponentGraphic.ComboBoxOptions extends IlvJComponentGraphic.AdditionalOptions
Constructor and Description |
---|
ComboBoxOptions()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaximumPopupHeight()
Returns the maximum height of the pop-up of the combo box.
|
int |
getMaximumPopupWidth()
Returns the maximum width of the pop-up of the combo box.
|
double |
getMaximumPopupZoomFactor()
Returns the maximum zoom factor of the pop-up of the combo box.
|
double |
getMinimumPopupZoomFactor()
Returns the minimum zoom factor of the pop-up of the combo box.
|
boolean |
isAutoPopupWidth()
Returns
true if the pop-up width is adjusted to the display
width of the combo box. |
boolean |
isKeepingAspectRatio()
Returns
true if the contents drawn in the pop-up of the
combo box preserves the aspect ratio. |
void |
setAutoPopupWidth(boolean enable)
Sets whether the pop-up width is adjusted to the display width of the
combo box.
|
void |
setKeepingAspectRatio(boolean enable)
Sets whether the contents drawn in the pop-up of the combo box preserves
the aspect ratio.
|
void |
setMaximumPopupHeight(int height)
Sets the maximum height of the pop-up of the combo box.
|
void |
setMaximumPopupWidth(int width)
Sets the maximum width of the pop-up of the combo box.
|
void |
setMaximumPopupZoomFactor(double factor)
Sets the maximum zoom factor of the pop-up of the combo box.
|
void |
setMinimumPopupZoomFactor(double factor)
Sets the minimum zoom factor of the pop-up of the combo box.
|
public void setAutoPopupWidth(boolean enable)
The automatic width adjustment may cause the pop-up to be displayed smaller than its preferred width. In rare cases, this can cause usability problems. Hence the automatic width adjustment can be switched off.
public boolean isAutoPopupWidth()
true
if the pop-up width is adjusted to the display
width of the combo box.setAutoPopupWidth(boolean)
public void setMaximumPopupWidth(int width)
The combo box zooms according to the view transformer.
If the zoom factor is large, the combo box might be displayed very
large. The pop-up of the combo box zooms accordingly, within the
limits of the minimal and maximal pop-up zoom factor. However, if the
pop-up becomes too large, it may be unusable because it no longer fits
to the screen. This method allows to limit the width of the
pop-up independently from the zoom factor.
The default maximum pop-up width is 1000
.
public int getMaximumPopupWidth()
setMaximumPopupWidth(int)
public void setMaximumPopupHeight(int height)
The combo box zooms according to the view transformer.
If the zoom factor is large, the combo box might be displayed very
large. The pop-up of the combo box zooms accordingly, within the
limits of the minimal and maximal pop-up zoom factor. However, if the
pop-up becomes too large, it may be unusable because it does not fit
anymore to the screen. This method allows to limit the height of the
pop-up independently from the zoom factor.
The default maximum pop-up height is 1000
.
public int getMaximumPopupHeight()
setMaximumPopupHeight(int)
public void setMinimumPopupZoomFactor(double factor)
The combo box zooms according to the view transformer.
The pop-up of the combo box zooms accordingly.
However, if the contents of the pop-up is demagnified too much,
the combo box might become unusable.
This method allows to limit how much demagnified the contents of the
pop-up is drawn.
The default value is 0.1
.
getMinimumPopupZoomFactor()
public double getMinimumPopupZoomFactor()
setMinimumPopupZoomFactor(double)
public void setMaximumPopupZoomFactor(double factor)
The combo box zooms according to the view transformer.
The pop-up of the combo box zooms accordingly.
However, if the contents of the pop-up is magnified too much,
the combo box might become unusable.
This method allows to limit how much magnified the contents of the
pop-up is drawn.
The default value is 1
.
getMaximumPopupZoomFactor()
public double getMaximumPopupZoomFactor()
setMaximumPopupZoomFactor(double)
public void setKeepingAspectRatio(boolean enable)
The combo box zooms according to the view transformer. The view transformer does not necessarily preserve the aspect ratio. However, combo box pop-ups are better usable if they always preserve the aspect ratio. This method allows to force preserving the aspect ratio of the combo box even if the view does not preserve the aspect ratio.
Preserving the aspect ratio is enabled by default.
isKeepingAspectRatio()
public boolean isKeepingAspectRatio()
true
if the contents drawn in the pop-up of the
combo box preserves the aspect ratio.setKeepingAspectRatio(boolean)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.