Java Graphics Draw drawSelectionBox(Graphics g)

Here you can find the source of drawSelectionBox(Graphics g)

Description

draw Selection Box

License

LGPL

Declaration

public static void drawSelectionBox(Graphics g) 

Method Source Code


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

import java.awt.Color;

import java.awt.Graphics;

public class Main {
    public static void drawSelectionBox(Graphics g) {
        int width = g.getClipBounds().width;
        int height = g.getClipBounds().height;

        g.setColor(Color.GREEN);/*  w w w  . j  a v  a 2 s  . co m*/
        g.drawRect(3, 3, width - 6, height - 6);
    }
}

Related

  1. drawRainbow(Graphics2D g2, int x, int y, int Width, int Height, int Mode)
  2. drawRequiredMarker(Graphics2D g2, int x, int y, int iconSize)
  3. drawRTriangle(Graphics g, Color color, int x, int y, int r)
  4. drawScaleTick(Graphics g, int x, int y, boolean yAxisP, int length)
  5. drawScrollBar(Graphics g, int which, int direction, int x, int y, int fmWidth, int fmHeight, Color fg, Color bg)
  6. drawSelectionPoint(Graphics g, Point p)
  7. drawSpline(Graphics graphics, int x1, int y1, int x2, int y2, int x3, int y3)
  8. drawSquarePoint(Graphics2D g2, Point2D.Double pt, int ptSize, Color color)
  9. drawStackTrace(Graphics gr, int x, int y, Throwable ex)