ilog.views.swing
Class IlvJComponentGraphic.ComboBoxOptions

java.lang.Object
  extended by ilog.views.swing.IlvJComponentGraphic.AdditionalOptions
      extended by ilog.views.swing.IlvJComponentGraphic.ComboBoxOptions
Enclosing class:
IlvJComponentGraphic

public static class IlvJComponentGraphic.ComboBoxOptions
extends IlvJComponentGraphic.AdditionalOptions

Additional options if the Swing component is a combo box.

Since:
JViews 8.0

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

IlvJComponentGraphic.ComboBoxOptions

public IlvJComponentGraphic.ComboBoxOptions()
The constructor.

Method Detail

setAutoPopupWidth

public void setAutoPopupWidth(boolean enable)
Sets whether the popup width is adjusted to the display width of the combo box. This is enabled by default.

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.

See Also:
isAutoPopupWidth(), setMaximumPopupWidth(int), setMaximumPopupHeight(int)

isAutoPopupWidth

public boolean isAutoPopupWidth()
Returns true if the popup width is adjusted to the display width of the combo box.

See Also:
setAutoPopupWidth(boolean)

setMaximumPopupWidth

public void setMaximumPopupWidth(int width)
Sets the maximum width of the popup of the combo box.

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.

See Also:
getMaximumPopupWidth(), setMaximumPopupZoomFactor(double), setMinimumPopupZoomFactor(double)

getMaximumPopupWidth

public int getMaximumPopupWidth()
Returns the maximum width of the popup of the combo box.

See Also:
setMaximumPopupWidth(int)

setMaximumPopupHeight

public void setMaximumPopupHeight(int height)
Sets the maximum height of the popup of the combo box.

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.

See Also:
getMaximumPopupHeight(), setMaximumPopupZoomFactor(double), setMinimumPopupZoomFactor(double)

getMaximumPopupHeight

public int getMaximumPopupHeight()
Returns the maximum height of the popup of the combo box.

See Also:
setMaximumPopupHeight(int)

setMinimumPopupZoomFactor

public void setMinimumPopupZoomFactor(double factor)
Sets the minimum zoom factor of the popup of the combo box.

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.

See Also:
getMinimumPopupZoomFactor()

getMinimumPopupZoomFactor

public double getMinimumPopupZoomFactor()
Returns the minimum zoom factor of the popup of the combo box.

See Also:
setMinimumPopupZoomFactor(double)

setMaximumPopupZoomFactor

public void setMaximumPopupZoomFactor(double factor)
Sets the maximum zoom factor of the popup of the combo box.

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.

See Also:
getMaximumPopupZoomFactor()

getMaximumPopupZoomFactor

public double getMaximumPopupZoomFactor()
Returns the maximum zoom factor of the popup of the combo box.

See Also:
setMaximumPopupZoomFactor(double)

setKeepingAspectRatio

public void setKeepingAspectRatio(boolean enable)
Sets whether the contents drawn in the popup of the combo box preserves the aspect ratio.

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.

See Also:
isKeepingAspectRatio()

isKeepingAspectRatio

public boolean isKeepingAspectRatio()
Returns true if the contents drawn in the popup of the combo box preserves the aspect ratio.

See Also:
setKeepingAspectRatio(boolean)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.