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

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

Introduction

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

Prototype

public static ColorUIResource getControlHighlight() 

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   w w  w. j av  a 2  s.co  m*/
    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 drawThinFlush3DBorder(Graphics g, int x, int y, int w, int h) {
    g.translate(x, y);//w  ww.  jav a 2s.  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  . java2  s. c  o 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);
}

From source file:com.mirth.connect.client.ui.components.MirthTriStateCheckBox.java

License:Open Source License

/**
 * Draw the fill of the box as if it were armed
 *//*from ww w  .ja v a  2 s  .co  m*/
private void drawFill(Graphics2D g2, boolean pressed, int x, int y, int w, int h) {
    Color upperLeft = MetalLookAndFeel.getControlShadow();
    Color lowerRight = PlasticLookAndFeel.getControlHighlight();

    g2.setPaint(new GradientPaint(x, y, upperLeft, x + w, y + h, lowerRight));
    g2.fillRect(x, y, w, h);
}