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

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

Introduction

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

Prototype

public static ColorUIResource getControl() 

Source Link

Usage

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

License:Open Source License

static void drawDark3DBorder(Graphics g, int x, int y, int w, int h) {
    drawFlush3DBorder(g, x, y, w, h);/*from  ww  w .  ja  v  a  2 s  .com*/
    g.setColor(PlasticLookAndFeel.getControl());
    g.drawLine(x + 1, y + 1, 1, h - 3);
    g.drawLine(y + 1, y + 1, w - 3, 1);
}

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);//w  ww.  ja  va 2  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 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);//from w  ww .  j  a  v  a  2  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);
}