File: SetStrokeOperation.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-- 457 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:17:57 PM
 *
 * $Id: SetStrokeOperation.java,v 1.3 2004/11/21 16:29:31 taqua Exp $
 */
package org.jfree.pixie.g2recorder;

import java.awt.Graphics2D;
import java.awt.Stroke;

public class SetStrokeOperation implements G2Operation
{
  private Stroke stroke;

  public SetStrokeOperation (final Stroke stroke)
  {
    this.stroke = stroke;
  }

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