Interface SupportsExpandRatio

All Known Subinterfaces:
BoxLayout, DialogWindow, Fragment, FragmentImplementation, Frame, GroupBoxLayout, HBoxLayout, RootWindow, TabWindow, VBoxLayout, Window, WindowImplementation
All Known Implementing Classes:
AbstractBox, DialogWindowImpl, FragmentImpl, GroupBoxImpl, HBoxLayoutImpl, RootWindowImpl, TabWindowImpl, VBoxLayoutImpl, WindowImpl

public interface SupportsExpandRatio
Component container which supports expand ratio of components
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    void
    setExpandRatio(Component component, float ratio)
    Sets expand ratio for the component.
  • Method Details

    • setExpandRatio

      void setExpandRatio(Component component, float ratio)
      Sets expand ratio for the component. The ratio must be greater than or equal to 0.
      Parameters:
      component - component to expand with ratio
      ratio - ratio
    • getExpandRatio

      float getExpandRatio(Component component)
      Parameters:
      component - component for which returns ratio
      Returns:
      ratio for the component, 0.0f by default