Class YRegion

java.lang.Object
javax.swing.plaf.synth.Region
org.jdesktop.swingx.plaf.synth.YRegion

public class YRegion extends Region
Extended Region to register custom component delegates. like XRegion
  • Field Details

    • YLIST

      public static final Region YLIST
  • Constructor Details

    • YRegion

      public YRegion(String name, String dummyUI, boolean subregion, String realUI, Region parent)
      Creates a Region with the specified name.
      Parameters:
      name - Name of the region
      subregion - Whether or not this is a subregion.
      realUI - String that will be returned from component.getUIClassID.
      parent - the parent region which this is extending.
  • Method Details

    • getYRegion

      public static Region getYRegion(JComponent component, boolean useParent)
      Returns a region appropriate for the component.
      Parameters:
      component - the component to get the region for
      useParent - a boolean indicating whether or not to return a fallback of the Region, if available
      Returns:
      a region for the component or null if not available.