File: DrawShapeOperation.java

package info (click to toggle)
libpixie-java 1%3A0.8.4-1
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 1,000 kB
  • ctags: 2,695
  • sloc: java: 11,136; xml: 114; makefile: 16
file content (29 lines) | stat: -rw-r--r-- 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * Date: Mar 9, 2003
 * Time: 1:40:01 PM
 *
 * $Id: DrawShapeOperation.java,v 1.3 2004/11/21 16:29:31 taqua Exp $
 */
package org.jfree.pixie.g2recorder;

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

public class DrawShapeOperation implements G2Operation
{
  private Shape shape;

  public DrawShapeOperation (final Shape shape)
  {
    if (shape == null)
    {
      throw new NullPointerException();
    }
    this.shape = shape;
  }

  public void draw (final Graphics2D g2)
  {
    g2.draw(shape);
  }
}