looks-2.2.0

 final PlasticXPRadioButtonUI INSTANCE = new PlasticXPRadioButtonUI();
  
  public static ComponentUI createUI(JComponent b)
  {
    return INSTANCE;
  }
  
  protected BasicButtonListener createButtonListener(AbstractButton b)
  {
    return new ActiveBasicButtonListener(b);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.PlasticXPRadioButtonUI
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic;

import com.jgoodies.looks.common.ExtBasicArrowButtonHandler;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.ButtonModel;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;

final class PlasticXPSpinnerUI$SpinnerXPArrowButton
  extends PlasticArrowButton
{
  PlasticXPSpinnerUI$SpinnerXPArrowButton(int direction, ExtBasicArrowButtonHandler handler)
  {
    super(direction, UIManager.getInt("ScrollBar.width") - 1, false);
    addActionListener(handler);
    addMouseListener(handler);
  }
  
  protected int calculateArrowHeight(int height, int width)
  {
    int arrowHeight = Math.min((height - 4) / 3, (width - 4) / 3);
    return Math.max(arrowHeight, 3);
  }
  
  protected boolean isPaintingNorthBottom()
  {
    return true;
  }
  
  protected int calculateArrowOffset()
  {
    return 1;
  }
  
  protected void paintNorth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset, boolean paintBottom)
  {
    if (!isFreeStanding)
    {
      height++;
      g.translate(0, -1);
      if (!leftToRight)
      {
        width++;
        g.translate(-1, 0);
      }
      else
      {
        width += 2;
      }
    }
    g.setColor(arrowColor);
    int startY = 1 + (h + 1 - arrowHeight) / 2;
    int startX = w / 2;
    for (int line = 0; line < arrowHeight; line++) {
      g.fillRect(startX - line - arrowOffset, startY + line, 2 * (line + 1), 1);
    }
    paintNorthBorder(g, isEnabled, width, height, paintBottom);
    if (!isFreeStanding)
    {
      height--;
      g.translate(0, 1);
      if (!leftToRight)
      {
        width--;
        g.translate(1, 0);
      }
      else
      {
        width -= 2;
      }
    }
  }
  
  private void paintNorthBorder(Graphics g, boolean isEnabled, int w, int h, boolean paintBottom)
  {
    if (isEnabled)
    {
      boolean isPressed = (model.isPressed()) && (model.isArmed());
      if (isPressed) {
        PlasticXPUtils.drawPressedButtonBorder(g, 0, 1, w - 2, h);
      } else {
        PlasticXPUtils.drawPlainButtonBorder(g, 0, 1, w - 2, h);
      }
    }
    else
    {
      PlasticXPUtils.drawDisabledButtonBorder(g, 0, 1, w - 2, h + 1);
    }
    g.setColor(isEnabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlShadow());
    
    g.fillRect(0, 1, 1, 1);
    if (paintBottom) {
      g.fillRect(0, h - 1, w - 1, 1);
    }
  }
  
  protected void paintSouth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset)
  {
    if (!isFreeStanding)
    {
      height++;
      if (!leftToRight)
      {
        width++;
        g.translate(-1, 0);
      }
      else
      {
        width += 2;
      }
    }
    g.setColor(arrowColor);
    
    int startY = (h + 0 - arrowHeight) / 2 + arrowHeight - 2;
    int startX = w / 2;
    for (int line = 0; line < arrowHeight; line++) {
      g.fillRect(startX - line - arrowOffset, startY - line, 2 * (line + 1), 1);
    }
    paintSouthBorder(g, isEnabled, width, height);
    if (!isFreeStanding)
    {
      height--;
      if (!leftToRight)
      {
        width--;
        g.translate(1, 0);
      }
      else
      {
        width -= 2;
      }
    }
  }
  
  private void paintSouthBorder(Graphics g, boolean isEnabled, int w, int h)
  {
    if (isEnabled)
    {
      boolean isPressed = (model.isPressed()) && (model.isArmed());
      if (isPressed) {
        PlasticXPUtils.drawPressedButtonBorder(g, 0, -2, w - 2, h + 1);
      } else {
        PlasticXPUtils.drawPlainButtonBorder(g, 0, -2, w - 2, h + 1);
      }
    }
    else
    {
      PlasticXPUtils.drawDisabledButtonBorder(g, 0, -2, w - 2, h + 1);
    }
    g.setColor(isEnabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlShadow());
    
    g.fillRect(0, h - 2, 1, 1);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.PlasticXPSpinnerUI.SpinnerXPArrowButton
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic;

import com.jgoodies.looks.common.ExtBasicArrowButtonHandler;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.ButtonModel;
import javax.swing.JComponent;
import javax.swing.UIManager;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.metal.MetalLookAndFeel;

public final class PlasticXPSpinnerUI
  extends PlasticSpinnerUI
{
  public static ComponentUI createUI(JComponent b)
  {
    return new PlasticXPSpinnerUI();
  }
  
  private static final ExtBasicArrowButtonHandler NEXT_BUTTON_HANDLER = new ExtBasicArrowButtonHandler("increment", true);
  private static final ExtBasicArrowButtonHandler PREVIOUS_BUTTON_HANDLER = new ExtBasicArrowButtonHandler("decrement", false);
  
  protected Component createPreviousButton()
  {
    return new SpinnerXPArrowButton(5, PREVIOUS_BUTTON_HANDLER);
  }
  
  protected Component createNextButton()
  {
    return new SpinnerXPArrowButton(1, NEXT_BUTTON_HANDLER);
  }
  
  private static final class SpinnerXPArrowButton
    extends PlasticArrowButton
  {
    SpinnerXPArrowButton(int direction, ExtBasicArrowButtonHandler handler)
    {
      super(UIManager.getInt("ScrollBar.width") - 1, false);
      addActionListener(handler);
      addMouseListener(handler);
    }
    
    protected int calculateArrowHeight(int height, int width)
    {
      int arrowHeight = Math.min((height - 4) / 3, (width - 4) / 3);
      return Math.max(arrowHeight, 3);
    }
    
    protected boolean isPaintingNorthBottom()
    {
      return true;
    }
    
    protected int calculateArrowOffset()
    {
      return 1;
    }
    
    protected void paintNorth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset, boolean paintBottom)
    {
      if (!isFreeStanding)
      {
        height++;
        g.translate(0, -1);
        if (!leftToRight)
        {
          width++;
          g.translate(-1, 0);
        }
        else
        {
          width += 2;
        }
      }
      g.setColor(arrowColor);
      int startY = 1 + (h + 1 - arrowHeight) / 2;
      int startX = w / 2;
      for (int line = 0; line < arrowHeight; line++) {
        g.fillRect(startX - line - arrowOffset, startY + line, 2 * (line + 1), 1);
      }
      paintNorthBorder(g, isEnabled, width, height, paintBottom);
      if (!isFreeStanding)
      {
        height--;
        g.translate(0, 1);
        if (!leftToRight)
        {
          width--;
          g.translate(1, 0);
        }
        else
        {
          width -= 2;
        }
      }
    }
    
    private void paintNorthBorder(Graphics g, boolean isEnabled, int w, int h, boolean paintBottom)
    {
      if (isEnabled)
      {
        boolean isPressed = (model.isPressed()) && (model.isArmed());
        if (isPressed) {
          PlasticXPUtils.drawPressedButtonBorder(g, 0, 1, w - 2, h);
        } else {
          PlasticXPUtils.drawPlainButtonBorder(g, 0, 1, w - 2, h);
        }
      }
      else
      {
        PlasticXPUtils.drawDisabledButtonBorder(g, 0, 1, w - 2, h + 1);
      }
      g.setColor(isEnabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlShadow());
      
      g.fillRect(0, 1, 1, 1);
      if (paintBottom) {
        g.fillRect(0, h - 1, w - 1, 1);
      }
    }
    
    protected void paintSouth(Graphics g, boolean leftToRight, boolean isEnabled, Color arrowColor, boolean isPressed, int width, int height, int w, int h, int arrowHeight, int arrowOffset)
    {
      if (!isFreeStanding)
      {
        height++;
        if (!leftToRight)
        {
          width++;
          g.translate(-1, 0);
        }
        else
        {
          width += 2;
        }
      }
      g.setColor(arrowColor);
      
      int startY = (h + 0 - arrowHeight) / 2 + arrowHeight - 2;
      int startX = w / 2;
      for (int line = 0; line < arrowHeight; line++) {
        g.fillRect(startX - line - arrowOffset, startY - line, 2 * (line + 1), 1);
      }
      paintSouthBorder(g, isEnabled, width, height);
      if (!isFreeStanding)
      {
        height--;
        if (!leftToRight)
        {
          width--;
          g.translate(1, 0);
        }
        else
        {
          width -= 2;
        }
      }
    }
    
    private void paintSouthBorder(Graphics g, boolean isEnabled, int w, int h)
    {
      if (isEnabled)
      {
        boolean isPressed = (model.isPressed()) && (model.isArmed());
        if (isPressed) {
          PlasticXPUtils.drawPressedButtonBorder(g, 0, -2, w - 2, h + 1);
        } else {
          PlasticXPUtils.drawPlainButtonBorder(g, 0, -2, w - 2, h + 1);
        }
      }
      else
      {
        PlasticXPUtils.drawDisabledButtonBorder(g, 0, -2, w - 2, h + 1);
      }
      g.setColor(isEnabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlShadow());
      
      g.fillRect(0, h - 2, 1, 1);
    }
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.PlasticXPSpinnerUI
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic;

import javax.swing.JComponent;
import javax.swing.border.Border;
import javax.swing.plaf.ComponentUI;

public final class PlasticXPToolBarUI
  extends PlasticToolBarUI
{
  public static ComponentUI createUI(JComponent b)
  {
    return new PlasticXPToolBarUI();
  }
  
  protected Border createRolloverBorder()
  {
    return PlasticXPBorders.getRolloverButtonBorder();
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.PlasticXPToolBarUI
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic;

import com.jgoodies.looks.LookUtils;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.plaf.metal.MetalLookAndFeel;

public final class PlasticXPUtils
{
  static void drawPlainButtonBorder(Graphics g, int x, int y, int w, int h)
  {
    drawButtonBorder(g, x, y, w, h, PlasticLookAndFeel.getControl(), PlasticLookAndFeel.getControlDarkShadow(), LookUtils.getSlightlyBrighter(PlasticLookAndFeel.getControlDarkShadow(), 1.25F));
  }
  
  static void drawPressedButtonBorder(Graphics g, int x, int y, int w, int h)
  {
    drawPlainButtonBorder(g, x, y, w, h);
    Color darkColor = translucentColor(PlasticLookAndFeel.getControlDarkShadow(), 128);
    
    Color lightColor = translucentColor(PlasticLookAndFeel.getControlHighlight(), 80);
    
    g.translate(x, y);
    g.setColor(darkColor);
    g.fillRect(2, 1, w - 4, 1);
    
    g.setColor(lightColor);
    g.fillRect(2, h - 2, w - 4, 1);
    g.translate(-x, -y);
  }
  
  static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h)
  {
    drawPlainButtonBorder(g, x, y, w, h);
    drawInnerButtonDecoration(g, x, y, w, h, PlasticLookAndFeel.getPrimaryControlDarkShadow());
  }
  
  static void drawFocusedButtonBorder(Graphics g, int x, int y, int w, int h)
  {
    drawPlainButtonBorder(g, x, y, w, h);
    drawInnerButtonDecoration(g, x, y, w, h, PlasticLookAndFeel.getFocusColor());
  }
  
  static void drawDisabledButtonBorder(Graphics g, int x, int y, int w, int h)
  {
    drawButtonBorder(g, x, y, w, h, PlasticLookAndFeel.getControl(), MetalLookAndFeel.getControlShadow(), LookUtils.getSlightlyBrighter(MetalLookAndFeel.getControlShadow()));
  }
  
  public static void drawButtonBorder(Graphics g, int x, int y, int w, int h, Color backgroundColor, Color edgeColor, Color cornerColor)
  {
    g.translate(x, y);
    
    g.setColor(edgeColor);
    drawRect(g, 0, 0, w - 1, h - 1);
    
    g.setColor(cornerColor);
    g.fillRect(0, 0, 2, 2);
    g.fillRect(0, h - 2, 2, 2);
    g.fillRect(w - 2, 0, 2, 2);
    g.fillRect(w - 2, h - 2, 2, 2);
    
    g.setColor(backgroundColor);
    g.fillRect(0, 0, 1, 1);
    g.fillRect(0, h - 1, 1, 1);
    g.fillRect(w - 1, 0, 1, 1);
    g.fillRect(w - 1, h - 1, 1, 1);
    
    g.translate(-x, -y);
  }
  
  private static void drawInnerButtonDecoration(Graphics g, int x, int y, int w, int h, Color baseColor)
  {
    Color lightColor = translucentColor(baseColor, 90);
    Color mediumColor = translucentColor(baseColor, 120);
    Color darkColor = translucentColor(baseColor, 200);
    
    g.translate(x, y);
    g.setColor(lightColor);
    g.fillRect(2, 1, w - 4, 1);
    
    g.setColor(mediumColor);
    g.fillRect(1, 2, 1, h - 4);
    g.fillRect(w - 2, 2, 1, h - 4);
    drawRect(g, 2, 2, w - 5, h - 5);
    
    g.setColor(darkColor);
    g.fillRect(2, h - 2, w - 4, 1);
    g.translate(-x, -y);
  }
  
  static void drawRect(Graphics g, int x, int y, int w, int h)
  {
    g.fillRect(x, y, w + 1, 1);
    g.fillRect(x, y + 1, 1, h);
    g.fillRect(x + 1, y + h, w, 1);
    g.fillRect(x + w, y + 1, 1, h);
  }
  
  private static Color translucentColor(Color baseColor, int alpha)
  {
    return new Color(baseColor.getRed(), baseColor.getGreen(), baseColor.getBlue(), alpha);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.PlasticXPUtils
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public abstract class AbstractSkyTheme
  extends SkyBluer
{
  private static final ColorUIResource SECONDARY2 = new ColorUIResource(164, 164, 164);
  private static final ColorUIResource SECONDARY3 = new ColorUIResource(225, 225, 225);
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.GRAY_DARK;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.BLUE_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.BLUE_LOW_LIGHTEST;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUM;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return SECONDARY2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return SECONDARY3;
  }
  
  public ColorUIResource getPrimaryControlShadow()
  {
    return getPrimary3();
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return getPrimary1();
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.maxBumpsWidth", null, "ScrollBar.thumbHighlight", getPrimaryControlHighlight() };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.AbstractSkyTheme
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.plaf.ColorUIResource;

public class BrownSugar
  extends InvertedColorTheme
{
  private final ColorUIResource softWhite = new ColorUIResource(165, 157, 143);
  private final ColorUIResource primary1 = new ColorUIResource(83, 83, 61);
  private final ColorUIResource primary2 = new ColorUIResource(115, 107, 82);
  private final ColorUIResource primary3 = new ColorUIResource(156, 156, 123);
  private final ColorUIResource secondary1 = new ColorUIResource(35, 33, 29);
  private final ColorUIResource secondary2 = new ColorUIResource(105, 99, 87);
  private final ColorUIResource secondary3 = new ColorUIResource(92, 87, 76);
  
  public String getName()
  {
    return "Brown Sugar";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return primary1;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return primary2;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return primary3;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return secondary1;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return secondary2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return secondary3;
  }
  
  protected ColorUIResource getSoftWhite()
  {
    return softWhite;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.BrownSugar
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import java.awt.Color;
import javax.swing.plaf.ColorUIResource;

final class Colors
{
  static final ColorUIResource GRAY_DARKEST = new ColorUIResource(64, 64, 64);
  static final ColorUIResource GRAY_DARKER = new ColorUIResource(82, 82, 82);
  static final ColorUIResource GRAY_DARK = new ColorUIResource(90, 90, 90);
  static final ColorUIResource GRAY_MEDIUMDARK = new ColorUIResource(110, 110, 110);
  static final ColorUIResource GRAY_MEDIUM = new ColorUIResource(128, 128, 128);
  static final ColorUIResource GRAY_MEDIUMLIGHT = new ColorUIResource(150, 150, 150);
  static final ColorUIResource GRAY_LIGHT = new ColorUIResource(170, 170, 170);
  static final ColorUIResource GRAY_LIGHTER = new ColorUIResource(220, 220, 220);
  static final ColorUIResource GRAY_LIGHTER2 = new ColorUIResource(230, 230, 230);
  static final ColorUIResource GRAY_LIGHTEST = new ColorUIResource(240, 240, 240);
  static final ColorUIResource BROWN_LIGHTEST = new ColorUIResource(242, 241, 238);
  static final ColorUIResource BLUE_LOW_MEDIUM = new ColorUIResource(166, 202, 240);
  static final ColorUIResource BLUE_LOW_LIGHTEST = new ColorUIResource(195, 212, 232);
  static final ColorUIResource BLUE_MEDIUM_DARKEST = new ColorUIResource(44, 73, 135);
  static final ColorUIResource BLUE_MEDIUM_DARK = new ColorUIResource(49, 106, 196);
  static final ColorUIResource BLUE_MEDIUM_MEDIUM = new ColorUIResource(85, 115, 170);
  static final ColorUIResource BLUE_MEDIUM_LIGHTEST = new ColorUIResource(172, 210, 248);
  static final ColorUIResource GREEN_LOW_DARK = new ColorUIResource(75, 148, 75);
  static final ColorUIResource GREEN_LOW_MEDIUM = new ColorUIResource(112, 190, 112);
  static final ColorUIResource GREEN_LOW_LIGHTEST = new ColorUIResource(200, 222, 200);
  static final ColorUIResource GREEN_CHECK = new ColorUIResource(33, 161, 33);
  static final ColorUIResource PINK_HIGH_DARK = new ColorUIResource(128, 0, 128);
  static final ColorUIResource PINK_LOW_DARK = new ColorUIResource(128, 70, 128);
  static final ColorUIResource PINK_LOW_MEDIUM = new ColorUIResource(190, 150, 190);
  static final ColorUIResource PINK_LOW_LIGHTER = new ColorUIResource(233, 207, 233);
  static final ColorUIResource RED_LOW_DARK = new ColorUIResource(128, 70, 70);
  static final ColorUIResource RED_LOW_MEDIUM = new ColorUIResource(190, 112, 112);
  static final ColorUIResource RED_LOW_LIGHTER = new ColorUIResource(222, 200, 200);
  static final ColorUIResource YELLOW_LOW_MEDIUMDARK = new ColorUIResource(182, 149, 18);
  static final ColorUIResource YELLOW_LOW_MEDIUM = new ColorUIResource(244, 214, 96);
  static final ColorUIResource YELLOW_LOW_LIGHTEST = new ColorUIResource(249, 225, 131);
  static final ColorUIResource BLUE_FOCUS = BLUE_MEDIUM_LIGHTEST;
  static final ColorUIResource ORANGE_FOCUS = new ColorUIResource(245, 165, 16);
  static final ColorUIResource YELLOW_FOCUS = new ColorUIResource(255, 223, 63);
  static final ColorUIResource GRAY_FOCUS = new ColorUIResource(Color.LIGHT_GRAY);
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.Colors
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.plaf.ColorUIResource;

public class DarkStar
  extends InvertedColorTheme
{
  private final ColorUIResource softWhite = new ColorUIResource(154, 154, 154);
  private final ColorUIResource primary1 = new ColorUIResource(83, 83, 61);
  private final ColorUIResource primary2 = new ColorUIResource(115, 107, 82);
  private final ColorUIResource primary3 = new ColorUIResource(156, 156, 123);
  private final ColorUIResource secondary1 = new ColorUIResource(32, 32, 32);
  private final ColorUIResource secondary2 = new ColorUIResource(96, 96, 96);
  private final ColorUIResource secondary3 = new ColorUIResource(84, 84, 84);
  
  public String getName()
  {
    return "Dark Star";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return primary1;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return primary2;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return primary3;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return secondary1;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return secondary2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return secondary3;
  }
  
  protected ColorUIResource getSoftWhite()
  {
    return softWhite;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DarkStar
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class DesertBlue
  extends DesertBluer
{
  public String getName()
  {
    return "Desert Blue";
  }
  
  private static final ColorUIResource SECONDARY2 = new ColorUIResource(148, 144, 140);
  private static final ColorUIResource SECONDARY3 = new ColorUIResource(211, 210, 204);
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.GRAY_DARK;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.BLUE_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.BLUE_LOW_LIGHTEST;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUM;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return SECONDARY2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return SECONDARY3;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.BLUE_MEDIUM_DARKEST;
  }
  
  public ColorUIResource getFocusColor()
  {
    return PlasticLookAndFeel.getHighContrastFocusColorsEnabled() ? Colors.YELLOW_FOCUS : Colors.BLUE_MEDIUM_DARK;
  }
  
  public ColorUIResource getPrimaryControlShadow()
  {
    return getPrimary3();
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return getPrimary1();
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.is3DEnabled", Boolean.FALSE, "ScrollBar.thumbHighlight", getPrimaryControlHighlight(), "ScrollBar.maxBumpsWidth", null };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DesertBlue
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import javax.swing.plaf.ColorUIResource;

public class DesertBluer
  extends SkyBluer
{
  private final ColorUIResource primary1 = new ColorUIResource(10, 36, 106);
  private final ColorUIResource primary2 = new ColorUIResource(85, 115, 170);
  private final ColorUIResource primary3 = new ColorUIResource(172, 210, 248);
  private final ColorUIResource secondary2 = new ColorUIResource(148, 144, 140);
  private final ColorUIResource secondary3 = new ColorUIResource(212, 208, 200);
  
  public String getName()
  {
    return "Desert Bluer";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return primary1;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return primary2;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return primary3;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUM;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return secondary2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return secondary3;
  }
  
  public ColorUIResource getTextHighlightColor()
  {
    return getPrimary1();
  }
  
  public ColorUIResource getHighlightedTextColor()
  {
    return getWhite();
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return getPrimary1();
  }
  
  public ColorUIResource getFocusColor()
  {
    return PlasticLookAndFeel.getHighContrastFocusColorsEnabled() ? Colors.ORANGE_FOCUS : super.getFocusColor();
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DesertBluer
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.plaf.ColorUIResource;

public class DesertGreen
  extends DesertBlue
{
  public String getName()
  {
    return "Desert Green";
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.GREEN_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.GREEN_LOW_LIGHTEST;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.GRAY_DARKER;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DesertGreen
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.plaf.ColorUIResource;

public class DesertRed
  extends DesertBlue
{
  public String getName()
  {
    return "Desert Red";
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.RED_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.RED_LOW_LIGHTER;
  }
  
  public ColorUIResource getFocusColor()
  {
    return Colors.PINK_LOW_DARK;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.GRAY_DARKER;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DesertRed
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class DesertYellow
  extends DesertBlue
{
  public String getName()
  {
    return "Desert Yellow";
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.YELLOW_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.YELLOW_LOW_LIGHTEST;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.GRAY_DARKER;
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return Colors.YELLOW_LOW_MEDIUMDARK;
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.is3DEnabled", Boolean.TRUE, "ScrollBar.maxBumpsWidth", new Integer(30) };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.DesertYellow
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class ExperienceBlue
  extends DesertBluer
{
  public String getName()
  {
    return "Experience Blue";
  }
  
  protected static final ColorUIResource LUNA_BACKGROUND = new ColorUIResource(236, 233, 216);
  protected static final ColorUIResource LUNA_BACKGROUND_DARKER = new ColorUIResource(189, 190, 176);
  private static final ColorUIResource SECONDARY1 = Colors.GRAY_MEDIUM;
  private static final ColorUIResource SECONDARY2 = LUNA_BACKGROUND_DARKER;
  private static final ColorUIResource SECONDARY3 = LUNA_BACKGROUND;
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.BLUE_MEDIUM_DARK;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.BLUE_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.BLUE_LOW_LIGHTEST;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return SECONDARY1;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return SECONDARY2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return SECONDARY3;
  }
  
  public ColorUIResource getFocusColor()
  {
    return Colors.ORANGE_FOCUS;
  }
  
  public ColorUIResource getPrimaryControlShadow()
  {
    return getPrimary3();
  }
  
  public ColorUIResource getMenuSelectedBackground()
  {
    return getPrimary1();
  }
  
  public ColorUIResource getMenuSelectedForeground()
  {
    return WHITE;
  }
  
  public ColorUIResource getMenuItemBackground()
  {
    return WHITE;
  }
  
  public ColorUIResource getToggleButtonCheckColor()
  {
    return Colors.GREEN_CHECK;
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.thumbHighlight", getPrimaryControlHighlight(), "ScrollBar.maxBumpsWidth", new Integer(22) };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.ExperienceBlue
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.plaf.ColorUIResource;

public class ExperienceGreen
  extends ExperienceBlue
{
  public String getName()
  {
    return "Experience Green";
  }
  
  private static final ColorUIResource FOCUS = new ColorUIResource(245, 165, 16);
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.GREEN_LOW_DARK;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.GREEN_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.GREEN_LOW_LIGHTEST;
  }
  
  public ColorUIResource getFocusColor()
  {
    return FOCUS;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.ExperienceGreen
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class ExperienceRoyale
  extends DesertBluer
{
  public String getName()
  {
    return "Experience Royale";
  }
  
  protected static final ColorUIResource ROYALE_BACKGROUND = new ColorUIResource(235, 233, 237);
  protected static final ColorUIResource ROYALE_BACKGROUND_DARKER = new ColorUIResource(167, 166, 170);
  protected static final ColorUIResource ROYALE_SELECTION = new ColorUIResource(51, 94, 168);
  private static final ColorUIResource SECONDARY1 = Colors.GRAY_MEDIUM;
  private static final ColorUIResource SECONDARY2 = ROYALE_BACKGROUND_DARKER;
  private static final ColorUIResource SECONDARY3 = ROYALE_BACKGROUND;
  
  protected ColorUIResource getPrimary1()
  {
    return ROYALE_SELECTION;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.BLUE_LOW_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.BLUE_LOW_LIGHTEST;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return SECONDARY1;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return SECONDARY2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return SECONDARY3;
  }
  
  public ColorUIResource getFocusColor()
  {
    return Colors.ORANGE_FOCUS;
  }
  
  public ColorUIResource getPrimaryControlShadow()
  {
    return getPrimary3();
  }
  
  public ColorUIResource getMenuSelectedBackground()
  {
    return getPrimary1();
  }
  
  public ColorUIResource getMenuSelectedForeground()
  {
    return WHITE;
  }
  
  public ColorUIResource getMenuItemBackground()
  {
    return WHITE;
  }
  
  public ColorUIResource getToggleButtonCheckColor()
  {
    return Colors.GREEN_CHECK;
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.thumbHighlight", getPrimaryControlHighlight(), "ScrollBar.maxBumpsWidth", new Integer(22) };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.ExperienceRoyale
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticTheme;
import java.awt.Color;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public abstract class InvertedColorTheme
  extends PlasticTheme
{
  private final ColorUIResource softWhite = new ColorUIResource(154, 154, 154);
  private final ColorUIResource primary1 = new ColorUIResource(83, 83, 61);
  private final ColorUIResource primary2 = new ColorUIResource(115, 107, 82);
  private final ColorUIResource primary3 = new ColorUIResource(156, 156, 123);
  private final ColorUIResource secondary1 = new ColorUIResource(32, 32, 32);
  private final ColorUIResource secondary2 = new ColorUIResource(96, 96, 96);
  private final ColorUIResource secondary3 = new ColorUIResource(84, 84, 84);
  
  public ColorUIResource getSimpleInternalFrameBackground()
  {
    return getWhite();
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "TextField.ineditableForeground", getSoftWhite(), "Plastic.brightenStop", new Color(255, 255, 255, 20), "Plastic.ltBrightenStop", new Color(255, 255, 255, 16), "SimpleInternalFrame.activeTitleBackground", getPrimary2() };
    
    table.putDefaults(uiDefaults);
  }
  
  public ColorUIResource getControlDisabled()
  {
    return getSoftWhite();
  }
  
  public ColorUIResource getControlHighlight()
  {
    return getSoftWhite();
  }
  
  public ColorUIResource getControlInfo()
  {
    return getWhite();
  }
  
  public ColorUIResource getInactiveSystemTextColor()
  {
    return getSoftWhite();
  }
  
  public ColorUIResource getMenuDisabledForeground()
  {
    return getSoftWhite();
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return getPrimary3();
  }
  
  public ColorUIResource getMenuItemSelectedForeground()
  {
    return getBlack();
  }
  
  public ColorUIResource getMenuSelectedBackground()
  {
    return getPrimary2();
  }
  
  public ColorUIResource getMenuSelectedForeground()
  {
    return getWhite();
  }
  
  protected ColorUIResource getPrimary1()
  {
    return primary1;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return primary2;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return primary3;
  }
  
  public ColorUIResource getPrimaryControlHighlight()
  {
    return getSoftWhite();
  }
  
  protected ColorUIResource getSecondary1()
  {
    return secondary1;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return secondary2;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return secondary3;
  }
  
  public ColorUIResource getSeparatorBackground()
  {
    return getSoftWhite();
  }
  
  protected ColorUIResource getSoftWhite()
  {
    return softWhite;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return getControlInfo();
  }
  
  public ColorUIResource getToggleButtonCheckColor()
  {
    return getWhite();
  }
  
  public ColorUIResource getFocusColor()
  {
    return Colors.GRAY_FOCUS;
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.InvertedColorTheme
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class LightGray
  extends ExperienceBlue
{
  private static final ColorUIResource GRAY_VERY_LIGHT = new ColorUIResource(244, 244, 244);
  
  public String getName()
  {
    return "Light Gray";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return new ColorUIResource(51, 153, 255);
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.GRAY_MEDIUMLIGHT;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return new ColorUIResource(225, 240, 255);
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUM;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return getPrimary2();
  }
  
  protected ColorUIResource getSecondary3()
  {
    return GRAY_VERY_LIGHT;
  }
  
  public ColorUIResource getFocusColor()
  {
    return PlasticLookAndFeel.getHighContrastFocusColorsEnabled() ? Colors.ORANGE_FOCUS : Colors.BLUE_MEDIUM_DARK;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.GRAY_DARKEST;
  }
  
  public ColorUIResource getSimpleInternalFrameBackground()
  {
    return Colors.GRAY_MEDIUMDARK;
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.maxBumpsWidth", new Integer(30), "TabbedPane.selected", getWhite(), "TabbedPane.selectHighlight", Colors.GRAY_MEDIUM };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.LightGray
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class Silver
  extends ExperienceBlue
{
  private static final ColorUIResource GRAY_LIGHT_LIGHTER = new ColorUIResource(190, 190, 190);
  
  public String getName()
  {
    return "Silver";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.GRAY_MEDIUMDARK;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.GRAY_MEDIUMLIGHT;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return GRAY_LIGHT_LIGHTER;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUM;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return getPrimary2();
  }
  
  protected ColorUIResource getSecondary3()
  {
    return Colors.GRAY_LIGHTER2;
  }
  
  public ColorUIResource getFocusColor()
  {
    return PlasticLookAndFeel.getHighContrastFocusColorsEnabled() ? Colors.ORANGE_FOCUS : Colors.BLUE_MEDIUM_DARK;
  }
  
  public ColorUIResource getTitleTextColor()
  {
    return Colors.GRAY_DARKEST;
  }
  
  public void addCustomEntriesToTable(UIDefaults table)
  {
    super.addCustomEntriesToTable(table);
    Object[] uiDefaults = { "ScrollBar.maxBumpsWidth", new Integer(50) };
    
    table.putDefaults(uiDefaults);
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.Silver
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

public class SkyBlue
  extends AbstractSkyTheme
{
  public String getName()
  {
    return "Sky Blue";
  }
}

/* Location:
 * Qualified Name:     com.jgoodies.looks.plastic.theme.SkyBlue
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package com.jgoodies.looks.plastic.theme;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import com.jgoodies.looks.plastic.PlasticTheme;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;

public class SkyBluer
  extends PlasticTheme
{
  public String getName()
  {
    return "Sky Bluer";
  }
  
  protected ColorUIResource getPrimary1()
  {
    return Colors.BLUE_MEDIUM_DARKEST;
  }
  
  protected ColorUIResource getPrimary2()
  {
    return Colors.BLUE_MEDIUM_MEDIUM;
  }
  
  protected ColorUIResource getPrimary3()
  {
    return Colors.BLUE_MEDIUM_LIGHTEST;
  }
  
  protected ColorUIResource getSecondary1()
  {
    return Colors.GRAY_MEDIUMDARK;
  }
  
  protected ColorUIResource getSecondary2()
  {
    return Colors.GRAY_LIGHT;
  }
  
  protected ColorUIResource getSecondary3()
  {
    return Colors.GRAY_LIGHTER;
  }
  
  public ColorUIResource getMenuItemSelectedBackground()
  {
    return getPrimary2();
  }
  
  public ColorUIResource getMenuItemSelected
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd