Class TadukooLookAndFeel

All Implemented Interfaces:
Serializable

public class TadukooLookAndFeel extends MetalLookAndFeel
Tadukoo Look & Feel is a Look & Feel currently extending MetalLookAndFeel that allows for easier customization of the Look & Feel. Through the use of specifying a TadukooTheme, you can customize paints, fonts, shapes, and borders of components, and even swap out the Component UI classes themselves if that's not custom enough for you.
Since:
Alpha v.0.2
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
See Also:
  • Field Details

  • Constructor Details

    • TadukooLookAndFeel

      public TadukooLookAndFeel() throws IOException, FontFormatException
      Constructs a Tadukoo Look & Feel with the default theme.
      Throws:
      IOException - If font loading goes wrong in creating default theme
      FontFormatException - If font loading goes wrong in creating default theme
    • TadukooLookAndFeel

      public TadukooLookAndFeel(TadukooTheme theme)
      Constructs a Tadukoo Look & Feel with the given theme.
      Parameters:
      theme - The theme to use for the Look & Feel
  • Method Details

    • getTheme

      public TadukooTheme getTheme()
      Returns:
      The TadukooTheme to use in the Look & Feel
    • getName

      public String getName()
      Overrides:
      getName in class MetalLookAndFeel
      Returns:
      The name of this look and feel. This returns "Tadukoo"
    • getID

      public String getID()
      Overrides:
      getID in class MetalLookAndFeel
      Returns:
      The identifier of this look and feel. This returns "Tadukoo"
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class MetalLookAndFeel
      Returns:
      A short description of this look and feel. This returns "The Tadukoo Look and Feel"
    • isNativeLookAndFeel

      public boolean isNativeLookAndFeel()
      Overrides:
      isNativeLookAndFeel in class MetalLookAndFeel
      Returns:
      false; TadukooLookAndFeel is not a native look and feel
    • isSupportedLookAndFeel

      public boolean isSupportedLookAndFeel()
      Overrides:
      isSupportedLookAndFeel in class MetalLookAndFeel
      Returns:
      true; TadukooLookAndFeel can be run on any platform
    • initClassDefaults

      protected void initClassDefaults(UIDefaults table)
      Populates the UIDefaults table with mappings for the Component UI classes to be used in the Look & Feel. Tadukoo Look & Feel has its own Component UI classes, but you are able to specify different ones in the theme if you pass one in via the constructor.
      Overrides:
      initClassDefaults in class MetalLookAndFeel
      Parameters:
      table - The UIDefaults table to add the mappings to
    • initSystemColorDefaults

      protected void initSystemColorDefaults(UIDefaults table)
      Populates table with system colors. Currently just adds the custom systemColorDefaults from TadukooTheme. In the future, there will be more settings on the theme for here.
      Overrides:
      initSystemColorDefaults in class MetalLookAndFeel
      Parameters:
      table - the UIDefaults object the values are added to
      Throws:
      NullPointerException - if table is null
    • initComponentDefaults

      protected void initComponentDefaults(UIDefaults table)
      Populates the UIDefaults table with mappings for defaults on the Components themselves. This includes anything that can be customized on the theme, such as paints and fonts.
      Overrides:
      initComponentDefaults in class MetalLookAndFeel
      Parameters:
      table - The UIDefaults table to add the mappings to