Class MicroLayoutPolicies.DefaultPlasticPolicy

  • All Implemented Interfaces:
    MicroLayoutPolicy
    Enclosing class:
    MicroLayoutPolicies

    private static final class MicroLayoutPolicies.DefaultPlasticPolicy
    extends java.lang.Object
    implements MicroLayoutPolicy
    Implements the default font lookup for the Plastic L&f family when running in a Windows environment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MicroLayout getMicroLayout​(java.lang.String lafName, javax.swing.UIDefaults table)
      Looks up and returns insets, margins, and gaps that will be used by a Look&Feel to set the component insets, margins and gaps.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultPlasticPolicy

        private DefaultPlasticPolicy()
    • Method Detail

      • getMicroLayout

        public MicroLayout getMicroLayout​(java.lang.String lafName,
                                          javax.swing.UIDefaults table)
        Description copied from interface: MicroLayoutPolicy
        Looks up and returns insets, margins, and gaps that will be used by a Look&Feel to set the component insets, margins and gaps.

        This method is invoked during the L&F component initialization. And the invoker hands over the UIDefaults object used to define the component settings. Hence, the UIDefaults object may be used to look up values as initialized by a super Look&Feel. For example the JGoodies Windows L&F could use the defaults set by the super L&F, the Sun Windows L&F.

        Specified by:
        getMicroLayout in interface MicroLayoutPolicy
        Parameters:
        lafName - the name of the Look&Feel that requests the fonts
        table - the UIDefaults table that can be used to look up fonts of a super L&F
        Returns:
        a micro layout used as default for the components.