Java Graphics Draw drawEdge(Graphics g, int w, int h)

Here you can find the source of drawEdge(Graphics g, int w, int h)

Description

draw Edge

License

Open Source License

Declaration

static public void drawEdge(Graphics g, int w, int h) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.*;

public class Main {
    static final Color CIBOX = new Color(113, 111, 100);

    static public void drawEdge(Graphics g, int w, int h) {
        drawEdge(g, 0, 0, w, h);//w ww  . ja  v a  2 s  .  c  om
    }

    static public void drawEdge(Graphics g, int x, int y, int w, int h) {
        g.setColor(CIBOX);
        g.drawLine(x, y, x + w - 1, y);
        g.drawLine(x, y, x, y + h - 1);
        g.setColor(Color.lightGray);
        g.drawLine(x + w - 1, y + h - 1, x, y + h - 1);
        g.drawLine(x + w - 1, y + h - 1, x + w - 1, y);
    }
}

Related

  1. drawDot(Graphics g, int x, int y)
  2. drawDots(Graphics g, int x0, int y0, int x1, int y1, int interval)
  3. drawDottedDashLine(Graphics2D g, int x1, int y1, int x2, int y2)
  4. drawDottedRect(Graphics g, int x, int y, int w, int h)
  5. drawDropshipISPip(Graphics2D g2d, int width, int height, int circleSize, int fillCircleSize)
  6. drawEtchedRect(Graphics g, int x, int y, int width, int height, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
  7. drawFilledBox(Graphics2D g, int x, int y, int width, int height)
  8. drawFilledOctagon(Graphics2D g, int x, int y, float size)
  9. drawFilter(Graphics g, Color c, double transparency, int midx, int midy, int rx, int ry)