|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.swing.IlvJComponentGraphic.AdditionalOptions
ilog.views.swing.IlvJComponentGraphic.ComboBoxOptions
public static class IlvJComponentGraphic.ComboBoxOptions
Additional options if the Swing component is a combo box.
| Constructor Summary | |
|---|---|
IlvJComponentGraphic.ComboBoxOptions()
The constructor. |
|
| Method Summary | |
|---|---|
int |
getMaximumPopupHeight()
Returns the maximum height of the popup of the combo box. |
int |
getMaximumPopupWidth()
Returns the maximum width of the popup of the combo box. |
double |
getMaximumPopupZoomFactor()
Returns the maximum zoom factor of the popup of the combo box. |
double |
getMinimumPopupZoomFactor()
Returns the minimum zoom factor of the popup of the combo box. |
boolean |
isAutoPopupWidth()
Returns true if the popup width is adjusted to the display
width of the combo box. |
boolean |
isKeepingAspectRatio()
Returns true if the contents drawn in the popup of the
combo box preserves the aspect ratio. |
void |
setAutoPopupWidth(boolean enable)
Sets whether the popup width is adjusted to the display width of the combo box. |
void |
setKeepingAspectRatio(boolean enable)
Sets whether the contents drawn in the popup of the combo box preserves the aspect ratio. |
void |
setMaximumPopupHeight(int height)
Sets the maximum height of the popup of the combo box. |
void |
setMaximumPopupWidth(int width)
Sets the maximum width of the popup of the combo box. |
void |
setMaximumPopupZoomFactor(double factor)
Sets the maximum zoom factor of the popup of the combo box. |
void |
setMinimumPopupZoomFactor(double factor)
Sets the minimum zoom factor of the popup of the combo box. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvJComponentGraphic.ComboBoxOptions()
| Method Detail |
|---|
public void setAutoPopupWidth(boolean enable)
The automatic width adjustment may cause the popup 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.
isAutoPopupWidth(),
setMaximumPopupWidth(int),
setMaximumPopupHeight(int)public boolean isAutoPopupWidth()
true if the popup 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 popup of the combo box zooms accordingly, within the
limits of the minimal and maximal popup zoom factor. However, if the
popup becomes too large, it may be unusable because it no longer fits
to the screen. This method allows to limit the width of the
popup independently from the zoom factor.
The default maximum popup width is 1000.
getMaximumPopupWidth(),
setMaximumPopupZoomFactor(double),
setMinimumPopupZoomFactor(double)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 popup of the combo box zooms accordingly, within the
limits of the minimal and maximal popup zoom factor. However, if the
popup 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
popup independently from the zoom factor.
The default maximum popup height is 1000.
getMaximumPopupHeight(),
setMaximumPopupZoomFactor(double),
setMinimumPopupZoomFactor(double)public int getMaximumPopupHeight()
setMaximumPopupHeight(int)public void setMinimumPopupZoomFactor(double factor)
The combo box zooms according to the view transformer.
The popup of the combo box zooms accordingly.
However, if the contents of the popup is demagnified too much,
the combo box might become unusable.
This method allows to limit how much demagnified the contents of the
popup 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 popup of the combo box zooms accordingly.
However, if the contents of the popup is magnified too much,
the combo box might become unusable.
This method allows to limit how much magnified the contents of the
popup 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 popups 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 popup of the
combo box preserves the aspect ratio.
setKeepingAspectRatio(boolean)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||