draw Bulge - Java java.awt

Java examples for java.awt:Graphics2D

Description

draw Bulge

Demo Code


//package com.java2s;
import java.awt.Color;

import java.awt.Graphics2D;

public class Main {
    public static void drawBulge(Graphics2D ct, int x, int y, int w, int h) {
        ct.setColor(new Color(0xcccccc));
        ct.drawLine(x, y, x + w, y);//from   w  w w  .  jav a 2 s  .  c  o  m
        ct.setColor(Color.GRAY);
        ct.drawLine(x, y, x, y + h);
        ct.drawLine(x + w, y, x + w, y + h);
        ct.setColor(new Color(0x333333));
        ct.drawLine(x, y + h, x + w, y + h);
    }
}

Related Tutorials