File: SetClipOperation.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 (25 lines) | stat: -rw-r--r-- 436 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
/**
 * Date: Mar 9, 2003
 * Time: 2:48:41 PM
 *
 * $Id: SetClipOperation.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 SetClipOperation implements G2Operation
{
  private Shape clip;

  public SetClipOperation (final Shape clip)
  {
    this.clip = clip;
  }

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