Example usage for java.awt Graphics fillRoundRect

List of usage examples for java.awt Graphics fillRoundRect

Introduction

In this page you can find the example usage for java.awt Graphics fillRoundRect.

Prototype

public abstract void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight);

Source Link

Document

Fills the specified rounded corner rectangle with the current color.

Usage

From source file:org.processmining.analysis.performance.dottedchart.ui.DottedChartPanel.java

protected void paintItemLine(int x1, int y1, int x2, Graphics g) {
    g.fillRoundRect(x1, y1 - 2, x2 - x1, 4, 2, 2);
}

From source file:org.processmining.analysis.performance.dottedchart.ui.DottedChartPanel.java

protected void paintItemLineBottleneck(int x1, int y1, int x2, Graphics g) {
    Color tempColor = g.getColor();
    g.setColor(Color.red);/*from   www  . j  a v a  2 s  .  co m*/
    g.fillRoundRect(x1, y1 - 1, x2 - x1, 2, 1, 1);
    g.setColor(tempColor);
}

From source file:org.processmining.analysis.performance.dottedchart.ui.DottedChartPanel.java

protected void paintItemLine_buffer(int x1, int y1, int x2, Graphics g) {
    g.fillRoundRect(x1, y1 - 1, x2 - x1, 2, 1, 1);
}