Java Graphics Draw Border drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height)

Here you can find the source of drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height)

Description

draw Border

License

Apache License

Declaration

public static void drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.*;

public class Main {
    public static void drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height) {
        g2d.setColor(borderColor);/* w w w  .j  a  va2 s .  c  om*/
        g2d.drawRect(0, 0, width, height);
    }
}

Related

  1. drawBevel3DBorder(Graphics g, int x, int y, int w, int h, Color highlight, Color shadow, Color innerHighlight, Color innerShadow)
  2. drawBorder(Graphics g, Color c, int x, int y, int w, int h)
  3. drawButtonBorder(Graphics g, int x, int y, int w, int h, Color backgroundColor, Color edgeColor, Color cornerColor)
  4. drawDirectionalTriangle(Graphics2D bbg, double heading, double x, double y, double sideLength, Color fillColor, Color borderColor)
  5. drawEtchedBorder(Graphics g, int x, int y, int width, int height, Color dark, Color bright)
  6. drawHighlightBorder(Graphics g, int x, int y, int width, int height, boolean raised, Color shadow, Color highlight)