List of usage examples for java.awt Graphics2D draw
public abstract void draw(Shape s);
From source file:TimerBasedAnimation.java
public void render(int w, int h, Graphics2D g2) { g2.setColor(Color.BLUE); g2.draw(ellipse); }
From source file:SimpleDraw.java
public void paint(Graphics g) { paintComponents(g);/*from w ww. j a va 2 s . c o m*/ for (Shape shape : shapes) { Graphics2D g2 = (Graphics2D) g; g2.draw(shape); } }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; QuadCurve2D quadcurve = new QuadCurve2D.Float(50, 300, 320, 300, 350, 400); g2d.draw(quadcurve); }
From source file:MainClass.java
public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setPaint(Color.black);/*from w w w . j a va2s . c o m*/ g2.setStroke(new BasicStroke(8)); g2.draw(new Ellipse2D.Double(20, 20, 50, 50)); }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450); g2d.draw(cubcurve); }
From source file:MainClass.java
public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; RoundRectangle2D r = new RoundRectangle2D.Double(10.0, 10.0, 50.0, 50.0, 5.0, 5.0); g2.draw(r); }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450); g2d.draw(cubcurve); System.out.println(cubcurve.getCtrlX2()); }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450); g2d.draw(cubcurve); System.out.println(cubcurve.getCtrlP1()); }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450); g2d.draw(cubcurve); System.out.println(cubcurve.getCtrlX1()); }
From source file:Main.java
public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450); g2d.draw(cubcurve); System.out.println(cubcurve.getP2()); }