Java Graphics Draw drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize)

Here you can find the source of drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize)

Description

draw Auto Complete Marker

License

Apache License

Declaration

protected static void drawAutoCompleteMarker(Graphics2D g2, int x,
            int y, int iconSize) 

Method Source Code

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

import java.awt.*;
import java.awt.geom.Rectangle2D;

public class Main {
    protected static void drawAutoCompleteMarker(Graphics2D g2, int x,
            int y, int iconSize) {
        int spacing = 2;
        Rectangle2D marker = new Rectangle2D.Double();

        marker.setFrame(x + spacing - iconSize, y + spacing - iconSize,
                2 * (iconSize - spacing), 2 * (iconSize - spacing));
        g2.setPaint(Color.BLACK);
        g2.fill(marker);/*  w w w. j  a v a 2 s  . c o  m*/
    }
}

Related

  1. draw(int[] pixels, int width, int height)
  2. drawAndFill(Graphics g, Shape s, Color draw, Color fill)
  3. drawAngledLine(Graphics g, int x, int y, double angle, int length)
  4. drawAt(final Graphics2D g, final double x, final double y, final Shape s)
  5. drawBeamsplit(Graphics g, int midx, int midy, Color cup, Color cdown, Color cright, boolean showMirror, boolean isDichroic)
  6. drawBeamVariableRadiusVertical(Graphics g, Color c, int midx, int y1, int y2, int r1, int r2)
  7. drawBoundary(Graphics2D g2d, Rectangle bounds, Point2D.Double[] pts)
  8. drawBoxOrBlockChar(Graphics g, int x, int y, int bi, char c, int charWidth, int charHeight)