Java Graphics Draw drawAt(final Graphics2D g, final double x, final double y, final Shape s)

Here you can find the source of drawAt(final Graphics2D g, final double x, final double y, final Shape s)

Description

draw At

License

Open Source License

Declaration

public static void drawAt(final Graphics2D g, final double x, final double y, final Shape s) 

Method Source Code

//package com.java2s;

import java.awt.Graphics2D;
import java.awt.Shape;

public class Main {
    public static void drawAt(final Graphics2D g, final double x, final double y, final Shape s) {
        g.translate(x, y);/*  w  w w .j  a  v a2 s . com*/
        g.draw(s);
        g.translate(-x, -y);
    }
}

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. drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize)
  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)