Example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getControlDarkShadow

List of usage examples for com.jgoodies.looks.plastic PlasticLookAndFeel getControlDarkShadow

Introduction

In this page you can find the example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getControlDarkShadow.

Prototype

public static ColorUIResource getControlDarkShadow() 

Source Link

Usage

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawFlush3DBorder(Graphics g, int x, int y, int w, int h) {
    g.translate(x, y);/*from  ww  w. j  a v a 2s.c om*/
    g.setColor(PlasticLookAndFeel.getControlHighlight());
    drawRect(g, 1, 1, w - 2, h - 2);
    g.drawLine(0, h - 1, 0, h - 1);
    g.drawLine(w - 1, 0, w - 1, 0);
    g.setColor(PlasticLookAndFeel.getControlDarkShadow());
    drawRect(g, 0, 0, w - 2, h - 2);
    g.translate(-x, -y);
}

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h, boolean active) {
    drawButtonBorder(g, x + 1, y + 1, w - 1, h - 1, active);
    g.translate(x, y);/*from  w w w.j a  v a2s  .c o  m*/
    g.setColor(PlasticLookAndFeel.getControlDarkShadow());
    drawRect(g, 0, 0, w - 3, h - 3);
    g.drawLine(w - 2, 0, w - 2, 0);
    g.drawLine(0, h - 2, 0, h - 2);
    g.setColor(PlasticLookAndFeel.getControl());
    g.drawLine(w - 1, 0, w - 1, 0);
    g.drawLine(0, h - 1, 0, h - 1);
    g.translate(-x, -y);
}

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawDefaultButtonPressedBorder(Graphics g, int x, int y, int w, int h) {
    drawPressed3DBorder(g, x + 1, y + 1, w - 1, h - 1);
    g.translate(x, y);/* w  w  w  .  j a v a2  s .c  o m*/
    g.setColor(PlasticLookAndFeel.getControlDarkShadow());
    drawRect(g, 0, 0, w - 3, h - 3);
    g.drawLine(w - 2, 0, w - 2, 0);
    g.drawLine(0, h - 2, 0, h - 2);
    g.setColor(PlasticLookAndFeel.getControl());
    g.drawLine(w - 1, 0, w - 1, 0);
    g.drawLine(0, h - 1, 0, h - 1);
    g.translate(-x, -y);
}

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawThinFlush3DBorder(Graphics g, int x, int y, int w, int h) {
    g.translate(x, y);//from  w  w w  .j  av  a 2  s . c  o  m
    g.setColor(PlasticLookAndFeel.getControlHighlight());
    g.drawLine(0, 0, w - 2, 0);
    g.drawLine(0, 0, 0, h - 2);
    g.setColor(PlasticLookAndFeel.getControlDarkShadow());
    g.drawLine(w - 1, 0, w - 1, h - 1);
    g.drawLine(0, h - 1, w - 1, h - 1);
    g.translate(-x, -y);
}

From source file:com.floreantpos.swing.ButtonUI.java

License:Open Source License

static void drawThinPressed3DBorder(Graphics g, int x, int y, int w, int h) {
    g.translate(x, y);/*from   w w  w .j a  v  a  2s  . co  m*/
    g.setColor(PlasticLookAndFeel.getControlDarkShadow());
    g.drawLine(0, 0, w - 2, 0);
    g.drawLine(0, 0, 0, h - 2);
    g.setColor(PlasticLookAndFeel.getControlHighlight());
    g.drawLine(w - 1, 0, w - 1, h - 1);
    g.drawLine(0, h - 1, w - 1, h - 1);
    g.translate(-x, -y);
}